Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
RooCmdConfig Class Reference

Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.

It maps the contents of named arguments named to integers, doubles, strings and TObjects that can be retrieved after processing a set of RooCmdArgs. The parser also has options to enforce syntax rules such as (conditionally) required arguments, mutually exclusive arguments and dependencies between arguments

Definition at line 27 of file RooCmdConfig.h.

Public Member Functions

 RooCmdConfig (const char *methodName)
 Constructor taking descriptive name of owner/user which is used as prefix for any warning or error messages generated by this parser. More...
 
 RooCmdConfig (const RooCmdConfig &other)
 Copy constructor. More...
 
 ~RooCmdConfig ()
 Destructor. More...
 
void allowUndefined (Bool_t flag=kTRUE)
 
void defineDependency (const char *refArgName, const char *neededArgName)
 Define that processing argument name refArgName requires processing of argument named neededArgName to successfully complete parsing. More...
 
Bool_t defineDouble (const char *name, const char *argName, Int_t doubleNum, Double_t defValue=0.)
 Define Double_t property name 'name' mapped to Double_t in slot 'doubleNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed. More...
 
Bool_t defineInt (const char *name, const char *argName, Int_t intNum, Int_t defValue=0)
 Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName Define default value for this int property to be defVal in case named argument is not processed. More...
 
void defineMutex (const char *argName1, const char *argName2)
 Define arguments named argName1 and argName2 mutually exclusive. More...
 
void defineMutex (const char *argName1, const char *argName2, const char *argName3)
 Define arguments named argName1,argName2 and argName3 mutually exclusive. More...
 
void defineMutex (const char *argName1, const char *argName2, const char *argName3, const char *argName4)
 Define arguments named argName1,argName2,argName3 and argName4 mutually exclusive. More...
 
void defineMutex (const char *argName1, const char *argName2, const char *argName3, const char *argName4, const char *argName5)
 Define arguments named argName1,argName2,argName3 and argName4 mutually exclusive. More...
 
Bool_t defineObject (const char *name, const char *argName, Int_t setNum, const TObject *obj=0, Bool_t isArray=kFALSE)
 Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed. More...
 
void defineRequiredArgs (const char *argName1, const char *argName2=0, const char *argName3=0, const char *argName4=0, const char *argName5=0, const char *argName6=0, const char *argName7=0, const char *argName8=0)
 Add condition that any of listed arguments must be processed for parsing to be declared successful. More...
 
Bool_t defineSet (const char *name, const char *argName, Int_t setNum, const RooArgSet *set=0)
 Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed. More...
 
Bool_t defineString (const char *name, const char *argName, Int_t stringNum, const char *defValue="", Bool_t appendMode=kFALSE)
 Define Double_t property name 'name' mapped to Double_t in slot 'stringNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed If appendMode is true, values found in multiple matching RooCmdArg arguments will be concatenated in the output string. More...
 
RooLinkedList filterCmdList (RooLinkedList &cmdInList, const char *cmdNameList, Bool_t removeFromInList=kTRUE)
 Utility function to filter commands listed in cmdNameList from cmdInList. More...
 
Double_t getDouble (const char *name, Double_t defaultValue=0)
 Return Double_t property registered with name 'name'. More...
 
Int_t getInt (const char *name, Int_t defaultValue=0)
 Return integer property registered with name 'name'. More...
 
TObjectgetObject (const char *name, TObject *obj=0)
 Return TObject property registered with name 'name'. More...
 
const RooLinkedListgetObjectList (const char *name)
 Return list of objects registered with name 'name'. More...
 
RooArgSetgetSet (const char *name, RooArgSet *set=0)
 Return RooArgSet property registered with name 'name'. More...
 
const char * getString (const char *name, const char *defaultValue="", Bool_t convEmptyToNull=kFALSE)
 Return string property registered with name 'name'. More...
 
Bool_t hasProcessed (const char *cmdName) const
 Return true if RooCmdArg with name 'cmdName' has been processed. More...
 
const char * missingArgs () const
 Return string with names of arguments that were required, but not processed. More...
 
Bool_t ok (Bool_t verbose) const
 Return true of parsing was successful. More...
 
void print ()
 Print configuration of parser. More...
 
