Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
 RooCmdConfig (const RooCmdConfig &other)
 Copy constructor.
 
 ~RooCmdConfig ()
 Destructor.
 
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.
 
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.
 
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.
 
void defineMutex (const char *argName1, const char *argName2)
 Define arguments named argName1 and argName2 mutually exclusive.
 
void defineMutex (const char *argName1, const char *argName2, const char *argName3)
 Define arguments named argName1,argName2 and argName3 mutually exclusive.
 
void defineMutex (const char *argName1, const char *argName2, const char *argName3, const char *argName4)
 Define arguments named argName1,argName2,argName3 and argName4 mutually exclusive.
 
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.
 
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.
 
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.
 
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.
 
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.
 
RooLinkedList filterCmdList (RooLinkedList &cmdInList, const char *cmdNameList, Bool_t removeFromInList=kTRUE)
 Utility function to filter commands listed in cmdNameList from cmdInList.
 
Double_t getDouble (const char *name, Double_t defaultValue=0)
 Return Double_t property registered with name 'name'.
 
Int_t getInt (const char *name, Int_t defaultValue=0)
 Return integer property registered with name 'name'.
 
TObjectgetObject (const char *name, TObject *obj=0)
 Return TObject property registered with name 'name'.
 
const RooLinkedListgetObjectList (const char *name)
 Return list of objects registered with name 'name'.
 
RooArgSetgetSet (const char *name, RooArgSet *set=0)
 Return RooArgSet property registered with name 'name'.
 
const char * getString (const char *name, const char *defaultValue="", Bool_t convEmptyToNull=kFALSE)
 Return string property registered with name 'name'.
 
Bool_t hasProcessed (const char *cmdName) const
 Return true if RooCmdArg with name 'cmdName' has been processed.
 
const char * missingArgs () const
 Return string with names of arguments that were required, but not processed.
 
Bool_t ok (Bool_t verbose) const
 Return true of parsing was successful.
 
void print ()
 Print configuration of parser.
 
Bool_t process (const RooCmdArg &arg)
 Process given RooCmdArg.
 
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.
 
Bool_t process (const RooLinkedList &argList)
 Process given list with RooCmdArgs.
 
template<typename It_t >
bool process (It_t begin, It_t end)
 Process several RooCmdArg using iterators.
 
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.
 
- 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 Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method.
 
virtual void Copy (TObject &object) const
 Copy this to obj.
 
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 TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad).
 
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=0)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 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 TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual const char * GetName () const
 Returns 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_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object.
 
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.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
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)
 
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
 
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.
 
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.
 
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)
 Operator delete [].
 
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.
 
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 void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself.
 
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.
 
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=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 

Static Public Member Functions

static double decodeDoubleOnTheFly (const char *callerID, const char *cmdArgName, int idx, double defVal, std::initializer_list< std::reference_wrapper< const RooCmdArg > > args)
 Find a given double in a list of RooCmdArg.
 
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.
 
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.
 
static std::string 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.
 
- Static Public Member Functions inherited from TObject
static Long_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.
 

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 Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 
- 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 ()
 

#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 57 of file RooCmdConfig.cxx.

◆ RooCmdConfig() [2/2]

RooCmdConfig::RooCmdConfig ( const RooCmdConfig other)

Copy constructor.

Definition at line 83 of file RooCmdConfig.cxx.

◆ ~RooCmdConfig()

RooCmdConfig::~RooCmdConfig ( )

Destructor.

Definition at line 168 of file RooCmdConfig.cxx.

Member Function Documentation

◆ allowUndefined()

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

Definition at line 39 of file RooCmdConfig.h.

◆ decodeDoubleOnTheFly()

double RooCmdConfig::decodeDoubleOnTheFly ( const char *  callerID,
const char *  cmdArgName,
int  idx,
double  defVal,
std::initializer_list< std::reference_wrapper< const RooCmdArg > >  args 
)
static

Find a given double in a list of RooCmdArg.

Should only be used to initialise base classes in constructors.

Definition at line 897 of file RooCmdConfig.cxx.

◆ 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 834 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 879 of file RooCmdConfig.cxx.

◆ decodeStringOnTheFly()

std::string 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 854 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 246 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 338 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 316 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 257 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 270 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 281 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 296 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 387 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 199 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 412 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 362 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 805 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 702 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 690 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 727 of file RooCmdConfig.cxx.

◆ getObjectList()

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

Return list of objects registered with name 'name'.

Definition at line 749 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 738 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 715 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 679 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 220 of file RooCmdConfig.cxx.

◆ ok()

Bool_t RooCmdConfig::ok ( Bool_t  verbose) const

Return true of parsing was successful.

Definition at line 761 of file RooCmdConfig.cxx.

◆ print()

void RooCmdConfig::print ( )

Print configuration of parser.

Definition at line 434 of file RooCmdConfig.cxx.

◆ process() [1/4]

Bool_t RooCmdConfig::process ( const RooCmdArg arg)

Process given RooCmdArg.

Definition at line 513 of file RooCmdConfig.cxx.

◆ process() [2/4]

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 493 of file RooCmdConfig.cxx.

◆ process() [3/4]

Bool_t RooCmdConfig::process ( const RooLinkedList argList)

Process given list with RooCmdArgs.

Definition at line 476 of file RooCmdConfig.cxx.

◆ process() [4/4]

template<typename It_t >
bool RooCmdConfig::process ( It_t  begin,
It_t  end 
)
inline

Process several RooCmdArg using iterators.

Definition at line 68 of file RooCmdConfig.h.

◆ 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 781 of file RooCmdConfig.cxx.

Member Data Documentation

◆ _allowUndefined

Bool_t RooCmdConfig::_allowUndefined
protected

Definition at line 118 of file RooCmdConfig.h.

◆ _cIter

TIterator* RooCmdConfig::_cIter
protected

Definition at line 136 of file RooCmdConfig.h.

◆ _cList

TList RooCmdConfig::_cList
protected

Definition at line 124 of file RooCmdConfig.h.

◆ _dIter

TIterator* RooCmdConfig::_dIter
protected

Definition at line 133 of file RooCmdConfig.h.

◆ _dList

TList RooCmdConfig::_dList
protected

Definition at line 121 of file RooCmdConfig.h.

◆ _error

Bool_t RooCmdConfig::_error
protected

Definition at line 117 of file RooCmdConfig.h.

◆ _fIter

TIterator* RooCmdConfig::_fIter
protected

Definition at line 138 of file RooCmdConfig.h.

◆ _fList

TList RooCmdConfig::_fList
protected

Definition at line 127 of file RooCmdConfig.h.

◆ _iIter

TIterator* RooCmdConfig::_iIter
protected

Definition at line 132 of file RooCmdConfig.h.

◆ _iList

TList RooCmdConfig::_iList
protected

Definition at line 120 of file RooCmdConfig.h.

◆ _mIter

TIterator* RooCmdConfig::_mIter
protected

Definition at line 139 of file RooCmdConfig.h.

◆ _mList

TList RooCmdConfig::_mList
protected

Definition at line 128 of file RooCmdConfig.h.

◆ _name

TString RooCmdConfig::_name
protected

Definition at line 114 of file RooCmdConfig.h.

◆ _oIter

TIterator* RooCmdConfig::_oIter
protected

Definition at line 135 of file RooCmdConfig.h.

◆ _oList

TList RooCmdConfig::_oList
protected

Definition at line 123 of file RooCmdConfig.h.

◆ _pIter

TIterator* RooCmdConfig::_pIter
protected

Definition at line 141 of file RooCmdConfig.h.

◆ _pList

TList RooCmdConfig::_pList
protected

Definition at line 130 of file RooCmdConfig.h.

◆ _rIter

TIterator* RooCmdConfig::_rIter
protected

Definition at line 137 of file RooCmdConfig.h.

◆ _rList

TList RooCmdConfig::_rList
protected

Definition at line 126 of file RooCmdConfig.h.

◆ _sIter

TIterator* RooCmdConfig::_sIter
protected

Definition at line 134 of file RooCmdConfig.h.

◆ _sList

TList RooCmdConfig::_sList
protected

Definition at line 122 of file RooCmdConfig.h.

◆ _verbose

Bool_t RooCmdConfig::_verbose
protected

Definition at line 116 of file RooCmdConfig.h.

◆ _yIter

TIterator* RooCmdConfig::_yIter
protected

Definition at line 140 of file RooCmdConfig.h.

◆ _yList

TList RooCmdConfig::_yList
protected

Definition at line 129 of file RooCmdConfig.h.

Libraries for RooCmdConfig:

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