class RooAbsMCStudyModule: public TNamed

RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that can perform additional calculations on each generate+fit cycle managed by RooMCStudy This class can insert code to be executed before each generation step, between the generation and fitting step and after the fitting step. Any summary output variables declared in the RooDataSet exported through summaryData() is merged with the 'master' summary dataset in RooMCStudy Look at RooDLLSignificanceMCStudyModule for an example of an implementation

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual RooDataSet*finalizeRun()
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual Bool_tinitializeInstance()
virtual Bool_tinitializeRun(Int_t)
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
RooAbsMCStudyModule&operator=(const RooAbsMCStudyModule&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Bool_tprocessAfterFit(Int_t)
virtual Bool_tprocessBeforeGen(Int_t)
virtual Bool_tprocessBetweenGenAndFit(Int_t)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
RooAbsMCStudyModule(const RooAbsMCStudyModule& other)
RooAbsMCStudyModule(const char* name, const char* title)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const

Data Members

static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
RooMCStudy*_mcsPointer to RooMCStudy object module is attached to

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooAbsMCStudyModule(const char* name, const char* title)
RooAbsMCStudyModule(const RooAbsMCStudyModule& other)
 Copy constructor
Bool_t doInitializeInstance(RooMCStudy& )
 Store reference to RooMCStudy object that this module relates to and call internal module
 initialization function
virtual ~RooAbsMCStudyModule()
Bool_t initializeInstance()
 Initializer called immediately after attachment to RooMCStudy object and initialization of module base class
Bool_t initializeRun(Int_t )
 Method called at the beginning of each RooMCStudy run
RooDataSet* finalizeRun()
 Method called at the end of each RooMCStudy run. If a RooDataSet is returned, it must have a length equal to
 the number of toy experiments performed and will merged with the fitpar dataset of RooMCStudy.
Bool_t processBeforeGen(Int_t )
 Method called after resetting of generator parameters to initial values and before call to generator context
 Any modifications to generator parameters will affect next generation operation (only)
Bool_t processBetweenGenAndFit(Int_t )
 Method called after generation of toy data sample and resetting of fit parameters to initial values and before
 actual fit is performed. Any modifications to fit parameters will apply to next fit operation. Note that setConstant
 flag of fit parameters are not explicitly reset by RooMCStudy, so any changes made to these flags here will persist
Bool_t processAfterFit(Int_t )
 Method called after fit has been performed.
RooFitResult* refit(RooAbsData* inGenSample = 0)
 Interface methods to RooMCStudy objects,
 which are only functional after module has been attached to a RooMCStudy object
RooAbsData* genSample()
 Return generate sample
RooAbsPdf* genModel()
 Return generator pdf
RooAbsGenContext* genContext()
 Accessor for generator context, generator parameters,	prototype data and projected dependents
RooArgSet* genInitParams()
 Return initial value of generator model parameters
RooArgSet* genParams()
 Return current value of generator model parameters
const RooDataSet* genProtoData()
 Return generator prototype data provided by user
RooArgSet* projDeps()
 Return projected observables
RooArgSet* dependents()
 Accessors for fit observables, fit model, current and initial fit parameters and NLL value
RooArgSet* allDependents()
 Returna all observables
RooAbsPdf* fitModel()
 Return fit model
RooArgSet* fitInitParams()
 Return initial value of parameters of fit model
RooArgSet* fitParams()
 Return current value of parameters of fit model
RooRealVar* nllVar()
 Return pointer to RooRealVar holding minimized -log(L) value
const char* fitOptions()
 Accessors for fit options, generator annd MCstudy configuration flags
RooLinkedList* fitOptList()
 Return list of fit options provided by user
Bool_t extendedGen()
 If true extended mode generation is requested
Bool_t binGenData()
 If true binning of data between generating and fitting is requested
Double_t numExpGen()
 Return expected number of events from generator model
Bool_t randProto()
 If true randomization of prototype data order is requested
Bool_t verboseGen()
 If true verbose message in the generation step is requested