ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 setVerbose (Bool_t flag)
 
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...
 
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...
 
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 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...
 
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 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...
 
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...
 
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 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...
 
Int_t getInt (const char *name, Int_t defaultValue=0)
 Return integer property registered with name 'name'. More...
 
Double_t getDouble (const char *name, Double_t defaultValue=0)
 Return Double_t 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...
 
TObjectgetObject (const char *name, TObject *obj=0)
 Return TObject property registered with name 'name'. More...
 
RooArgSetgetSet (const char *name, RooArgSet *set=0)
 Return RooArgSet property registered with name 'name'. More...
 
const RooLinkedListgetObjectList (const char *name)
 Return list of objects registered with name 'name'. More...
 
Bool_t ok (Bool_t verbose) const
 Return true of parsing was successful. More...
 
const char * missingArgs () const
 Return string with names of arguments that were required, but not processed. More...
 
RooLinkedList filterCmdList (RooLinkedList &cmdInList, const char *cmdNameList, Bool_t removeFromInList=kTRUE)
 Utility function to filter commands listed in cmdNameList from cmdInList. More...
 
void stripCmdList (RooLinkedList &cmdList, const char *cmdsToPurge)
 Utility function that strips command names listed (comma separated) in cmdsToPurge from cmdList. More...
 
Bool_t hasProcessed (const char *cmdName) const
 Return true if RooCmdArg with name 'cmdName' has been processed. More...
 
void print ()
 Print configuration of parser. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. 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...
 
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 pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. 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 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 UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual const char * GetTitle () const
 Returns title of object. 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...
 
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...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
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 IsSortable () const
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. 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...
 
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...
 
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 UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. 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...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. 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...
 
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...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. 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 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 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 Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

#include <RooCmdConfig.h>

Inheritance diagram for RooCmdConfig:
[legend]

Constructor & Destructor Documentation

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::RooCmdConfig ( const RooCmdConfig other)

Copy constructor.

Definition at line 84 of file RooCmdConfig.cxx.

RooCmdConfig::~RooCmdConfig ( )

Destructor.

Definition at line 169 of file RooCmdConfig.cxx.

Member Function Documentation

void RooCmdConfig::allowUndefined ( Bool_t  flag = kTRUE)
inline
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.

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.

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.

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.

Referenced by RooAbsRealLValue::createHistogram(), RooDataHist::RooDataHist(), and RooDataSet::RooDataSet().

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.

Referenced by RooAbsRealLValue::createHistogram(), RooAbsPdf::createNLL(), RooAbsRealLValue::frame(), RooAbsPdf::generate(), RooAbsPdf::generateBinned(), RooMCStudy::makeFrameAndPlotCmd(), RooAbsPdf::paramOn(), RooSimultaneous::plotOn(), RooAbsPdf::plotOn(), RooAbsData::plotOn(), RooAbsReal::plotOn(), RooDataSet::plotOnXY(), RooDataHist::RooDataHist(), and RooAbsData::statOn().

Bool_t RooCmdConfig::defineInt ( const char *  name,
const char *  argName,
Int_t  intNum,
Int_t  defValue = 0 
)
void RooCmdConfig::defineMutex ( const char *  argName1,
const char *  argName2 
)
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.

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.

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.

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.

Referenced by RooMsgService::addStream(), RooAbsReal::chi2FitDriver(), RooAbsPdf::createCdf(), RooAbsReal::createChi2(), RooAbsPdf::createChi2(), RooAbsRealLValue::createHistogram(), RooAbsData::createHistogram(), RooAbsReal::createHistogram(), RooAbsReal::createIntegral(), RooAbsReal::createRunningIntegral(), decodeObjOnTheFly(), RooAbsPdf::fitTo(), RooAbsRealLValue::frame(), RooAbsPdf::generate(), RooAbsPdf::paramOn(), RooSimultaneous::plotOn(), RooAbsPdf::plotOn(), RooAbsData::plotOn(), RooAbsReal::plotOn(), RooDataSet::plotOnXY(), RooAbsPdf::prepareMultiGen(), RooAbsCollection::printLatex(), RooAbsData::reduce(), RooDataHist::RooDataHist(), RooDataSet::RooDataSet(), and RooMCStudy::RooMCStudy().

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.

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.

Referenced by RooAbsReal::createHistogram(), RooAbsPdf::createNLL(), RooAbsPdf::fitTo(), RooAbsReal::plotOn(), RooDataSet::RooDataSet(), and RooMCStudy::RooMCStudy().

Bool_t RooCmdConfig::defineString ( const char *  name,
const char *  argName,
Int_t  stringNum,
const char *  defVal = "",
Bool_t  appendMode = kFALSE 
)
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.

Referenced by RooAbsReal::chi2FitTo(), RooAbsPdf::chi2FitTo(), and RooAbsPdf::fitTo().

Double_t RooCmdConfig::getDouble ( const char *  name,
Double_t  defVal = 0 
)
Int_t RooCmdConfig::getInt ( const char *  name,
Int_t  defVal = 0 
)
TObject * RooCmdConfig::getObject ( const char *  name,
TObject defVal = 0 
)
const RooLinkedList & RooCmdConfig::getObjectList ( const char *  name)

Return list of objects registered with name 'name'.

Definition at line 750 of file RooCmdConfig.cxx.

