40   std::map<std::string,int> Use;
 
   42   Use[
"LikelihoodCat"] = 1;
 
   46   std::cout << std::endl
 
   47             << 
"==> Start TMVAClassificationCategoryApplication" << std::endl;
 
   61   reader->AddSpectator( 
"eta", &eta );
 
   65   for (std::map<std::string,int>::iterator it = Use.begin(); it != Use.end(); it++) {
 
   67         TString methodName = it->first + 
" method";
 
   75   std::map<std::string,TH1*> hist;
 
   76   hist[
"LikelihoodCat"] = 
new TH1F( 
"MVA_LikelihoodCat",   
"MVA_LikelihoodCat", 
nbin, -1, 0.9999 );
 
   77   hist[
"FisherCat"]     = 
new TH1F( 
"MVA_FisherCat",       
"MVA_FisherCat",     
nbin, -4, 4 );
 
   86      fname = 
gROOT->GetTutorialDir() + 
"/machine_learning/data/";
 
   89   else                 fname += 
"toy_sigbkg_categ_varoff.root";
 
   90   std::cout << 
"--- TMVAClassificationApp    : Accessing " << 
fname << 
"!" << std::endl;
 
   93      std::cout << 
"ERROR: could not open data file: " << 
fname << std::endl;
 
  105   std::cout << 
"--- Use signal sample for evaluation" << std::endl;
 
  111   theTree->SetBranchAddress( 
"eta",  &eta ); 
 
  113   std::cout << 
"--- Processing: " << 
theTree->GetEntries() << 
" events" << std::endl;
 
  118      if (
ievt%1000 == 0) std::cout << 
"--- ... Processing event: " << 
ievt << std::endl;
 
  124      for (std::map<std::string,int>::iterator it = Use.begin(); it != Use.end(); it++) {
 
  125         if (!it->second) 
continue;
 
  126         TString methodName = it->first + 
" method";
 
  127         hist[it->first]->Fill( 
reader->EvaluateMVA( methodName ) );
 
  132   std::cout << 
"--- End of event loop: "; 
sw.Print();
 
  137   for (std::map<std::string,int>::iterator it = Use.begin(); it != Use.end(); it++)
 
  138      if (it->second) hist[it->first]->Write();
 
  141   std::cout << 
"--- Created root file: \"TMVApp.root\" containing the MVA output histograms" << std::endl;
 
  144   std::cout << 
"==> TMVAClassificationApplication is done!" << std::endl << std::endl;
 
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.
 
1-D histogram with a float per channel (see TH1 documentation)
 
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.
 
virtual TString GetDirName(const char *pathname)
Return the directory name in pathname.
 
A TTree represents a columnar dataset.