Bool_t process (const RooCmdArg &arg)
 Process given RooCmdArg. More...
 
Bool_t process (const RooCmdArg &arg1, const RooCmdArg &arg2, const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
 Process given RooCmdArgs. More...
 
Bool_t process (const RooLinkedList &argList)
 Process given list with RooCmdArgs. More...
 
void setVerbose (Bool_t flag)
 
void stripCmdList (RooLinkedList &cmdList, const char *cmdsToPurge)
 Utility function that strips command names listed (comma separated) in cmdsToPurge from cmdList. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
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. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
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. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
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). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
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. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 

Static Public Member Functions

static Int_t decodeIntOnTheFly (const char *callerID, const char *cmdArgName, Int_t intIdx, Int_t defVal, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg())
 Static decoder function allows to retrieve integer property from set of RooCmdArgs For use in base member initializers in constructors. More...
 
static TObjectdecodeObjOnTheFly (const char *callerID, const char *cmdArgName, Int_t objIdx, TObject *defVal, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg())
 Static decoder function allows to retrieve object property from set of RooCmdArgs For use in base member initializers in constructors. More...
 
static const char * decodeStringOnTheFly (const char *callerID, const char *cmdArgName, Int_t intIdx, const char *defVal, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg())
 Static decoder function allows to retrieve string property from set of RooCmdArgs For use in base member initializers in constructors. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Attributes

Bool_t _allowUndefined
 
TIterator_cIter
 
TList _cList
 
TIterator_dIter
 
TList _dList
 
Bool_t _error
 
TIterator_fIter
 
TList _fList
 
TIterator_iIter
 
TList _iList
 
TIterator_mIter
 
TList _mList
 
TString _name
 
TIterator_oIter
 
TList _oList
 
TIterator_pIter
 
TList _pList
 
TIterator_rIter
 
TList _rList
 
TIterator_sIter
 
TList _sList
 
Bool_t _verbose
 
TIterator_yIter
 
TList _yList
 

Additional Inherited Members

- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 
- 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). More...
 
void MakeZombie ()
 

#include <RooCmdConfig.h>

Inheritance diagram for RooCmdConfig:
[legend]

Constructor & Destructor Documentation

◆ RooCmdConfig() [1/2]

RooCmdConfig::RooCmdConfig ( const char *  methodName)

Constructor taking descriptive name of owner/user which is used as prefix for any warning or error messages generated by this parser.

Definition at line 58 of file RooCmdConfig.cxx.

◆ RooCmdConfig() [2/2]

RooCmdConfig::RooCmdConfig ( const RooCmdConfig other)

Copy constructor.

Definition at line 84 of file RooCmdConfig.cxx.

◆ ~RooCmdConfig()

RooCmdConfig::~RooCmdConfig ( )

Destructor.

Definition at line 169 of file RooCmdConfig.cxx.

Member Function Documentation

◆ allowUndefined()

void RooCmdConfig::allowUndefined ( Bool_t  flag = kTRUE)
inline

Definition at line 39 of file RooCmdConfig.h.

◆ decodeIntOnTheFly()

Int_t RooCmdConfig::decodeIntOnTheFly ( const char *  callerID,
const char *  cmdArgName,
Int_t  intIdx,
Int_t  defVal,
const RooCmdArg arg1,
const RooCmdArg arg2 = RooCmdArg(),
const RooCmdArg arg3 = RooCmdArg(),
const RooCmdArg arg4 = RooCmdArg(),
const RooCmdArg arg5 = RooCmdArg(),
const RooCmdArg arg6 = RooCmdArg(),
const RooCmdArg arg7 = RooCmdArg(),
const RooCmdArg arg8 = RooCmdArg(),
const RooCmdArg arg9 = RooCmdArg() 
)
static

Static decoder function allows to retrieve integer property from set of RooCmdArgs For use in base member initializers in constructors.

Definition at line 835 of file RooCmdConfig.cxx.

◆ decodeObjOnTheFly()

