38 #ifndef ROOT_TMVA_Configurable 73 AddTree( tr, className, weight, cut, tt );
85 if (!tree)
Log() <<
kFATAL <<
"Zero pointer for tree of class " << className.
Data() <<
Endl;
98 <<
fInputTrees[className.
Data()][0].GetTree()->GetName() <<
" of class " << className.
Data()
115 AddTree( tr,
"Signal", weight,
"", tt );
123 AddTree( tr,
"Background", weight,
"", tt );
133 AddTree( tr,
"Signal", weight,
"", tt );
143 AddTree( tr,
"Background", weight,
"", tt );
152 std::ifstream in(dataFile);
153 tr->
SetDirectory(0);
Log() <<
kWARNING <<
"Watch out, I (Helge) made the Tree not associated to the current directory .. Hopefully that does not have unwanted consequences" <<
Endl;
154 if (!in.good())
Log() <<
kFATAL <<
"Could not open file: " << dataFile <<
Endl;
169 if (!inputTree)
Log() <<
kFATAL <<
"Zero pointer for input tree: " << inputTree <<
Endl;
171 AddTree( inputTree,
"Signal", 1.0, SigCut );
172 AddTree( inputTree,
"Background", 1.0, BgCut );
184 Log() <<
kINFO <<
" Clear treelist for class " << className <<
" failed, since class does not exist." <<
Endl;
192 std::vector< TString >* ret =
new std::vector< TString >();
194 ret->push_back( it->first );
205 std::vector<TreeInfo>::const_iterator tiIt = tiV.begin();
206 for (;tiIt != tiV.end(); tiIt++) entries += tiIt->GetEntries();
virtual const char * GetName() const
Returns name of object.
MsgLogger & Endl(MsgLogger &ml)
virtual TTree * CopyTree(const char *selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Copy a tree with selection.
A specialized string object used for TTree selections.
virtual void SetDirectory(TDirectory *dir)
Change the tree's directory.
virtual Long64_t ReadFile(const char *filename, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from filename.
virtual Long64_t GetEntries() const
TString()
TString default ctor.
A TTree object has a header with a name and a title.
virtual void SetName(const char *name)
Change the name of this tree.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const