library: libTMVA #include "Factory.h" |
virtual | ~Factory() |
void | TObject::AbstractMethod(const char* method) const |
void | AddVariable(const TString& expression, char type = F) |
virtual void | TObject::AppendPad(Option_t* option = "") |
Bool_t | BookMethod(TString theMethodName, TString methodTitle, TString theOption = ) |
Bool_t | BookMethod(TMVA::Types::EMVA theMethod, TString methodTitle, TString theOption = ) |
Bool_t | BookMethod(TMVA::Types::EMVA theMethod, TString methodTitle, TString methodOption, TMVA::Types::EMVA theCommittee, TString committeeOption = ) |
void | BookMultipleMVAs(TString theVariable, Int_t nbins, Double_t* array) |
virtual void | TObject::Browse(TBrowser* b) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TObject::Clear(Option_t* = "") |
virtual TObject* | TObject::Clone(const char* newname = "") const |
virtual Int_t | TObject::Compare(const TObject* obj) const |
virtual void | TObject::Copy(TObject& object) const |
virtual void | TObject::Delete(Option_t* option = "") |
void | DeleteAllMethods() |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() const |
virtual TObject* | TObject::DrawClone(Option_t* option = "") const |
virtual void | TObject::Dump() const |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
void | EvaluateAllMethods() |
void | EvaluateAllVariables(TString options = ) |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
TMVA::Factory | Factory(TFile* theTargetFile) |
TMVA::Factory | Factory(TString theJobName, TFile* theTargetFile, TString theOption = ) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual TObject* | TObject::FindObject(const char* name) const |
virtual TObject* | TObject::FindObject(const TObject* obj) const |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual const char* | TObject::GetIconName() const |
TMVA::IMethod* | GetMVA(TString method) |
virtual const char* | GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
virtual const char* | TObject::GetTitle() const |
virtual UInt_t | TObject::GetUniqueID() const |
void | Greeting(TString = ) |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TObject::Hash() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual void | TObject::Inspect() const |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | TObject::IsSortable() const |
Bool_t | TObject::IsZombie() const |
virtual void | TObject::ls(Option_t* option = "") const |
void | TObject::MayNotUse(const char* method) const |
virtual Bool_t | TObject::Notify() |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::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) |
TObject& | TObject::operator=(const TObject& rhs) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
void | PrepareTrainingAndTestTree(TCut cut = , Int_t Ntrain = 0, Int_t Ntest = 0, TString TreeName = ) |
virtual void | TObject::Print(Option_t* option = "") const |
void | ProcessMultipleMVA() |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TObject::RecursiveRemove(TObject* obj) |
void | TObject::ResetBit(UInt_t f) |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") const |
virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
void | SetBackgroundTree(TTree* background, Double_t weight = 1.0) |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TObject::SetDrawOption(Option_t* option = "") |
static void | TObject::SetDtorOnly(void* obj) |
Bool_t | SetInputTrees(TTree* inputTree, TCut SigCut, TCut BgCut = ) |
Bool_t | SetInputTrees(TString signalFileName, TString backgroundFileName, Double_t signalWeight = 1.0, Double_t backgroundWeight = 1.0) |
Bool_t | SetInputTrees(TTree* signal, TTree* background, Double_t signalWeight = 1.0, Double_t backgroundWeight = 1.0) |
void | SetInputVariables(vector<TString>* theVariables) |
static void | TObject::SetObjectStat(Bool_t stat) |
void | SetSignalTree(TTree* signal, Double_t weight = 1.0) |
virtual void | TObject::SetUniqueID(UInt_t uid) |
void | SetVerbose(Bool_t v = kTRUE) |
void | SetWeightExpression(const TString& variable) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
void | TestAllMethods() |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
void | TrainAllMethods() |
virtual void | TObject::UseCurrentStyle() |
Bool_t | Verbose() const |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const |
TMVA::DataSet& | Data() const |
TMVA::DataSet& | Data() |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
void | TObject::MakeZombie() |
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
TMVA::DataSet* | fDataSet | the dataset |
TFile* | fTargetFile | ROOT output file |
TString | fOptions | option string given by construction (presently only "V") |
Bool_t | fVerbose | verbose mode |
vector<TTreeFormula*> | fInputVarFormulas | local forulas of the same |
vector<IMethod*> | fMethods | all MVA methods |
TString | fJobName | jobname, used as extension in weight file names |
Bool_t | fMultipleMVAs | multi-cut mode ? |
Bool_t | fMultipleStoredOptions | multi-cut driving flag |
Bool_t | fMultiTrain | multi-cut driving flag |
Bool_t | fMultiTest | multi-cut driving flag |
Bool_t | fMultiEvalVar | multi-cut driving flag |
Bool_t | fMultiEval | multi-cut driving flag |
Int_t | fMultiNtrain | number of training events |
Int_t | fMultiNtest | number of testing events |
map<TString,std::pair<TString,TCut> > | fMultipleMVAnames | map of MVA names |
map<TString,std::pair<TString,TString> > | fMultipleMVAMethodOptions | map of option strings |
TDirectory* | fLocalTDir |
This is the main MVA steering class: it creates all MVA methods, and guides them through the training, testing and evaluation phases. It also manages multiple MVA handling in case of distinct phase space requirements (cuts). _______________________________________________________________________
standard constructor jobname : this name will appear in all weight file names produced by the MVAs theTargetFile : output ROOT file; the test tree and all evaluation plots will be stored here theOption : option string; currently: "V" for verbose, "NoPreprocessing" to switch of preproc.
default destructor *** segmentation fault occurs when deleting this object :-( *** fTrainingTree->Delete(); *** cannot delete: need to clarify ownership :-( *** fSignalTree->Delete(); fBackgTree->Delete();
define the input trees for signal and background; no cuts are applied
define the input trees for signal and background from single input tree, containing both signal and background events distinguished by the type identifiers: SigCut and BgCut
create trees from these ascii files
books multiple MVAs according to the variable, number of bins and the cut array given
possible user settings for Ntrain and Ntest:
------------------------------------------------------
| | | | |
------------------------------------------------------
# input signal events
# input signal events after cuts
------------------------------------------------------
| | | | |
------------------------------------------------------
\/ \/ # input bg events
# input bg events after cuts
Ntrain/2 Ntest/2
definitions:
nsigTot = all signal events
nbkgTot = all bkg events
nTot = nsigTot + nbkgTot
i.g.: nsigTot != nbkgTot
N:M = use M events after event N (distinct event sample)
(read as: "from event N to event M")
assumptions:
a) equal number of signal and background events is used for training
b) any numbers of signal and background events are used for testing
c) an explicit syntax can violate a)
cases (in order of importance)
1)
user gives : N1
PrepareTree does : nsig_train=nbkg_train=min(N1,nsigTot,nbkgTot)
nsig_test =nsig_train:nsigTot, nbkg_test =nsig_train:nbkgTot
-> give warning if nsig_test<=0 || nbkg_test<=0
2)
user gives : N1, N2
PrepareTree does : nsig_train=nbkg_train=min(N1,nsigTot,nbkgTot)
nsig_test =nsig_train:min(N2,nsigTot-nsig_train),
nbkg_test =nsig_train:min(N2,nbkgTot-nbkg_train)
-> give warning if nsig(bkg)_train != N1, or
if nsig_test<N2 || nbkg_test<N2
3)
user gives : -1
PrepareTree does : nsig_train=nbkg_train=min(nsigTot,nbkgTot)
nsig_test =nsigTot, nbkg_test=nbkgTot
-> give warning that same samples are used for testing and training
4)
user gives : -1, -1
PrepareTree does : nsig_train=nsigTot, nbkg_train=nbkgTot
nsig_test =nsigTot, nbkg_test =nbkgTot
-> give warning that same samples are used for testing and training,
and, if nsig_train != nbkg_train, that an unequal number of
signal and background events are used in training
------------------------------------------------------------------------
Give in any case the number of signal and background events that are
used for testing and training, and tell whether there are overlaps between
the samples.
------------------------------------------------------------------------
number of signal events (used to compute significance)
number of background events (used to compute significance)
booking via name; the names are translated into enums and the corresponding overloaded BookMethod is called
books MVA method; the option configuration string is custom for each MVA the TString field "theNameAppendix" serves to define (and distringuish) several instances of a given MVA, eg, when one wants to compare the performance of various configurations
books MVA method; the option configuration string is custom for each MVA the TString field "theNameAppendix" serves to define (and distringuish) several instances of a given MVA, eg, when one wants to compare the performance of various configurations
iterates over all MVAs that have been booked, and calls their training methods
iterates over all MVAs that have been booked, and calls their testing methods
iterates over all MVA input varables and evaluates them
iterates over all MVAs that have been booked, and calls their evaluation methods
multiple MVAs in different phase space regions are trained and tested
modified name (remove TMVA::)
{ return TString(TObject::GetName()).ReplaceAll( "TMVA::", "" ).Data(); }
{ Data().AddVariable(expression, type); }