TObject * RooCmdConfig::decodeObjOnTheFly ( const char *  callerID,
const char *  cmdArgName,
Int_t  objIdx,
TObject defVal,
const RooCmdArg arg1,
const RooCmdArg arg2 = RooCmdArg(),
const RooCmdArg arg3 = RooCmdArg(),
const RooCmdArg arg4 = RooCmdArg(),
const RooCmdArg arg5 = RooCmdArg(),
const RooCmdArg arg6 = RooCmdArg(),
const RooCmdArg arg7 = RooCmdArg(),
const RooCmdArg arg8 = RooCmdArg(),
const RooCmdArg arg9 = RooCmdArg() 
)
static

Static decoder function allows to retrieve object property from set of RooCmdArgs For use in base member initializers in constructors.

Definition at line 884 of file RooCmdConfig.cxx.

◆ decodeStringOnTheFly()

const char * RooCmdConfig::decodeStringOnTheFly ( const char *  callerID,
const char *  cmdArgName,
Int_t  intIdx,
const char *  defVal,
const RooCmdArg arg1,
const RooCmdArg arg2 = RooCmdArg(),
const RooCmdArg arg3 = RooCmdArg(),
const RooCmdArg arg4 = RooCmdArg(),
const RooCmdArg arg5 = RooCmdArg(),
const RooCmdArg arg6 = RooCmdArg(),
const RooCmdArg arg7 = RooCmdArg(),
const RooCmdArg arg8 = RooCmdArg(),
const RooCmdArg arg9 = RooCmdArg() 
)
static

Static decoder function allows to retrieve string property from set of RooCmdArgs For use in base member initializers in constructors.

Definition at line 855 of file RooCmdConfig.cxx.

◆ defineDependency()

void RooCmdConfig::defineDependency ( const char *  refArgName,
const char *  neededArgName 
)

Define that processing argument name refArgName requires processing of argument named neededArgName to successfully complete parsing.

Definition at line 247 of file RooCmdConfig.cxx.

◆ defineDouble()

Bool_t RooCmdConfig::defineDouble ( const char *  name,
const char *  argName,
Int_t  doubleNum,
Double_t  defValue = 0. 
)

Define Double_t property name 'name' mapped to Double_t in slot 'doubleNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed.

Definition at line 339 of file RooCmdConfig.cxx.

◆ defineInt()

Bool_t RooCmdConfig::defineInt ( const char *  name,
const char *  argName,
Int_t  intNum,
Int_t  defValue = 0 
)

Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName Define default value for this int property to be defVal in case named argument is not processed.

Definition at line 317 of file RooCmdConfig.cxx.

◆ defineMutex() [1/4]

void RooCmdConfig::defineMutex ( const char *  argName1,
const char *  argName2 
)

Define arguments named argName1 and argName2 mutually exclusive.

Definition at line 258 of file RooCmdConfig.cxx.

◆ defineMutex() [2/4]

void RooCmdConfig::defineMutex ( const char *  argName1,
const char *  argName2,
const char *  argName3 
)

Define arguments named argName1,argName2 and argName3 mutually exclusive.

Definition at line 271 of file RooCmdConfig.cxx.

◆ defineMutex() [3/4]

void RooCmdConfig::defineMutex ( const char *  argName1,
const char *  argName2,
const char *  argName3,
const char *  argName4 
)

Define arguments named argName1,argName2,argName3 and argName4 mutually exclusive.

Definition at line 282 of file RooCmdConfig.cxx.

◆ defineMutex() [4/4]

void RooCmdConfig::defineMutex ( const char *  argName1,
const char *  argName2,
const char *  argName3,
const char *  argName4,
const char *  argName5 
)

Define arguments named argName1,argName2,argName3 and argName4 mutually exclusive.

Definition at line 297 of file RooCmdConfig.cxx.

◆ defineObject()

Bool_t RooCmdConfig::defineObject ( const char *  name,
const char *  argName,
Int_t  setNum,
const TObject defVal = 0,
Bool_t  isArray = kFALSE 
)

Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed.

If isArray is true, an array of TObjects is harvested in case multiple matching named arguments are processed. If isArray is false, only the TObject in the last processed named argument is retained

Definition at line 388 of file RooCmdConfig.cxx.

◆ defineRequiredArgs()

void RooCmdConfig::defineRequiredArgs ( const char *  argName1,
const char *  argName2 = 0,
const char *  argName3 = 0,
const char *  argName4 = 0,
const char *  argName5 = 0,
const char *  argName6 = 0,
const char *  argName7 = 0,
const char *  argName8 = 0 
)

