Implementation detail of the RooWorkspace.
It interprets all expressions for RooWorkspace::factory(const char*).
Definition at line 47 of file RooFactoryWSTool.h.
Classes | |
class | IFace |
class | SpecialsIFace |
Public Member Functions | |
RooFactoryWSTool (const RooFactoryWSTool &)=delete | |
RooFactoryWSTool (RooWorkspace &ws) | |
RooAddPdf * | add (const char *objName, const char *specList, bool recursiveCoefs=false) |
RooAddition * | addfunc (const char *objName, const char *specList) |
RooRealSumPdf * | amplAdd (const char *objName, const char *specList) |
RooAbsArg & | asARG (const char *) |
CINT constructor interface, return constructor string argument #idx as RooAbsArg reference found in workspace. | |
RooCategory & | asCAT (const char *) |
CINT constructor interface, return constructor string argument #idx as RooCategory reference found in workspace. | |
RooAbsCategory & | asCATFUNC (const char *) |
CINT constructor interface, return constructor string argument #idx as RooAbsCategory reference found in workspace. | |
RooAbsCategoryLValue & | asCATLV (const char *) |
CINT constructor interface, return constructor string argument #idx as RooAbsCategoryLValue reference found in workspace. | |
RooAbsData & | asDATA (const char *) |
CINT constructor interface, return constructor string argument #idx as RooAbsData object found in workspace. | |
RooDataHist & | asDHIST (const char *) |
CINT constructor interface, return constructor string argument #idx as RooDataHist object found in workspace. | |
double | asDOUBLE (const char *) |
CINT constructor interface, return constructor string argument #idx as double. | |
RooDataSet & | asDSET (const char *) |
CINT constructor interface, return constructor string argument #idx as RooDataSet object found in workspace. | |
RooAbsReal & | asFUNC (const char *) |
CINT constructor interface, return constructor string argument #idx as RooAbsReal reference found in workspace. | |
Int_t | asINT (const char *) |
CINT constructor interface, return constructor string argument #idx as Int_t. | |
RooArgList | asLIST (const char *) |
CINT constructor interface, return constructor string argument #idx as RooArgList of objects found in workspace. | |
TObject & | asOBJ (const char *) |
RooAbsPdf & | asPDF (const char *) |
CINT constructor interface, return constructor string argument #idx as RooAbsPdf reference found in workspace. | |
RooResolutionModel & | asRMODEL (const char *) |
CINT constructor interface, return constructor string argument #idx as RooResolutionModel reference found in workspace. | |
RooArgSet | asSET (const char *) |
CINT constructor interface, return constructor string argument #idx as RooArgSet of objects found in workspace. | |
const char * | asSTRING (const char *) |
CINT constructor interface, return constructor string argument #idx as const char*. | |
RooRealVar & | asVAR (const char *) |
CINT constructor interface, return constructor string argument #idx as RooRealVar reference found in workspace. | |
RooAbsRealLValue & | asVARLV (const char *) |
CINT constructor interface, return constructor string argument #idx as RooAbsRealLValue reference found in workspace. | |
const char * | autoClassNamePostFix () const |
RooAbsArg * | createArg (const char *className, const char *objName, const char *varList) |
Low-level factory interface for creating a RooAbsPdf of a given class with a given list of input variables The variable list varList should be of the form "a,b,c" where the interpretation of the argument is dependent on the pdf. | |
RooCategory * | createCategory (const char *name, const char *stateNameList=nullptr) |
Low-level factory interface for creating a RooCategory with a given list of state names. | |
RooRealVar * | createVariable (const char *name, double xmin, double xmax) |
Low-level factory interface for creating a RooRealVar with a given range and initial value. | |
TClass * | IsA () const override |
void | logError () |
RooAbsArg * | process (const char *expr) |
Create a RooFit object from the given expression. | |
std::string | processExpression (const char *expr) |
Process a single high-level expression or list of expressions. | |
RooProdPdf * | prod (const char *objName, const char *pdfList) |
RooProduct * | prodfunc (const char *objName, const char *pdfList) |
void | setAutoClassNamePostFix (const char *pfix) |
RooSimultaneous * | simul (const char *objName, const char *indexCat, const char *pdfMap) |
std::vector< std::string > | splitFunctionArgs (const char *funcExpr) |
Allocate and fill work buffer. | |
void | Streamer (TBuffer &) override |
Stream an object of class TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
RooWorkspace & | ws () |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
TNamed destructor. | |
void | Clear (Option_t *option="") override |
Set name and title to empty strings (""). | |
TObject * | Clone (const char *newname="") const override |
Make a clone of an object using the Streamer facility. | |
Int_t | Compare (const TObject *obj) const override |
Compare two TNamed objects. | |
void | Copy (TObject &named) const override |
Copy this to obj. | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. | |
const char * | GetName () const override |
Returns name of object. | |
const char * | GetTitle () const override |
Returns title of object. | |
ULong_t | Hash () const override |
Return hash value for this object. | |
TClass * | IsA () const override |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
List TNamed name and title. | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. | |
void | Print (Option_t *option="") const override |
Print TNamed name and title. | |
virtual void | SetName (const char *name) |
Set the name of the TNamed. | |
virtual void | SetNameTitle (const char *name, const char *title) |
Set all the TNamed parameters (name and title). | |
virtual void | SetTitle (const char *title="") |
Set the title of the TNamed. | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. | |
void | Streamer (TBuffer &) override |
Stream an object of class TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. | |
TObject (const TObject &object) | |
TObject copy ctor. | |
virtual | ~TObject () |
TObject destructor. | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. | |
virtual void | Delete (Option_t *option="") |
Delete this object. | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1) . | |
virtual void | Dump () const |
Dump contents of object on stdout. | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. | |
virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
Execute method on this object with the given parameter string, e.g. | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
Execute method on this object with parameters stored in the TObjArray. | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. | |
virtual const char * | GetIconName () const |
Returns mime type name of object. | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). | |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. | |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
IsDestructed. | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification (the base implementation is no-op). | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. | |
void | operator delete (void *ptr) |
Operator delete. | |
void | operator delete (void *ptr, void *vp) |
Only called by placement new when throwing an exception. | |
void | operator delete[] (void *ptr) |
Operator delete []. | |
void | operator delete[] (void *ptr, void *vp) |
Only called by placement new[] when throwing an exception. | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. | |
Public Member Functions inherited from RooPrintable | |
RooPrintable () | |
virtual | ~RooPrintable () |
virtual Int_t | defaultPrintContents (Option_t *opt) const |
Default choice of contents to be printed (name and value) | |
virtual StyleOption | defaultPrintStyle (Option_t *opt) const |
virtual void | printAddress (std::ostream &os) const |
Print class name of object. | |
virtual void | printArgs (std::ostream &os) const |
Interface for printing of object arguments. | |
virtual void | printClassName (std::ostream &os) const |
Print class name of object. | |
virtual void | printExtras (std::ostream &os) const |
Interface to print extras of object. | |
virtual void | printMultiline (std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const |
Interface for detailed printing of object. | |
virtual void | printName (std::ostream &os) const |
Print name of object. | |
virtual void | printStream (std::ostream &os, Int_t contents, StyleOption style, TString indent="") const |
Print description of object on ostream, printing contents set by contents integer, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'. | |
virtual void | printTitle (std::ostream &os) const |
Print title of object. | |
virtual void | printTree (std::ostream &os, TString indent="") const |
Interface for tree structure printing of object. | |
virtual void | printValue (std::ostream &os) const |
Interface to print value of object. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static RooAbsArg & | as_ARG (UInt_t idx) |
static RooCategory & | as_CAT (UInt_t idx) |
static RooAbsCategory & | as_CATFUNC (UInt_t idx) |
static RooAbsCategoryLValue & | as_CATLV (UInt_t idx) |
static RooAbsData & | as_DATA (UInt_t idx) |
static RooDataHist & | as_DHIST (UInt_t idx) |
static double | as_DOUBLE (UInt_t idx) |
static double | as_DOUBLE (UInt_t idx, double defVal) |
static RooDataSet & | as_DSET (UInt_t idx) |
static RooAbsReal & | as_FUNC (UInt_t idx) |
static Int_t | as_INT (UInt_t idx) |
static Int_t | as_INT (UInt_t idx, Int_t defVal) |
static RooArgList | as_LIST (UInt_t idx) |
static TObject & | as_OBJ (UInt_t idx) |
static RooAbsPdf & | as_PDF (UInt_t idx) |
static RooResolutionModel & | as_RMODEL (UInt_t idx) |
static RooArgSet | as_SET (UInt_t idx) |
static const char * | as_STRING (UInt_t idx) |
static RooRealVar & | as_VAR (UInt_t idx) |
static RooAbsRealLValue & | as_VARLV (UInt_t idx) |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static void | registerSpecial (const char *typeName, RooFactoryWSTool::IFace *iface) |
Register foreign special objects in factory. | |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
Return destructor only flag. | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. | |
Static Public Member Functions inherited from RooPrintable | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static std::ostream & | defaultPrintStream (std::ostream *os=nullptr) |
Return a reference to the current default stream to use in Print(). | |
static void | nameFieldLength (Int_t newLen) |
Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount. | |
Protected Member Functions | |
bool | checkSyntax (const char *arg) |
Perform basic syntax on given factory expression. | |
void | clearError () |
Associated workspace. | |
Int_t | errorCount () |
std::string | processAliasExpression (const char *arg) |
Parse token. | |
std::string | processCompositeExpression (const char *arg) |
Process a single composite expression. | |
std::string | processCreateArg (std::string &func, std::vector< std::string > &args) |
Glue function between high-level syntax and low-level factory call to createArg: Process a parsed call to create a pdf named func | |
std::string | processCreateVar (std::string &func, std::vector< std::string > &args) |
Glue function between high-level syntax and low-level factory call to createVariable: Process a parsed call to create a variable named func | |
std::string | processListExpression (const char *arg) |
Process a list of high-level expression. | |
std::string | processMetaArg (std::string &func, std::vector< std::string > &args) |
Concatenate list of args into comma separated string. | |
std::string | processSingleExpression (const char *arg) |
Process a single high-level expression. | |
TClass * | resolveClassName (const char *className) |
std::string | varTag (std::string &func, std::vector< std::string > &args) |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). | |
void | MakeZombie () |
Static Protected Member Functions | |
static void | checkIndex (UInt_t index) |
static std::map< std::string, IFace * > & | hooks () |
static RooFactoryWSTool * | of () |
Protected Attributes | |
std::vector< std::string > | _args |
std::string | _autoClassPostFix |
std::stack< std::string > | _autoNamePrefix |
Int_t | _errorCount = 0 |
std::map< std::string, std::string > | _typeAliases |
RooWorkspace * | _ws |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Static Protected Attributes | |
static std::map< std::string, IFace * > * | _hooks =nullptr |
static RooFactoryWSTool * | _of = nullptr |
Static Protected Attributes inherited from RooPrintable | |
static Int_t | _nameLength |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) } |
enum | EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) } |
enum | EStatusBits { kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) , kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 )) } |
Public Types inherited from RooPrintable | |
enum | ContentsOption { kName =1 , kClassName =2 , kValue =4 , kArgs =8 , kExtras =16 , kAddress =32 , kTitle =64 , kCollectionHeader =128 } |
enum | StyleOption { kInline =1 , kSingleLine =2 , kStandard =3 , kVerbose =4 , kTreeStructure =5 } |
Protected Types inherited from TObject | |
enum | { kOnlyPrepStep = (1ULL << ( 3 )) } |
#include <RooFactoryWSTool.h>
|
inline |
Definition at line 52 of file RooFactoryWSTool.h.
|
delete |
RooAddPdf * RooFactoryWSTool::add | ( | const char * | objName, |
const char * | specList, | ||
bool | recursiveCoefs = false |
||
) |
Definition at line 476 of file RooFactoryWSTool.cxx.
RooAddition * RooFactoryWSTool::addfunc | ( | const char * | objName, |
const char * | specList | ||
) |
Definition at line 676 of file RooFactoryWSTool.cxx.
RooRealSumPdf * RooFactoryWSTool::amplAdd | ( | const char * | objName, |
const char * | specList | ||
) |
Definition at line 518 of file RooFactoryWSTool.cxx.
Definition at line 88 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 96 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 98 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 97 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 103 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 104 of file RooFactoryWSTool.h.
Definition at line 111 of file RooFactoryWSTool.h.
Definition at line 113 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 105 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 91 of file RooFactoryWSTool.h.
Definition at line 110 of file RooFactoryWSTool.h.
Definition at line 112 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 101 of file RooFactoryWSTool.h.
Definition at line 107 of file RooFactoryWSTool.h.
Definition at line 90 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 94 of file RooFactoryWSTool.h.
Definition at line 100 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 109 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 92 of file RooFactoryWSTool.h.
|
inlinestatic |
Definition at line 93 of file RooFactoryWSTool.h.
RooAbsArg & RooFactoryWSTool::asARG | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooAbsArg reference found in workspace.
Definition at line 1528 of file RooFactoryWSTool.cxx.
RooCategory & RooFactoryWSTool::asCAT | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooCategory reference found in workspace.
Definition at line 1680 of file RooFactoryWSTool.cxx.
RooAbsCategory & RooFactoryWSTool::asCATFUNC | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooAbsCategory reference found in workspace.
Definition at line 1643 of file RooFactoryWSTool.cxx.
RooAbsCategoryLValue & RooFactoryWSTool::asCATLV | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooAbsCategoryLValue reference found in workspace.
Definition at line 1661 of file RooFactoryWSTool.cxx.
RooAbsData & RooFactoryWSTool::asDATA | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooAbsData object found in workspace.
Definition at line 1781 of file RooFactoryWSTool.cxx.
RooDataHist & RooFactoryWSTool::asDHIST | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooDataHist object found in workspace.
Definition at line 1795 of file RooFactoryWSTool.cxx.
double RooFactoryWSTool::asDOUBLE | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as double.
Definition at line 1882 of file RooFactoryWSTool.cxx.
RooDataSet & RooFactoryWSTool::asDSET | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooDataSet object found in workspace.
Definition at line 1812 of file RooFactoryWSTool.cxx.
RooAbsReal & RooFactoryWSTool::asFUNC | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooAbsReal reference found in workspace.
Definition at line 1548 of file RooFactoryWSTool.cxx.
Int_t RooFactoryWSTool::asINT | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as Int_t.
Definition at line 1873 of file RooFactoryWSTool.cxx.
RooArgList RooFactoryWSTool::asLIST | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooArgList of objects found in workspace.
Definition at line 1745 of file RooFactoryWSTool.cxx.
TObject & RooFactoryWSTool::asOBJ | ( | const char * | arg | ) |
Definition at line 1829 of file RooFactoryWSTool.cxx.
RooAbsPdf & RooFactoryWSTool::asPDF | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooAbsPdf reference found in workspace.
Definition at line 1609 of file RooFactoryWSTool.cxx.
RooResolutionModel & RooFactoryWSTool::asRMODEL | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooResolutionModel reference found in workspace.
Definition at line 1624 of file RooFactoryWSTool.cxx.
RooArgSet RooFactoryWSTool::asSET | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooArgSet of objects found in workspace.
Definition at line 1696 of file RooFactoryWSTool.cxx.
const char * RooFactoryWSTool::asSTRING | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as const char*.
Definition at line 1843 of file RooFactoryWSTool.cxx.
RooRealVar & RooFactoryWSTool::asVAR | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooRealVar reference found in workspace.
Definition at line 1594 of file RooFactoryWSTool.cxx.
RooAbsRealLValue & RooFactoryWSTool::asVARLV | ( | const char * | arg | ) |
CINT constructor interface, return constructor string argument #idx
as RooAbsRealLValue reference found in workspace.
Definition at line 1571 of file RooFactoryWSTool.cxx.
|
inline |
Definition at line 155 of file RooFactoryWSTool.h.
|
staticprotected |
Definition at line 1516 of file RooFactoryWSTool.cxx.
|
protected |
Perform basic syntax on given factory expression.
If function returns true syntax errors are found.
Definition at line 1481 of file RooFactoryWSTool.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 199 of file RooFactoryWSTool.h.
|
inlineprotected |
Associated workspace.
Definition at line 192 of file RooFactoryWSTool.h.
RooAbsArg * RooFactoryWSTool::createArg | ( | const char * | className, |
const char * | objName, | ||
const char * | varList | ||
) |
Low-level factory interface for creating a RooAbsPdf of a given class with a given list of input variables The variable list varList should be of the form "a,b,c" where the interpretation of the argument is dependent on the pdf.
Set and List arguments can be passed by substituting a single argument with the form (a,b,c), i.e. one can set varList to "x,(a0,a1,a2)" to pass a RooAbsReal and a RooArgSet as arguments.
Definition at line 280 of file RooFactoryWSTool.cxx.
RooCategory * RooFactoryWSTool::createCategory | ( | const char * | name, |
const char * | stateNameList = nullptr |
||
) |
Low-level factory interface for creating a RooCategory with a given list of state names.
The State name list can be of the form name1,name2,name3
or of the form name1=id1,name2=id2,name3=id3
Definition at line 150 of file RooFactoryWSTool.cxx.
RooRealVar * RooFactoryWSTool::createVariable | ( | const char * | name, |
double | xmin, | ||
double | xmax | ||
) |
Low-level factory interface for creating a RooRealVar with a given range and initial value.
Definition at line 126 of file RooFactoryWSTool.cxx.
|
inlinestatic |
Definition at line 199 of file RooFactoryWSTool.h.
|
inlineprotected |
Definition at line 193 of file RooFactoryWSTool.h.
|
staticprotected |
Definition at line 1900 of file RooFactoryWSTool.cxx.
|
inlineoverridevirtual |
Reimplemented from TObject.
Definition at line 199 of file RooFactoryWSTool.h.
|
inline |
Definition at line 153 of file RooFactoryWSTool.h.
|
staticprotected |
Definition at line 2195 of file RooFactoryWSTool.cxx.
RooAbsArg * RooFactoryWSTool::process | ( | const char * | expr | ) |
Create a RooFit object from the given expression.
Creating variables | |
---|---|
x[-10,10] | Create variable x with given range and put it in workspace |
x[3,-10,10] | Create variable x with given range and initial value and put it in workspace |
x[3] | Create variable x with given constant value |
<numeric literal> | Numeric literal expressions (0.5, -3 etc..) are converted to a RooConst(<numeric literal>) wherever a RooAbsReal or RooAbsArg argument is expected |
Creating categories | |
c[lep,kao,nt1,nt2] | Create category c with given state names |
tag[B0=1,B0bar=-1] | Create category tag with given state names and index assignments |
Creating functions and pdfs | |
MyPdf::g(x,m,s) | Create pdf or function of type MyPdf with name g with argument x,m,s Interpretation and number of arguments are mapped to the constructor arguments of the class (after the name and title). |
MyPdf(x,m,s) | As above, but with an implicitly defined (unique) object name |
Creating sets and lists (to be used as inputs above) | |
{a,b,c} | Create RooArgSet or RooArgList (as determined by context) from given contents |
Objects that are not created, are assumed to exist in the workspace Object creation expressions as shown above can be nested, e.g. one can do
to create a pdf and its variables in one go. This nesting can be applied recursively e.g.
creates the sum of a Gaussian and a Chebychev and all its variables.
A separate series of operator meta-type exists to simplify the construction of composite expressions meta-types in all capitals (SUM) create pdfs, meta types in lower case (sum) create functions.
Expression | Effect |
---|---|
SUM::name(f1*pdf1,f2*pdf2,pdf3] | Create sum pdf name with value f1*pdf1+f2*pdf2+(1-f1-f2)*pdf3 |
RSUM::name(f1*pdf1,f2*pdf2,pdf3] | Create recursive sum pdf name with value f1*pdf1 + (1-f1)(f2*pdf2 + (1-f2)pdf3) |
ASUM::name(f1*amp1,f2*amp2,amp3] | Create sum pdf name with value f1*amp1+f2*amp2+(1-f1-f2)*amp3 where amplX are amplitudes of type RooAbsReal |
sum::name(a1,a2,a3] | Create sum function with value a1+a2+a3 |
sum::name(a1*b1,a2*b2,a3*b 3] | Create sum function with value a1*b1+a2*b2+a3*b3 |
PROD::name(pdf1,pdf2] | Create product of pdf with name with given input pdfs |
PROD::name(pdf1|x,pdf2] | Create product of conditional pdf pdf1 given x and pdf2 |
prod::name(a,b,c] | Create production function with value a*b*c |
SIMUL::name(cat,a=pdf1,b=pdf2] | Create simultaneous pdf index category cat . Make pdf1 to state a , pdf2 to state b |
EXPR::name(<expr>,var,...] | Create a generic pdf that interprets the given expression |
expr::name(<expr>,var,...] | Create a generic function that interprets the given expression |
taylorexpand::name(func,{var1,var2,...},val,order,eps1,eps2] | Create a taylor expansion of func w.r.t. {var1,var2,..} around val up to order |
‘lagrangianmorph::name("$fileName('infile.root’),$observableName(obs),$couplings({var1[-10,10],var2[-10,10]}),$folders({'sample1,sample2,sample3'}),$NewPhysics(var1=1,var2=0)"]<td> Create a RooLagrangianMorphFunc function for the observable obs as a function of var1, var2` based on input templates stored in the folders in the file |
The functionality of high-level object creation tools like RooSimWSTool, RooCustomizer and RooClassFactory is also interfaced through meta-types in the factory.
Interface to RooSimWSTool | |
---|---|
SIMCLONE::name( modelPdf, $ParamSplit(...), $ParamSplitConstrained(...), $Restrict(...) ] | Clone-and-customize modelPdf according to ParamSplit and ParamSplitConstrained() specifications and return a RooSimultaneous pdf of all built clones |
MSIMCLONE::name( masterIndex, $AddPdf(mstate1, modelPdf1, $ParamSplit(...)), $AddPdf(mstate2,modelPdf2),...) ] | Clone-and-customize multiple models (modelPdf1,modelPdf2) according to ParamSplit and ParamSplitConstrained() specifications and return a RooSimultaneous pdf of all built clones, using the specified master index to map prototype pdfs to master states |
Interface to RooCustomizer | |
EDIT::name( orig, substNode=origNode), ... ] | Create a clone of input object orig, with the specified replacements operations executed |
EDIT::name( orig, origNode=$REMOVE(), ... ] | Create clone of input removing term origNode from all PROD() terms that contained it |
EDIT::name( orig, origNode=$REMOVE(prodname,...), ... ] | As above, but restrict removal of origNode to PROD term(s) prodname,... |
Interface to RooClassFactory | |
CEXPR::name(<expr>,var,...] | Create a custom compiled pdf that evaluates the given expression |
cexpr::name(<expr>,var,...] | Create a custom compiled function that evaluates the given expression |
$MetaType(...) | Meta argument that does not result in construction of an object but is used logically organize input arguments in certain operator pdf constructions. The defined meta arguments are context dependent. The only meta argument that is defined globally is $Alias(typeName,aliasName) to define aliases for type names. For the definition of meta arguments in operator pdfs see the definitions below. |
Definition at line 821 of file RooFactoryWSTool.cxx.
|
protected |
Parse token.
Definition at line 1185 of file RooFactoryWSTool.cxx.
|
protected |
Process a single composite expression.
A=RooGaussian::g[x,m,s]
--> A=g
f[0,1]*RooGaussiang[x,m,s]
--> f*g
RooGaussian::g(x,y,s)|x
--> g|x
$MetaArg(RooGaussian::g[x,m,s],blah)
--> $MetaArg(g,blah)
Definition at line 909 of file RooFactoryWSTool.cxx.
|
protected |
Glue function between high-level syntax and low-level factory call to createArg: Process a parsed call to create a pdf named func
The func arg is interpreted as ClassName::ObjectName and the arglist is passed verbatim to createArg. The received arglist is expected to be fully reduced (i.e. all inline object creations must have been compiled)
Definition at line 1337 of file RooFactoryWSTool.cxx.
|
protected |
Glue function between high-level syntax and low-level factory call to createVariable: Process a parsed call to create a variable named func
If initial token is non-numeric, a RooCategory will be created, and the args are interpreted as either state names or name=id
assignments. Otherwise a RooRealvar is created and the arg list is interpreted as follows:
xmin,xmax
xinit,xmin,xmax
xinit
and the variable is set as constant Definition at line 1267 of file RooFactoryWSTool.cxx.
std::string RooFactoryWSTool::processExpression | ( | const char * | token | ) |
Process a single high-level expression or list of expressions.
The returned string a the reduced expression where all inline object creations have been executed and substituted with the name of the created object
RooGaussian::g(x,m,s)
--> g
{x(-10,10),s}
--> {x,s}
Definition at line 882 of file RooFactoryWSTool.cxx.
|
protected |
Process a list of high-level expression.
The returned string a the reduced expression list where all inline object creations have been executed and substituted with the name of the created object
{x(-10,10),s}
--> {x,s}
Definition at line 1118 of file RooFactoryWSTool.cxx.
|
protected |
Concatenate list of args into comma separated string.
Definition at line 1385 of file RooFactoryWSTool.cxx.
|
protected |
Process a single high-level expression.
The returned string a the reduced expression where all inline object creations have been executed and substituted with the name of the created object
RooGaussian::g(x,m,s)
--> g
x[-10,10]
--> x
Definition at line 972 of file RooFactoryWSTool.cxx.
RooProdPdf * RooFactoryWSTool::prod | ( | const char * | objName, |
const char * | pdfList | ||
) |
Definition at line 560 of file RooFactoryWSTool.cxx.
RooProduct * RooFactoryWSTool::prodfunc | ( | const char * | objName, |
const char * | pdfList | ||
) |
Definition at line 726 of file RooFactoryWSTool.cxx.
|
static |
Register foreign special objects in factory.
Definition at line 1891 of file RooFactoryWSTool.cxx.
|
protected |
Definition at line 1205 of file RooFactoryWSTool.cxx.
|
inline |
Definition at line 156 of file RooFactoryWSTool.h.
RooSimultaneous * RooFactoryWSTool::simul | ( | const char * | objName, |
const char * | indexCat, | ||
const char * | pdfMap | ||
) |
Definition at line 626 of file RooFactoryWSTool.cxx.
vector< string > RooFactoryWSTool::splitFunctionArgs | ( | const char * | funcExpr | ) |
Allocate and fill work buffer.
Definition at line 1409 of file RooFactoryWSTool.cxx.
|
overridevirtual |
|
inline |
Definition at line 199 of file RooFactoryWSTool.h.
|
protected |
Definition at line 1238 of file RooFactoryWSTool.cxx.
|
inline |
Definition at line 75 of file RooFactoryWSTool.h.
|
protected |
Definition at line 184 of file RooFactoryWSTool.h.
|
protected |
Definition at line 197 of file RooFactoryWSTool.h.
|
protected |
Definition at line 164 of file RooFactoryWSTool.h.
|
protected |
Definition at line 195 of file RooFactoryWSTool.h.
|
staticprotected |
Definition at line 188 of file RooFactoryWSTool.h.
|
staticprotected |
Definition at line 183 of file RooFactoryWSTool.h.
|
protected |
Definition at line 165 of file RooFactoryWSTool.h.
|
protected |
Definition at line 190 of file RooFactoryWSTool.h.