FairRoot/PandaRoot
|
#include "TMVA/Reader.h"
#include "TFile.h"
#include "TTree.h"
#include "TString.h"
#include "TRegexp.h"
#include "TEventList.h"
#include "TLeaf.h"
#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
#include <utility>
Go to the source code of this file.
Macros | |
#define | MAX 1000 |
Typedefs | |
typedef std::map< int, int > | CountMap |
typedef std::vector< pair < float, int > > | ValueMap |
Functions | |
int | gettype (TTree *t, TString varname) |
int | SplitString (TString s, TString delim, TString *toks, int maxtoks) |
int | init (TTree *t, TString vars) |
int | uid (int lev, int lrun, int lmode) |
int | countEvents (TTree *t, TEventList &el) |
TString | getFromCut (TString vars) |
int | TMVAApply (TString fname, TString vars, TString precut="", TString wfile="", Float_t bglevel=0.0001) |
Variables | |
Float_t | fbranch [MAX] |
Float_t | freader [MAX] |
Int_t | ibranch [MAX] |
Int_t | types [MAX] |
Bool_t | bbranch [MAX] |
Int_t | ev |
Int_t | run |
Int_t | mode |
Int_t | rec |
Int_t | nbranch |
#define MAX 1000 |
Definition at line 15 of file TMVAApply.C.
Definition at line 23 of file TMVAApply.C.
typedef std::vector<pair<float, int> > ValueMap |
Definition at line 24 of file TMVAApply.C.
int countEvents | ( | TTree * | t, |
TEventList & | el | ||
) |
Definition at line 94 of file TMVAApply.C.
References ev, evcnt, i, mode, run, and uid().
Referenced by TMVAApply().
Definition at line 116 of file TMVAApply.C.
References i, n, res, SplitString(), TString, and v.
Referenced by TMVAApply().
int gettype | ( | TTree * | t, |
TString | varname | ||
) |
int init | ( | TTree * | t, |
TString | vars | ||
) |
Definition at line 59 of file TMVAApply.C.
References bbranch, ev, fbranch, gettype(), i, ibranch, mode, rec, run, SplitString(), TString, types, and v.
Referenced by TMVAApply().
Definition at line 43 of file TMVAApply.C.
References i.
Referenced by getFromCut(), init(), and TMVAApply().
int TMVAApply | ( | TString | fname, |
TString | vars, | ||
TString | precut = "" , |
||
TString | wfile = "" , |
||
Float_t | bglevel = 0.0001 |
||
) |
Definition at line 140 of file TMVAApply.C.
References b, bbranch, countEvents(), cut, ev, f, fbranch, freader, getFromCut(), i, ibranch, init(), mode, nsig, printf(), run, s, SplitString(), t, TString, types, and uid().
int uid | ( | int | lev, |
int | lrun, | ||
int | lmode | ||
) |
Definition at line 87 of file TMVAApply.C.
Referenced by countEvents(), and TMVAApply().
Definition at line 19 of file TMVAApply.C.
Referenced by init(), and TMVAApply().
Int_t ev |
Definition at line 21 of file TMVAApply.C.
Referenced by countEvents(), init(), and TMVAApply().
Float_t fbranch[MAX] |
Definition at line 17 of file TMVAApply.C.
Referenced by init(), and TMVAApply().
Float_t freader[MAX] |
Definition at line 17 of file TMVAApply.C.
Referenced by TMVAApply().
Int_t ibranch[MAX] |
Definition at line 18 of file TMVAApply.C.
Referenced by init(), and TMVAApply().
Int_t mode |
Definition at line 21 of file TMVAApply.C.
Referenced by countEvents(), init(), and TMVAApply().
Int_t nbranch |
Definition at line 21 of file TMVAApply.C.
Int_t rec |
Definition at line 21 of file TMVAApply.C.
Referenced by init().
Int_t run |
Definition at line 21 of file TMVAApply.C.
Referenced by countEvents(), init(), and TMVAApply().
Int_t types[MAX] |
Definition at line 18 of file TMVAApply.C.
Referenced by init(), and TMVAApply().