Add condition that any of listed arguments must be processed for parsing to be declared successful.

Definition at line 200 of file RooCmdConfig.cxx.

◆ defineSet()

Bool_t RooCmdConfig::defineSet ( const char *  name,
const char *  argName,
Int_t  setNum,
const RooArgSet defVal = 0 
)

Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed.

If isArray is true, an array of TObjects is harvested in case multiple matching named arguments are processed. If isArray is false, only the TObject in the last processed named argument is retained

Definition at line 413 of file RooCmdConfig.cxx.

◆ defineString()

Bool_t RooCmdConfig::defineString ( const char *  name,
const char *  argName,
Int_t  stringNum,
const char *  defVal = "",
Bool_t  appendMode = kFALSE 
)

Define Double_t property name 'name' mapped to Double_t in slot 'stringNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed If appendMode is true, values found in multiple matching RooCmdArg arguments will be concatenated in the output string.

If it is false, only the value of the last processed instance is retained

Definition at line 363 of file RooCmdConfig.cxx.

◆ filterCmdList()

RooLinkedList RooCmdConfig::filterCmdList ( RooLinkedList cmdInList,
const char *  cmdNameList,
Bool_t  removeFromInList = kTRUE 
)

Utility function to filter commands listed in cmdNameList from cmdInList.

Filtered arguments are put in the returned list. If removeFromInList is true then these commands are removed from the input list

Definition at line 806 of file RooCmdConfig.cxx.

◆ getDouble()

Double_t RooCmdConfig::getDouble ( const char *  name,
Double_t  defVal = 0 
)

Return Double_t property registered with name 'name'.

If no property is registered, return defVal

Definition at line 703 of file RooCmdConfig.cxx.

◆ getInt()

Int_t RooCmdConfig::getInt ( const char *  name,
Int_t  defVal = 0 
)

Return integer property registered with name 'name'.

If no property is registered, return defVal

Definition at line 691 of file RooCmdConfig.cxx.

◆ getObject()

TObject * RooCmdConfig::getObject ( const char *  name,
TObject defVal = 0 
)

Return TObject property registered with name 'name'.

If no property is registered, return defVal

Definition at line 728 of file RooCmdConfig.cxx.

◆ getObjectList()

const RooLinkedList & RooCmdConfig::getObjectList ( const char *  name)

Return list of objects registered with name 'name'.

Definition at line 750 of file RooCmdConfig.cxx.

◆ getSet()

RooArgSet * RooCmdConfig::getSet ( const char *  name,
RooArgSet defVal = 0 
)

Return RooArgSet property registered with name 'name'.

If no property is registered, return defVal

Definition at line 739 of file RooCmdConfig.cxx.

◆ getString()

const char * RooCmdConfig::getString ( const char *  name,
const char *  defVal = "",
Bool_t  convEmptyToNull = kFALSE 
)

Return string property registered with name 'name'.

If no property is registered, return defVal. If convEmptyToNull is true, empty string will be returned as null pointers

Definition at line 716 of file RooCmdConfig.cxx.

◆ hasProcessed()

Bool_t RooCmdConfig::hasProcessed ( const char *  cmdName) const

Return true if RooCmdArg with name 'cmdName' has been processed.

Definition at line 680 of file RooCmdConfig.cxx.

◆ missingArgs()

const char * RooCmdConfig::missingArgs ( ) const

Return string with names of arguments that were required, but not processed.

Definition at line 221 of file RooCmdConfig.cxx.

◆ ok()

Bool_t RooCmdConfig::ok ( Bool_t  verbose) const

Return true of parsing was successful.

Definition at line 762 of file RooCmdConfig.cxx.

◆ print()

void RooCmdConfig::print ( )

Print configuration of parser.

Definition at line 435 of file RooCmdConfig.cxx.

◆ process() [1/3]

Bool_t RooCmdConfig::process ( const RooCmdArg arg)

Process given RooCmdArg.

Definition at line 514 of file RooCmdConfig.cxx.

◆ process() [2/3]

