GammaCombo  Rev:Unversioneddirectory
Public Member Functions | Private Attributes | List of all members
Combiner Class Reference

#include <Combiner.h>

Collaboration diagram for Combiner:
Collaboration graph
[legend]

Public Member Functions

void addPdf (PDF_Abs *p)
 
void addPdf (PDF_Abs *p1, PDF_Abs *p2)
 
void addPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3)
 
void addPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3, PDF_Abs *p4)
 
void addPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3, PDF_Abs *p4, PDF_Abs *p5)
 
void addPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3, PDF_Abs *p4, PDF_Abs *p5, PDF_Abs *p6)
 
void adjustPhysRange (TString varName, float min, float max)
 Adjust the physical range of a parameter as requested. More...
 
CombinerClone (TString name, TString title)
 Clone an existing combiner. More...
 
void combine ()
 
 Combiner (OptParser *arg, TString title)
 
 Combiner (OptParser *arg, TString name, TString title)
 
void delPdf (PDF_Abs *p)
 
void delPdf (PDF_Abs *p1, PDF_Abs *p2)
 
void delPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3)
 
void delPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3, PDF_Abs *p4)
 
void delPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3, PDF_Abs *p4, PDF_Abs *p5)
 
void delPdf (PDF_Abs *p1, PDF_Abs *p2, PDF_Abs *p3, PDF_Abs *p4, PDF_Abs *p5, PDF_Abs *p6)
 
void fixParameter (TString var, float value)
 Fix a parameter in the fit to the specified value. More...
 
void fixParameters (TString vars)
 Fix one or more parameters in the fit to their current values (the start parameters, if no user code modifies them before calling combine()). More...
 
OptParsergetArg ()
 
vector< FixPargetConstVars ()
 
TString getName () const
 
vector< string > & getObservableNames ()
 Return a vector of all observables names present in this combination. More...
 
const RooArgSet * getObservables ()
 Return a (new?) RooArgSet that contains all observables. More...
 
TString getObsName () const
 Returns name of combined parameter set. Call combine() first. More...
 
vector< string > & getParameterNames ()
 Return a vector of all parameter names present in this combination. More...
 
const RooArgSet * getParameters ()
 Return a (new?) RooArgSet that contains all parameters. More...
 
TString getParsName () const
 Returns name of combined pdf. Call combine() first. More...
 
RooAbsPdf * getPdf ()
 Returns name of combined observables set. Call combine() first. More...
 
TString getPdfName () const
 
PDF_AbsgetPdfProvidingObservable (TString obsname)
 Get the PDF that provides a certain observable. More...
 
vector< PDF_Abs * > & getPdfs ()
 
TString getTitle () const
 
RooWorkspace * getWorkspace ()
 
bool isCombined () const
 
void loadParameterLimits ()
 Activate limits for all parameters. More...
 
void print ()
 Print the combination setup. More...
 
void replacePdf (PDF_Abs *from, PDF_Abs *to)
 
void setName (TString name)
 Set the combiner name. More...
 
void setObservablesToToyValues ()
 Set the observables in the workspace to toy values, that were generated from the current parameter values in the workspace. More...
 
void setParametersConstant ()
 Helper function for combine(), that actually sets those parameters, that we want to fix, constant in the workspace. More...
 
void setTitle (TString title)
 
 ~Combiner ()
 

Private Attributes

bool _isCombined
 
OptParserarg
 
vector< FixParconstVars
 
TString name
 
TString obsName
 
TString parsName
 
TString pdfName
 
vector< string > pdfNames
 
vector< PDF_Abs * > pdfs
 
TString title
 
RooWorkspace * w
 

Detailed Description

Definition at line 18 of file Combiner.h.

Constructor & Destructor Documentation

§ Combiner() [1/2]

Combiner::Combiner ( OptParser arg,
TString  title 
)

Definition at line 3 of file Combiner.cpp.

§ Combiner() [2/2]

Combiner::Combiner ( OptParser arg,
TString  name,
TString  title 
)

Definition at line 18 of file Combiner.cpp.

§ ~Combiner()

Combiner::~Combiner ( )

Definition at line 30 of file Combiner.cpp.

Member Function Documentation

§ addPdf() [1/6]

void Combiner::addPdf ( PDF_Abs p)

Definition at line 48 of file Combiner.cpp.

§ addPdf() [2/6]

