A++ » TMVA » TMVA::PDEFoam

class TMVA::PDEFoam: public TObject

METHODS

Function Members (Methods)

public:
virtual~PDEFoam()
voidTObject::AbstractMethod(const char* method) const
voidAddVariableName(const char* s)
voidAddVariableName(TObjString* s)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
voidCheckAll(Int_t)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
voidCreate()
virtual voidTObject::Delete(Option_t* option = "")MENU
voidDeleteBinarySearchTree()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
TH1D*Draw1Dim(TMVA::ECellValue cell_value, Int_t nbin, TMVA::PDEFoamKernelBase* kernel = __null)
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
voidFillBinarySearchTree(const TMVA::Event* ev)
virtual voidFillFoamCells(const TMVA::Event* ev, Float_t wt)
virtual voidFinalize()
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual vector<Float_t>GetCellValue(const map<Int_t,Float_t>& xvec, TMVA::ECellValue cv)
virtual Float_tGetCellValue(const TMVA::PDEFoamCell* cell, TMVA::ECellValue cv)
virtual Float_tGetCellValue(const vector<Float_t>& xvec, TMVA::ECellValue cv, TMVA::PDEFoamKernelBase*)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TStringGetFoamName() const
virtual const char*TObject::GetIconName() const
UInt_tGetMaxDepth() const
UInt_tGetNActiveCells() const
virtual const char*TObject::GetName() const
UInt_tGetNCells() const
UInt_tGetNInActiveCells() const
UInt_tGetNmin()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TMVA::PDEFoamCell*GetRootCell() const
virtual const char*TObject::GetTitle() const
Int_tGetTotDim() const
virtual UInt_tTObject::GetUniqueID() const
TObjString*GetVariableName(Int_t idx)
Double_tGetXmax(Int_t idim) const
Double_tGetXmin(Int_t idim) const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::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
voidInitialize()
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_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
TMVA::MsgLogger&Log() const
virtual voidTObject::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)
TMVA::PDEFoam&operator=(const TMVA::PDEFoam&)
virtual voidTObject::Paint(Option_t* option = "")
TMVA::PDEFoamPDEFoam()
TMVA::PDEFoamPDEFoam(const TString&)
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
voidPrintCell(Long_t iCell = 0)
voidPrintCells()
virtual TH2D*Project2(Int_t idim1, Int_t idim2, TMVA::ECellValue cell_value = kValue, TMVA::PDEFoamKernelBase* kernel = __null, UInt_t nbin = 50)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
voidResetCellElements()
voidRootPlot2dim(const TString& filename, TString opt, Bool_t createCanvas = kTRUE, Bool_t colors = kTRUE)
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)
voidSetDensity(TMVA::PDEFoamDensityBase* dens)
voidSetDim(Int_t kDim)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEvPerBin(Int_t EvPerBin)
voidSetInhiDiv(Int_t, Int_t)
voidSetMaxDepth(UInt_t maxdepth)
voidSetnBin(Int_t nBin)
voidSetnCells(Long_t nCells)
voidSetNmin(UInt_t val)
voidSetnSampl(Long_t nSampl)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetXmax(Int_t idim, Double_t wmax)
voidSetXmin(Int_t idim, Double_t wmin)
virtual voidShowMembers(TMemberInspector& insp) 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()
vector<Float_t>VarTransform(const vector<Float_t>& invec) const
Float_tVarTransform(Int_t idim, Float_t x) const
vector<Float_t>VarTransformInvers(const vector<Float_t>& invec) const
Float_tVarTransformInvers(Int_t idim, Float_t x) const
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
protected:
Int_tCellFill(Int_t, TMVA::PDEFoamCell*)
virtual Bool_tCellValueIsUndefined(TMVA::PDEFoamCell*)
Int_tDivide(TMVA::PDEFoamCell*)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Double_tEval(Double_t* xRand, Double_t& event_density)
virtual voidExplore(TMVA::PDEFoamCell* Cell)
TMVA::PDEFoamCell*FindCell(const vector<Float_t>&) const
vector<TMVA::PDEFoamCell*>FindCells(const vector<Float_t>&) const
vector<TMVA::PDEFoamCell*>FindCells(const map<Int_t,Float_t>&) const
voidFindCells(const map<Int_t,Float_t>&, TMVA::PDEFoamCell*, vector<TMVA::PDEFoamCell*>&) const
Double_tGetCellElement(const TMVA::PDEFoamCell* cell, UInt_t i) const
TMVA::PDEFoamDensityBase*GetDistr() const
voidGrow()
voidInitCells()
voidMakeAlpha()
voidTObject::MakeZombie()
voidOutputGrow(Bool_t finished = false)
TMVA::PDEFoamPDEFoam(const TMVA::PDEFoam&)
Long_tPeekMax()
voidSetCellElement(TMVA::PDEFoamCell* cell, UInt_t i, Double_t value)
voidVaredu(Double_t[], Int_t&, Double_t&, Double_t&)

