A++ » TMVA » TMVA::DataSet

class TMVA::DataSet: public TNamed


DataSet

Class that contains all the data information


Function Members (Methods)

public:
virtual~DataSet()
voidTObject::AbstractMethod(const char* method) const
voidAddEvent(TMVA::Event*, TMVA::Types::ETreeType)
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 = "")
voidClearNClassEvents(Int_t type)
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
voidCreateSampling() const
TMVA::DataSetDataSet()
TMVA::DataSetDataSet(const TMVA::DataSetInfo&)
TMVA::DataSetDataSet(const TMVA::DataSet&)
virtual voidTObject::Delete(Option_t* option = "")MENU
voidDeleteResults(const TString&, TMVA::Types::ETreeType type, TMVA::Types::EAnalysisType analysistype)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
voidDivideTrainingSet(UInt_t blockNum)
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
voidEventResult(Bool_t successful, Long64_t evtNumber = -1)
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 TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TMVA::Types::ETreeTypeGetCurrentType() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
const TMVA::Event*GetEvent() const
const TMVA::Event*GetEvent(Long64_t ievt) const
const TMVA::Event*GetEvent(Long64_t ievt, TMVA::Types::ETreeType type) const
const vector<TMVA::Event*>&GetEventCollection(TMVA::Types::ETreeType type = Types::kMaxTreeType) const
const TTree*GetEventCollectionAsTree()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
Long64_tGetNClassEvents(Int_t type, UInt_t classNumber)
Long64_tGetNEvents(TMVA::Types::ETreeType type = Types::kMaxTreeType) const
Long64_tGetNEvtBkgdTest()
Long64_tGetNEvtBkgdTrain()
Long64_tGetNEvtSigTest()
Long64_tGetNEvtSigTrain()
UInt_tGetNSpectators() const
UInt_tGetNTargets() const
Long64_tGetNTestEvents() const
Long64_tGetNTrainingEvents() const
UInt_tGetNVariables() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TMVA::Results*GetResults(const TString&, TMVA::Types::ETreeType type, TMVA::Types::EAnalysisType analysistype)
const TMVA::Event*GetTestEvent(Long64_t ievt) const
virtual const char*TNamed::GetTitle() const
const TMVA::Event*GetTrainingEvent(Long64_t ievt) const
TTree*GetTree(TMVA::Types::ETreeType type)
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
Bool_tHasNegativeEventWeights() const
voidIncrementNClassEvents(Int_t type, UInt_t classNumber)
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
voidInitSampling(Float_t fraction, Float_t weight, UInt_t seed = 0)
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
voidMoveTrainingBlock(Int_t blockInd, TMVA::Types::ETreeType dest, Bool_t applyChanges = kTRUE)
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::DataSet&operator=(const TMVA::DataSet&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
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)
voidSetCurrentEvent(Long64_t ievt) const
voidSetCurrentType(TMVA::Types::ETreeType type) const
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEventCollection(vector<TMVA::Event*>*, TMVA::Types::ETreeType, Bool_t deleteEvents = true)
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)
voidSetVerbose(Bool_t)
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
UInt_tTreeIndex(TMVA::Types::ETreeType type) 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
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
voidApplyTrainingBlockDivision()
voidApplyTrainingSetDivision()
voidDestroyCollection(TMVA::Types::ETreeType type, Bool_t deleteEvents)
TMVA::MsgLogger&Log() const

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:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
vector<Char_t>fBlockBelongToTrainingwhen dividing the dataset to blocks, sets whether
vector<vector<Long64_t> >fClassEventsnumber of events of class 0,1,2,... in training[0]
Long64_tfCurrentEventIdx
UInt_tfCurrentTreeIdx
vector<vector<TMVA::Event*> >fEventCollectionlist of events for training/testing/...
Bool_tfHasNegativeEventWeightstrue if at least one signal or bkg event has negative weight
TMVA::MsgLogger*fLogger! message logger
vector<map<TString,TMVA::Results*> >fResults! [train/test/...][method-identifier]
vector<Char_t>fSamplingrandom or importance sampling (not all events are taken) !! Bool_t are stored ( no std::vector<bool> taken for speed (performance) issues )
vector<vector<pair<Float_t,Long64_t> > >fSamplingEventListweights and indices for sampling
vector<Int_t>fSamplingNEventsnumber of events which should be sampled
TRandom3*fSamplingRandom-> random generator for sampling
vector<vector<pair<Float_t,Long64_t> > >fSamplingSelectedselected events
vector<Float_t>fSamplingWeightweight change factor [weight is indicating if sampling is random (1.0) or importance (<1.0)]
Long64_tfTrainingBlockSizeblock size into which the training dataset is divided
const TMVA::DataSetInfo*fdsi-> datasetinfo that created this dataset

