Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User |
RooGenCategoryclass description - source file - inheritance tree (.pdf) class RooGenCategory : public RooAbsCategory
protected: Data Membersprotected: Class DescriptionRooGenCategory provides the most flexibe mapping of a series of input categories on a output category via a global function provided in the constructor The mapping function must have the form 'const char* mapFunc(const RooArgSet* catList)' and return the name of the output state for the list of categories supplied in the argument. The global function can be a ROOT interpreted function. RooGenCategory builds a numerical index-to-index map from the user function to achieve a high performance mapping. RooGenCategory(const char *name, const char *title, void *userFunc, RooArgSet& catList) : RooAbsCategory(name, title), _superCat("superCat","Super Category",catList), _superCatProxy("superCatProxy","Super Category Proxy",this,_superCat), _map(0) Constructor with pointer to user mapping function and list of input categories RooGenCategory(const RooGenCategory& other, const char *name) : RooAbsCategory(other,name), _superCat(other._superCat), _superCatProxy("superCatProxy","Super Category Proxy",this,_superCat), _map(0), _userFuncName(other._userFuncName) Copy constructor void initialize() Initialization function ~RooGenCategory() Destructor TString evalUserFunc(RooArgSet *vars) Utility function to evaluate (interpreted) user function void updateIndexList() Update list of states and reevaluate input index code to output index code map evaluate() const Calculate current value of object void printToStream(ostream& os, PrintOption opt, TString indent) const Print info about this mapped category to the specified stream. In addition to the info from RooAbsCategory::printToStream() we add: Standard : input category Shape : default value Verbose : list of mapping rules Bool_t readFromStream(istream& /*is*/, Bool_t compact, Bool_t /*verbose*/) Read object contents from given stream void writeToStream(ostream& os, Bool_t compact) const Write object contents to given stream Inline FunctionsRooGenCategory RooGenCategory(const RooGenCategory& other, const char* name = "0") TObject* clone(const char* newname) const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
|
Page maintained by Wouter Verkerke and David Kirkby |