Data Members

public:
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
protected:
Double_t*fAlpha[fDim] Internal parameters of the hyperrectangle
TMVA::PDEFoamCell**fCells[fNCells] Array of ALL cells
TMVA::EDTSeparationfDTSeparationBACKWARDS COMPATIBILITY: split cells according to decision tree logic
Int_tfDimDimension of the integration/simulation space
TMVA::PDEFoamDensityBase*fDistr! distribution of training events
Int_tfEvPerBinMaximum number of effective (wt=1) events per bin
Bool_tfFillFoamWithOrigWeightsBACKWARDS COMPATIBILITY: fill the foam with boost or orig. weights
TMVA::EFoamTypefFoamTypeBACKWARDS COMPATIBILITY: type of foam
TObjArray*fHistEdgHistograms of wt, one for each cell edge
Int_t*fInhiDiv! [fDim] Flags for inhibiting cell division
Int_tfLastCeIndex of the last cell
TMVA::MsgLogger*fLogger! message logger
Int_t*fMaskDiv! [fDim] Dynamic Mask for cell division
UInt_tfMaxDepthmaximum depth of cell tree
Int_tfNBinNo. of bins in the edge histogram for cell MC exploration
Int_tfNCellsMaximum number of cells
UInt_tfNElementsBACKWARDS COMPATIBILITY: number of variables in every cell
Int_tfNSamplNo. of MC events, when dividing (exploring) cell
TStringfNameName of a given instance of the FOAM class
UInt_tfNminminimal number of events in cell to split cell
Int_tfNoActNumber of active cells
Bool_tfPeekMaxBACKWARDS COMPATIBILITY: peek up cell with max. driver integral for split
TRandom3*fPseRanPointer to user-defined generator of pseudorandom numbers
Double_t*fRvec[fDim] random number vector from r.n. generator fDim+1 maximum elements
TMVA::Timer*fTimer! timer for graphical output
TObjArray*fVariableNamescollection of all variable names
Float_tfVolFracBACKWARDS COMPATIBILITY: volume fraction (with respect to total phase space
Double_t*fXmax[fDim] maximum for variable transform
Double_t*fXmin[fDim] minimum for variable transform

Class Charts

Inheritance Chart:
TObject
TMVA::PDEFoam
TMVA::PDEFoamDiscriminant
TMVA::PDEFoamDecisionTree
TMVA::PDEFoamEvent
TMVA::PDEFoamMultiTarget
TMVA::PDEFoamTarget

Function documentation

Float_t VarTransform(Int_t idim, Float_t x) const
std::vector<Float_t> VarTransform(const vector<Float_t>& invec) const
Float_t VarTransformInvers(Int_t idim, Float_t x) const
std::vector<Float_t> VarTransformInvers(const vector<Float_t>& invec) const
void OutputGrow(Bool_t finished = false)
METHODS

 ---------- TMVA console output
void InitCells()
 ---------- Foam build-up functions
 Internal foam initialization functions
Int_t CellFill(Int_t , TMVA::PDEFoamCell* )
void Explore(TMVA::PDEFoamCell* Cell)
void Varedu(Double_t[] , Int_t& , Double_t& , Double_t& )
void MakeAlpha()
void Grow()
Long_t PeekMax()
Int_t Divide(TMVA::PDEFoamCell* )
Double_t Eval(Double_t* xRand, Double_t& event_density)
Double_t GetCellElement(const TMVA::PDEFoamCell* cell, UInt_t i) const
 ---------- Cell value access functions
 low level functions to access a certain cell value
void SetCellElement(TMVA::PDEFoamCell* cell, UInt_t i, Double_t value)
Bool_t CellValueIsUndefined(TMVA::PDEFoamCell* )
 specific function used during evaluation; determines, whether a cell value is undefined
PDEFoamCell* FindCell(const vector<Float_t>& ) const
 finds cell according to given event variables
std::vector<TMVA::PDEFoamCell*> FindCells(const std::vector<Float_t>&)
std::vector<TMVA::PDEFoamCell*> FindCells(const std::map<Int_t,Float_t>&)
void FindCells(const map<Int_t,Float_t>& , TMVA::PDEFoamCell* , vector<TMVA::PDEFoamCell*>& ) const
PDEFoamDensityBase* GetDistr() const
 get internal density
{ assert(fDistr); return fDistr; }
PDEFoam(const PDEFoam&)
PDEFoam()
 ---------- Public functions ----------------------------------
PDEFoam(const TString& )
virtual ~PDEFoam()
void Initialize()
 ---------- Foam creation functions
{}
void FillBinarySearchTree(const TMVA::Event* ev)
void Create()
void FillFoamCells(const TMVA::Event* ev, Float_t wt)
 function to fill created cell with given value
void ResetCellElements()
 remove all cell elements
void Finalize()
 function to call after foam is grown
{}
void SetDim(Int_t kDim)
 ---------- Getters and Setters
void SetnCells(Long_t nCells)
{fNCells =nCells;}
void SetnSampl(Long_t nSampl)
{fNSampl =nSampl;}
void SetnBin(Int_t nBin)
{fNBin = nBin;}
void SetEvPerBin(Int_t EvPerBin)
{fEvPerBin =EvPerBin;}
void SetInhiDiv(Int_t , Int_t )
void SetDensity(TMVA::PDEFoamDensityBase* dens)
{ fDistr = dens; }
Int_t GetTotDim() const
 coverity[ -tainted_data_return ]
{return fDim; }
TString GetFoamName() const
{return fName; }
UInt_t GetNActiveCells() const
{return fNoAct;}
UInt_t GetNInActiveCells() const
UInt_t GetNCells() const
{return fNCells;}
PDEFoamCell* GetRootCell() const
{return fCells[0];}
void SetNmin(UInt_t val)
 Getters and Setters for user cut options
{ fNmin=val; }
UInt_t GetNmin()
{ return fNmin; }
void SetMaxDepth(UInt_t maxdepth)
{ fMaxDepth = maxdepth; }
UInt_t GetMaxDepth() const
{ return fMaxDepth; }
void SetXmin(Int_t idim, Double_t wmin)
 Getters and Setters for foam boundaries
void SetXmax(Int_t idim, Double_t wmax)
Double_t GetXmin(Int_t idim) const
{return fXmin[idim];}
Double_t GetXmax(Int_t idim) const
{return fXmax[idim];}
void AddVariableName(const char* s)
 Getters and Setters for variable names
void AddVariableName(TObjString* s)
TObjString* GetVariableName(Int_t idx)
{return dynamic_cast<TObjString*>(fVariableNames->At(idx));}
void DeleteBinarySearchTree()
 Delete the fDistr object, which contains the binary search
 tree
void CheckAll(Int_t )
 ---------- Debug functions
void PrintCell(Long_t iCell = 0)
void PrintCells()
TH2D* Project2(Int_t idim1, Int_t idim2, TMVA::ECellValue cell_value = kValue, TMVA::PDEFoamKernelBase* kernel = __null, UInt_t nbin = 50)
 ---------- Foam projection methods
 project foam to two-dimensional histogram
void RootPlot2dim(const TString& filename, TString opt, Bool_t createCanvas = kTRUE, Bool_t colors = kTRUE)
 Project one-dimensional foam to a 1-dim histogram
 Generates C++ code (root macro) for drawing foam with boxes (only 2-dim!)
std::vector<Float_t> GetCellValue( const std::map<Int_t,Float_t>& xvec, ECellValue cv )
 ---------- Foam evaluation functions
 get cell value for a given event
 get cell values for a given (incomplete) event vector
Float_t GetCellValue( const PDEFoamCell* cell, ECellValue cv )
 get cell value stored in a foam cell