40 std::map<std::string,int> Use;
79 std::cout << std::endl;
80 std::cout <<
"==> Start TMVARegressionApplication" << std::endl;
84 for (std::map<std::string,int>::iterator it = Use.begin(); it != Use.end(); it++) it->second = 0;
91 std::cout <<
"Method \"" <<
regMethod <<
"\" not known in TMVA under this name. Choose among the following:" << std::endl;
92 for (std::map<std::string,int>::iterator it = Use.begin(); it != Use.end(); it++) std::cout << it->first <<
" ";
93 std::cout << std::endl;
120 TString prefix =
"TMVARegression";
123 for (std::map<std::string,int>::iterator it = Use.begin(); it != Use.end(); it++) {
125 TString methodName = it->first +
" method";
134 for (std::map<std::string,int>::iterator it = Use.begin(); it != Use.end(); it++) {
135 TH1*
h =
new TH1F( it->first.c_str(),
TString(it->first) +
" method", 100, -100, 600 );
151 input =
TFile::Open(
"http://root.cern/files/tmva_reg_example.root",
"CACHEREAD");
154 std::cout <<
"ERROR: could not open data file" << std::endl;
157 std::cout <<
"--- TMVARegressionApp : Using input file: " <<
input->GetName() << std::endl;
167 std::cout <<
"--- Select signal sample" << std::endl;
171 std::cout <<
"--- Processing: " <<
theTree->GetEntries() <<
" events" << std::endl;
176 if (
ievt%1000 == 0) {
177 std::cout <<
"--- ... Processing event: " <<
ievt << std::endl;
192 std::cout <<
"--- End of event loop: ";
sw.Print();
200 std::cout <<
"--- Created root file: \"" <<
target->GetName()
201 <<
"\" containing the MVA output histograms" << std::endl;
205 std::cout <<
"==> TMVARegressionApplication is done!" << std::endl << std::endl;
212 for (
int i=1; i<
argc; i++) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
R__EXTERN TSystem * gSystem
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
1-D histogram with a float per channel (see TH1 documentation)
TH1 is the base class of all histogram classes in ROOT.
The Reader class serves to use the MVAs in a specific analysis context.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
A TTree represents a columnar dataset.
create variable transformations