library: libRooFit
#include "RooCategory.h"

RooCategory


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

class RooCategory : public RooAbsCategoryLValue

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

    protected:
virtual RooCatType evaluate() const public:
RooCategory() RooCategory(const char* name, const char* title) RooCategory(const RooCategory& other, const char* name = "0") virtual ~RooCategory() void addToRange(const char* rangeName, const char* stateNameList) static TClass* Class() void clearRange(const char* name, Bool_t silent) void clearTypes() virtual TObject* clone(const char* newname) const Bool_t defineType(const char* label) Bool_t defineType(const char* label, Int_t index) virtual Int_t getIndex() const virtual const char* getLabel() const virtual Bool_t hasRange(const char* rangeName) const virtual Bool_t inRange(const char* rangeName) const virtual TClass* IsA() const virtual Bool_t isFundamental() const Bool_t isStateInRange(const char* rangeName, const char* stateName) 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) void setRange(const char* rangeName, const char* stateNameList) 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:
static RooSharedPropertiesList _sharedPropList List of properties shared among clone sets RooCategorySharedProperties* _sharedProp Shared properties associated with this instance

Class Description

RooCategory()
RooCategory(const char *name, const char *title)
 Constructor. Types must be defined using defineType() before variable can be used
RooCategory(const RooCategory& other, const char* name)
 Copy constructor
~RooCategory()
 Destructor
Bool_t setIndex(Int_t index, Bool_t printError)
 Set value by specifying the index code of the desired state.
 If printError is set, a message will be printed if
 the specified index does not represent a valid state.
Bool_t setLabel(const char* label, Bool_t printError)
 Set value by specifying the name of the desired state
 If printError is set, a message will be printed if
 the specified label does not represent a valid state.
Bool_t defineType(const char* label)
 Define a state with given name, the lowest available
 positive integer is assigned as index. Category
 state labels may not contain semicolons.
 Error status is return if state with given name
 is already defined
Bool_t defineType(const char* label, Int_t index)
 Define a state with given name and index. Category
 state labels may not contain semicolons
 Error status is return if state with given name
 or index is already defined
void writeToStream(ostream& os, Bool_t compact)
 compact only at the moment
void clearRange(const char* name, Bool_t silent)
 Check that both input arguments are not null pointers
void setRange(const char* name, const char* stateNameList)
void addToRange(const char* name, const char* stateNameList)
 Check that both input arguments are not null pointers
Bool_t isStateInRange(const char* rangeName, const char* stateName)
 Check that both input arguments are not null pointers
TObject* clone(const char* newname)
Int_t getIndex()
 Value modifiers
const char* getLabel()
Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose=kFALSE)
 I/O streaming interface (machine readable)
Bool_t isFundamental()
 We implement a fundamental type of AbsArg that can be stored in a dataset
void clearTypes()
Bool_t inRange(const char* rangeName)
Bool_t hasRange(const char* rangeName)
RooCatType evaluate()

Last update: Tue Jul 11 11:45:21 2006
Copyright (c) 2000-2005, Regents of the University of California *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.