Class Charts

Inheritance Chart:
TObject
TNamed
TMVA::DataSet

Function documentation

UInt_t TreeIndex(TMVA::Types::ETreeType type) const
TMVA::Types::ETreeType GetCurrentType() const
Long64_t GetNEvents(TMVA::Types::ETreeType type = Types::kMaxTreeType) const
const std::vector<TMVA::Event*>& GetEventCollection(TMVA::Types::ETreeType type = Types::kMaxTreeType) const
DataSet()
DataSet(const DataSetInfo&)
virtual ~DataSet()
void AddEvent(TMVA::Event* , TMVA::Types::ETreeType )
Long64_t GetNTrainingEvents() const
{ return GetNEvents(Types::kTraining); }
Long64_t GetNTestEvents() const
{ return GetNEvents(Types::kTesting); }
const Event* GetEvent() const
 const getters
const Event* GetEvent(Long64_t ievt) const
{ fCurrentEventIdx = ievt; return GetEvent(); }
const Event* GetTrainingEvent(Long64_t ievt) const
{ return GetEvent(ievt, Types::kTraining); }
const Event* GetTestEvent(Long64_t ievt) const
{ return GetEvent(ievt, Types::kTesting); }
const Event* GetEvent(Long64_t ievt, TMVA::Types::ETreeType type) const
UInt_t GetNVariables() const
UInt_t GetNTargets() const
UInt_t GetNSpectators() const
void SetCurrentEvent(Long64_t ievt) const
{ fCurrentEventIdx = ievt; }
void SetCurrentType(TMVA::Types::ETreeType type) const
void SetEventCollection(vector<TMVA::Event*>* , TMVA::Types::ETreeType , Bool_t deleteEvents = true)
const TTree* GetEventCollectionAsTree()
Long64_t GetNEvtSigTest()
Long64_t GetNEvtBkgdTest()
Long64_t GetNEvtSigTrain()
Long64_t GetNEvtBkgdTrain()
Bool_t HasNegativeEventWeights() const
Results* GetResults(const TString& , TMVA::Types::ETreeType type, TMVA::Types::EAnalysisType analysistype)
void SetVerbose(Bool_t )
{}
void DivideTrainingSet(UInt_t blockNum)
 sets the number of blocks to which the training set is divided,
 some of which are given to the Validation sample. As default they belong all to Training set.
void MoveTrainingBlock(Int_t blockInd, TMVA::Types::ETreeType dest, Bool_t applyChanges = kTRUE)
 sets a certrain block from the origin training set to belong to either Training or Validation set
void IncrementNClassEvents(Int_t type, UInt_t classNumber)
Long64_t GetNClassEvents(Int_t type, UInt_t classNumber)
void ClearNClassEvents(Int_t type)
TTree* GetTree(TMVA::Types::ETreeType type)
void InitSampling(Float_t fraction, Float_t weight, UInt_t seed = 0)
 accessors for random and importance sampling
void EventResult(Bool_t successful, Long64_t evtNumber = -1)
void CreateSampling() const
void DestroyCollection(TMVA::Types::ETreeType type, Bool_t deleteEvents)
 data members
void ApplyTrainingBlockDivision()
void ApplyTrainingSetDivision()