void Combiner::addPdf ( PDF_Abs p1,
PDF_Abs p2 
)

Definition at line 54 of file Combiner.cpp.

§ addPdf() [3/6]

void Combiner::addPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3 
)

Definition at line 60 of file Combiner.cpp.

§ addPdf() [4/6]

void Combiner::addPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3,
PDF_Abs p4 
)

Definition at line 66 of file Combiner.cpp.

§ addPdf() [5/6]

void Combiner::addPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3,
PDF_Abs p4,
PDF_Abs p5 
)

Definition at line 72 of file Combiner.cpp.

§ addPdf() [6/6]

void Combiner::addPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3,
PDF_Abs p4,
PDF_Abs p5,
PDF_Abs p6 
)

Definition at line 78 of file Combiner.cpp.

§ adjustPhysRange()

void Combiner::adjustPhysRange ( TString  varName,
float  min,
float  max 
)

Adjust the physical range of a parameter as requested.

Only possible after combining.

Definition at line 383 of file Combiner.cpp.

§ Clone()

Combiner * Combiner::Clone ( TString  name,
TString  title 
)

Clone an existing combiner.

Definition at line 38 of file Combiner.cpp.

§ combine()

void Combiner::combine ( )

Definition at line 137 of file Combiner.cpp.

§ delPdf() [1/6]

void Combiner::delPdf ( PDF_Abs p)

Definition at line 85 of file Combiner.cpp.

§ delPdf() [2/6]

void Combiner::delPdf ( PDF_Abs p1,
PDF_Abs p2 
)

Definition at line 99 of file Combiner.cpp.

§ delPdf() [3/6]

void Combiner::delPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3 
)

Definition at line 105 of file Combiner.cpp.

§ delPdf() [4/6]

void Combiner::delPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3,
PDF_Abs p4 
)

Definition at line 111 of file Combiner.cpp.

§ delPdf() [5/6]

void Combiner::delPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3,
PDF_Abs p4,
PDF_Abs p5 
)

Definition at line 117 of file Combiner.cpp.

§ delPdf() [6/6]

void Combiner::delPdf ( PDF_Abs p1,
PDF_Abs p2,
PDF_Abs p3,
PDF_Abs p4,
PDF_Abs p5,
PDF_Abs p6 
)

Definition at line 123 of file Combiner.cpp.

§ fixParameter()

void Combiner::fixParameter ( TString  var,
float  value 
)

Fix a parameter in the fit to the specified value.

To do that, add the parameter to the list of constant parameters.

Parameters
var- the parameter name
value- the value to fix the parameter to

Definition at line 411 of file Combiner.cpp.

§ fixParameters()

void Combiner::fixParameters ( TString  vars)

Fix one or more parameters in the fit to their current values (the start parameters, if no user code modifies them before calling combine()).

To do that, add the parameters to the list of constant parameters.

Parameters
varsComma separated list of parameteters to fix.

Definition at line 442 of file Combiner.cpp.

§ getArg()

OptParser* Combiner::getArg ( )
inline

Definition at line 42 of file Combiner.h.

§ getConstVars()

vector<FixPar> Combiner::getConstVars ( )
inline

Definition at line 64 of file Combiner.h.

§ getName()

TString Combiner::getName ( ) const
inline

Definition at line 49 of file Combiner.h.

§ getObservableNames()

vector< string > & Combiner::getObservableNames ( )

Return a vector of all observables names present in this combination.

If being called before combine() was called, a list of observables contained in all PDFs is returned, without unification strings. There might be duplicates in that list, if more than one PDFs contain observables of the same name. If it is being called after combine() was called, the the unification strings are included.

Returns
a vector of observable names

Definition at line 304 of file Combiner.cpp.

§ getObservables()

const RooArgSet * Combiner::getObservables ( )

Return a (new?) RooArgSet that contains all observables.

Definition at line 344 of file Combiner.cpp.

§ getObsName()

TString Combiner::getObsName ( ) const
inline

Returns name of combined parameter set. Call combine() first.

Definition at line 52 of file Combiner.h.

§ getParameterNames()

vector< string > & Combiner::getParameterNames ( )

Return a vector of all parameter names present in this combination.

This works already before combine() was called (unline Combiner::getParameters()).

Definition at line 266 of file Combiner.cpp.

§ getParameters()