Bool_t RooCmdConfig::process ( const RooCmdArg arg1,
const RooCmdArg arg2,
const RooCmdArg arg3 = RooCmdArg::none(),
const RooCmdArg arg4 = RooCmdArg::none(),
const RooCmdArg arg5 = RooCmdArg::none(),
const RooCmdArg arg6 = RooCmdArg::none(),
const RooCmdArg arg7 = RooCmdArg::none(),
const RooCmdArg arg8 = RooCmdArg::none() 
)

Process given RooCmdArgs.

Definition at line 494 of file RooCmdConfig.cxx.

◆ process() [3/3]

Bool_t RooCmdConfig::process ( const RooLinkedList argList)

Process given list with RooCmdArgs.

Definition at line 477 of file RooCmdConfig.cxx.

◆ setVerbose()

void RooCmdConfig::setVerbose ( Bool_t  flag)
inline

Definition at line 34 of file RooCmdConfig.h.

◆ stripCmdList()

void RooCmdConfig::stripCmdList ( RooLinkedList cmdList,
const char *  cmdsToPurge 
)

Utility function that strips command names listed (comma separated) in cmdsToPurge from cmdList.

Definition at line 782 of file RooCmdConfig.cxx.

Member Data Documentation

◆ _allowUndefined

Bool_t RooCmdConfig::_allowUndefined
protected

Definition at line 106 of file RooCmdConfig.h.

◆ _cIter

TIterator* RooCmdConfig::_cIter
protected

Definition at line 124 of file RooCmdConfig.h.

◆ _cList

TList RooCmdConfig::_cList
protected

Definition at line 112 of file RooCmdConfig.h.

◆ _dIter

TIterator* RooCmdConfig::_dIter
protected

Definition at line 121 of file RooCmdConfig.h.

◆ _dList

TList RooCmdConfig::_dList
protected

Definition at line 109 of file RooCmdConfig.h.

◆ _error

Bool_t RooCmdConfig::_error
protected

Definition at line 105 of file RooCmdConfig.h.

◆ _fIter

TIterator* RooCmdConfig::_fIter
protected

Definition at line 126 of file RooCmdConfig.h.

◆ _fList

TList RooCmdConfig::_fList
protected

Definition at line 115 of file RooCmdConfig.h.

◆ _iIter

TIterator* RooCmdConfig::_iIter
protected

Definition at line 120 of file RooCmdConfig.h.

◆ _iList

TList RooCmdConfig::_iList
protected

Definition at line 108 of file RooCmdConfig.h.

◆ _mIter

TIterator* RooCmdConfig::_mIter
protected

Definition at line 127 of file RooCmdConfig.h.

◆ _mList

TList RooCmdConfig::_mList
protected

Definition at line 116 of file RooCmdConfig.h.

◆ _name

TString RooCmdConfig::_name
protected

Definition at line 102 of file RooCmdConfig.h.

◆ _oIter

TIterator* RooCmdConfig::_oIter
protected

Definition at line 123 of file RooCmdConfig.h.

◆ _oList

TList RooCmdConfig::_oList
protected

Definition at line 111 of file RooCmdConfig.h.

◆ _pIter

TIterator* RooCmdConfig::_pIter
protected

Definition at line 129 of file RooCmdConfig.h.

◆ _pList

TList RooCmdConfig::_pList
protected

Definition at line 118 of file RooCmdConfig.h.

◆ _rIter

TIterator* RooCmdConfig::_rIter
protected

Definition at line 125 of file RooCmdConfig.h.

◆ _rList

TList RooCmdConfig::_rList
protected

Definition at line 114 of file RooCmdConfig.h.

◆ _sIter

TIterator* RooCmdConfig::_sIter
protected

Definition at line 122 of file RooCmdConfig.h.

◆ _sList

TList RooCmdConfig::_sList
protected

Definition at line 110 of file RooCmdConfig.h.

◆ _verbose

Bool_t RooCmdConfig::_verbose
protected

Definition at line 104 of file RooCmdConfig.h.

◆ _yIter

TIterator* RooCmdConfig::_yIter
protected

Definition at line 128 of file RooCmdConfig.h.

◆ _yList

TList RooCmdConfig::_yList
protected

Definition at line 117 of file RooCmdConfig.h.

Libraries for RooCmdConfig:
[legend]

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