Referenced by RooSimultaneous::plotOn(), RooAbsReal::plotOn(), RooAbsCollection::printLatex(), RooDataHist::RooDataHist(), and RooDataSet::RooDataSet().

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.

Referenced by RooAbsReal::createHistogram(), RooAbsPdf::createNLL(), RooAbsReal::plotOn(), RooDataSet::RooDataSet(), and RooMCStudy::RooMCStudy().

const char * RooCmdConfig::getString ( const char *  name,
const char *  defVal = "",
Bool_t  convEmptyToNull = kFALSE 
)
Bool_t RooCmdConfig::hasProcessed ( const char *  cmdName) const
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.

Referenced by ok().

Bool_t RooCmdConfig::ok ( Bool_t  verbose) const
void RooCmdConfig::print ( )

Print configuration of parser.

Definition at line 435 of file RooCmdConfig.cxx.

Bool_t RooCmdConfig::process ( const RooCmdArg arg)
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.

Bool_t RooCmdConfig::process ( const RooLinkedList argList)

Process given list with RooCmdArgs.

Definition at line 477 of file RooCmdConfig.cxx.

void RooCmdConfig::setVerbose ( Bool_t  flag)
inline

Definition at line 34 of file RooCmdConfig.h.

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.

Referenced by RooAbsData::createHistogram(), RooAbsReal::createHistogram(), RooMCStudy::makeFrameAndPlotCmd(), RooAbsPdf::plotOn(), RooAbsReal::plotOnWithErrorBand(), and RooMCStudy::plotPull().

Member Data Documentation

Bool_t RooCmdConfig::_allowUndefined
protected

Definition at line 106 of file RooCmdConfig.h.

Referenced by allowUndefined(), process(), and RooCmdConfig().

TIterator* RooCmdConfig::_cIter
protected

Definition at line 124 of file RooCmdConfig.h.

Referenced by process(), RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_cList
protected

Definition at line 112 of file RooCmdConfig.h.

Referenced by defineSet(), getSet(), RooCmdConfig(), and ~RooCmdConfig().

TIterator* RooCmdConfig::_dIter
protected

Definition at line 121 of file RooCmdConfig.h.

Referenced by print(), process(), RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_dList
protected

Definition at line 109 of file RooCmdConfig.h.

Referenced by defineDouble(), getDouble(), RooCmdConfig(), and ~RooCmdConfig().

Bool_t RooCmdConfig::_error
protected

Definition at line 105 of file RooCmdConfig.h.

Referenced by ok(), process(), and RooCmdConfig().

TIterator* RooCmdConfig::_fIter
protected

Definition at line 126 of file RooCmdConfig.h.

Referenced by RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_fList
protected

Definition at line 115 of file RooCmdConfig.h.

Referenced by process(), RooCmdConfig(), and ~RooCmdConfig().

TIterator* RooCmdConfig::_iIter
protected

Definition at line 120 of file RooCmdConfig.h.

Referenced by print(), process(), RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_iList
protected

Definition at line 108 of file RooCmdConfig.h.

Referenced by defineInt(), getInt(), RooCmdConfig(), and ~RooCmdConfig().

TIterator* RooCmdConfig::_mIter
protected

Definition at line 127 of file RooCmdConfig.h.

Referenced by RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_mList
protected

Definition at line 116 of file RooCmdConfig.h.

Referenced by defineMutex(), process(), RooCmdConfig(), and ~RooCmdConfig().

TString RooCmdConfig::_name
protected

Definition at line 102 of file RooCmdConfig.h.

Referenced by ok(), process(), and RooCmdConfig().

TIterator* RooCmdConfig::_oIter
protected

Definition at line 123 of file RooCmdConfig.h.

Referenced by print(), process(), RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_oList
protected

Definition at line 111 of file RooCmdConfig.h.

Referenced by defineObject(), getObject(), getObjectList(), RooCmdConfig(), and ~RooCmdConfig().

TIterator* RooCmdConfig::_pIter
protected

Definition at line 129 of file RooCmdConfig.h.

Referenced by RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_pList
protected

Definition at line 118 of file RooCmdConfig.h.

Referenced by hasProcessed(), process(), RooCmdConfig(), and ~RooCmdConfig().

TIterator* RooCmdConfig::_rIter
protected

Definition at line 125 of file RooCmdConfig.h.

Referenced by missingArgs(), RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_rList
protected

Definition at line 114 of file RooCmdConfig.h.

Referenced by defineRequiredArgs(), ok(), process(), RooCmdConfig(), and ~RooCmdConfig().

TIterator* RooCmdConfig::_sIter
protected

Definition at line 122 of file RooCmdConfig.h.

Referenced by print(), process(), RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_sList
protected

Definition at line 110 of file RooCmdConfig.h.

Referenced by defineString(), getString(), RooCmdConfig(), and ~RooCmdConfig().

Bool_t RooCmdConfig::_verbose
protected

Definition at line 104 of file RooCmdConfig.h.

Referenced by process(), RooCmdConfig(), and setVerbose().

TIterator* RooCmdConfig::_yIter
protected

Definition at line 128 of file RooCmdConfig.h.

Referenced by RooCmdConfig(), and ~RooCmdConfig().

TList RooCmdConfig::_yList
protected

Definition at line 117 of file RooCmdConfig.h.

Referenced by defineDependency(), process(), RooCmdConfig(), and ~RooCmdConfig().

Collaboration diagram for RooCmdConfig:
[legend]

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