const RooArgSet * Combiner::getParameters ( )

Return a (new?) RooArgSet that contains all parameters.

Definition at line 332 of file Combiner.cpp.

§ getParsName()

TString Combiner::getParsName ( ) const
inline

Returns name of combined pdf. Call combine() first.

Definition at line 51 of file Combiner.h.

§ getPdf()

RooAbsPdf * Combiner::getPdf ( )

Returns name of combined observables set. Call combine() first.

Return pointer to combined PDF.

Definition at line 251 of file Combiner.cpp.

§ getPdfName()

TString Combiner::getPdfName ( ) const
inline

Definition at line 50 of file Combiner.h.

§ getPdfProvidingObservable()

PDF_Abs * Combiner::getPdfProvidingObservable ( TString  obsname)

Get the PDF that provides a certain observable.

The observable needs to contain the unique ID, which corresponds to the number of the PDF in this combiner. This works before combine() was called. Note that delPdf() may change the order of the PDFs, and therefore the unique ID.

Parameters
obsname- name of the observable including the unique string
Returns
pointer to the PDF

Definition at line 553 of file Combiner.cpp.

§ getPdfs()

vector<PDF_Abs*>& Combiner::getPdfs ( )
inline

Definition at line 54 of file Combiner.h.

§ getTitle()

TString Combiner::getTitle ( ) const
inline

Definition at line 48 of file Combiner.h.

§ getWorkspace()

RooWorkspace* Combiner::getWorkspace ( )
inline

Definition at line 55 of file Combiner.h.

§ isCombined()

bool Combiner::isCombined ( ) const
inline

Definition at line 56 of file Combiner.h.

§ loadParameterLimits()

void Combiner::loadParameterLimits ( )

Activate limits for all parameters.

This affects the limits used in

If a Feldman-Cousins like behaviour is needed, we need to load the 'phys' limits, which will prevent any parameter going outside the 'phys' range. Else the 'free' limit is loaded, which should be wide enough to get never hit. This is controlled over the command line option "physrange".

Definition at line 518 of file Combiner.cpp.

§ print()

void Combiner::print ( )

Print the combination setup.

Definition at line 356 of file Combiner.cpp.

§ replacePdf()

void Combiner::replacePdf ( PDF_Abs from,
PDF_Abs to 
)

Definition at line 130 of file Combiner.cpp.

§ setName()

void Combiner::setName ( TString  name)

Set the combiner name.

Only possible before combine() was called.

Definition at line 534 of file Combiner.cpp.

§ setObservablesToToyValues()

void Combiner::setObservablesToToyValues ( )

Set the observables in the workspace to toy values, that were generated from the current parameter values in the workspace.

This can be used to perform a coverage test.

Only possible after the combiner was combined.

Definition at line 475 of file Combiner.cpp.

§ setParametersConstant()

void Combiner::setParametersConstant ( )

Helper function for combine(), that actually sets those parameters, that we want to fix, constant in the workspace.

They just get added to the "const" set. Later, they are fixed in MethodAbsScan::doInitialFit().

Definition at line 232 of file Combiner.cpp.

§ setTitle()

void Combiner::setTitle ( TString  title)
inline

Definition at line 63 of file Combiner.h.

Member Data Documentation

§ _isCombined

bool Combiner::_isCombined
private

Definition at line 76 of file Combiner.h.

§ arg

OptParser* Combiner::arg
private

Definition at line 73 of file Combiner.h.

§ constVars

vector<FixPar> Combiner::constVars
private

Definition at line 77 of file Combiner.h.

§ name

TString Combiner::name
private

Definition at line 69 of file Combiner.h.

§ obsName

TString Combiner::obsName
private

Definition at line 72 of file Combiner.h.

§ parsName

TString Combiner::parsName
private

Definition at line 71 of file Combiner.h.

§ pdfName

TString Combiner::pdfName
private

Definition at line 70 of file Combiner.h.

§ pdfNames

vector<string> Combiner::pdfNames
private

Definition at line 75 of file Combiner.h.

§ pdfs

vector<PDF_Abs*> Combiner::pdfs
private

Definition at line 64 of file Combiner.h.

§ title

TString Combiner::title
private

Definition at line 68 of file Combiner.h.

§ w

RooWorkspace* Combiner::w
private

Definition at line 74 of file Combiner.h.


The documentation for this class was generated from the following files: