Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User

RooFit Toolkit for Data Modeling
#include "RooSuperCategory.hh"

RooSuperCategory


class description - source file - inheritance tree (.pdf)

class RooSuperCategory : public RooAbsCategoryLValue

Inheritance Chart:
TObject
<-
TNamed
RooPrintable
<-
RooAbsArg
<-
RooAbsCategory
RooAbsLValue
<-
RooAbsCategoryLValue
<-
RooSuperCategory

    protected:
TString currentLabel() const virtual RooCatType evaluate() const Bool_t setType(const RooCatType* type, Bool_t prinError = kTRUE) void updateIndexList() public:
RooSuperCategory() RooSuperCategory(const char* name, const char* title, const RooArgSet& inputCatList) RooSuperCategory(const RooSuperCategory& other, const char* name = "0") virtual ~RooSuperCategory() static TClass* Class() virtual TObject* clone(const char* newname) const virtual Bool_t hasRange(const char* rangeName) const const RooArgSet& inputCatList() const virtual Bool_t inRange(const char* rangeName) const virtual TClass* IsA() const TIterator* MakeIterator() const virtual void printToStream(ostream& os, RooPrintable::PrintOption opt = Standard, TString indent = ) const virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose = kFALSE) virtual Bool_t setIndex(Int_t index, Bool_t printError = kTRUE) virtual Bool_t setLabel(const char* label, Bool_t printError = kTRUE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual void writeToStream(ostream& os, Bool_t compact) const

Data Members


    protected:
RooSetProxy _catSet Set of input category TIterator* _catIter Iterator over set of input categories

Class Description

 RooSuperCategory consolidates several RooAbsCategoryLValue objects into
 a single category. The states of the super category consist of all the permutations
 of the input categories. The super category is an lvalue itself and a modification
 of its state will back propagate into a modification of its input categories.

 RooSuperCategory state are automatically defined and updated whenever an input
 category modifies its list of states

RooSuperCategory(const char *name, const char *title, const RooArgSet& inputCatList) : RooAbsCategoryLValue(name, title), _catSet("catSet","Input category set",this,kTRUE,kTRUE)
 Constructor from list of input categories

RooSuperCategory(const RooSuperCategory& other, const char *name) : RooAbsCategoryLValue(other,name), _catSet("catSet",this,other._catSet)
 Copy constructor

~RooSuperCategory()
 Destructor

TIterator* MakeIterator() const
 Make an iterator over all state permutations of
 the input categories of this supercategory

void updateIndexList()
 Update the list of super-category states

TString currentLabel() const
 Return the name of the current state,
 constructed from the state names of the input categories

evaluate() const
 Calculate the current value

Bool_t setIndex(Int_t index, Bool_t /*printError*/)
 Set the value of the super category by specifying the state index code
 Indirectly sets the values of the input categories

Bool_t setLabel(const char* label, Bool_t /*printError*/)
 Set the value of the super category by specifying the state name
 Indirectly sets the values of the input categories

Bool_t setType(const RooCatType* type, Bool_t /*printError*/)
 Set the value of the super category by specifying the state object
 Indirectly sets the values of the input categories

void printToStream(ostream& os, PrintOption opt, TString indent) const
 Print the state of this object to the specified output stream.

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

Bool_t inRange(const char* rangeName) const
 Return true of all of the input category states are in the given range

Bool_t hasRange(const char* rangeName) const



Inline Functions


        RooSuperCategory RooSuperCategory(const RooSuperCategory& other, const char* name = "0")
                TObject* clone(const char* newname) const
        const RooArgSet& inputCatList() const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
Last CVS Update: v 1.27 2005/12/08 13:19:55 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby

SourceForge.net Logo