FairRoot/PandaRoot
|
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
#include "TFile.h"
#include "TTree.h"
#include "TString.h"
#include "TH1F.h"
#include "TCanvas.h"
#include "TROOT.h"
#include "TEventList.h"
#include "TDirectory.h"
#include "TLine.h"
#include "TArrow.h"
#include "TStyle.h"
#include "TObjArray.h"
#include "TRegexp.h"
Go to the source code of this file.
Typedefs | |
typedef std::vector< TString > | StrVec |
typedef std::map< double, TString > | DblStrMap |
typedef std::map< double, TString >::iterator | DblStrMapIt |
typedef std::map< TString, double > | StrDblMap |
typedef std::map< TString, int > | StrIntMap |
typedef std::map< TString, int > ::iterator | StrIntMapIt |
Functions | |
void | FCPrintInfo () |
int | FCSplitString (TString s, TString delim, StrVec &toks) |
void | FCPrepareTree (TString bnames, TString ctlvar) |
bool | FCFindLimits (TString var, double &min, double &max) |
double | FCSfc (double S, double B) |
double | FCQaVar (TString var, double qaopt=0) |
void | FCInit (int numvars) |
void | FCDrawVariable (TString var, int numpad, int norm=1, TString cut="") |
int | findcuts (TTree *theTree=0, TString ctlvar="", TString sigcut="", TString bnames="", TString precut="", int numvars=9, double qaopt=0., double ws=1., double wb=1., int norm=1, int bins=500) |
Variables | |
TCanvas * | c1 |
TEventList * | els |
TEventList * | elb |
TEventList * | elpre |
TTree * | t |
int | N0s |
int | N0b |
int | Ns |
int | Nb |
double | Wsig |
double | Wbkg |
TString | comtemplate |
TString | comcurrent |
bool | normalize |
int | BINS |
StrVec | bnam |
DblStrMap | qamap |
StrDblMap | sigeff |
StrDblMap | bkgeff |
Definition at line 43 of file findcuts.C.
typedef std::map<double, TString>::iterator DblStrMapIt |
Definition at line 44 of file findcuts.C.
Definition at line 46 of file findcuts.C.
Definition at line 48 of file findcuts.C.
typedef std::map<TString, int>::iterator StrIntMapIt |
Definition at line 49 of file findcuts.C.
Definition at line 41 of file findcuts.C.
Definition at line 390 of file findcuts.C.
References BINS, c1, comcurrent, comtemplate, cut, elb, els, FCFindLimits(), h1, h2, max(), normalize, r1, t, TString, Wbkg, Wsig, xmax, and xmin.
Referenced by findcuts().
bool FCFindLimits | ( | TString | var, |
double & | min, | ||
double & | max | ||
) |
Definition at line 209 of file findcuts.C.
References elpre, h, i, t, and x.
Referenced by FCDrawVariable(), and FCQaVar().
void FCInit | ( | int | numvars | ) |
Definition at line 349 of file findcuts.C.
References c1, cx, cy, elb, elpre, els, and t.
Referenced by findcuts().
Definition at line 112 of file findcuts.C.
References bnam, FCSplitString(), i, name, printf(), t, and TString.
Referenced by findcuts().
void FCPrintInfo | ( | ) |
Definition at line 68 of file findcuts.C.
Referenced by findcuts().
double FCQaVar | ( | TString | var, |
double | qaopt = 0 |
||
) |
Definition at line 247 of file findcuts.C.
References BINS, bkgeff, elb, els, fabs(), FCFindLimits(), FCSfc(), h1, h2, i, normalize, qamap, sigeff, t, TString, Wbkg, Wsig, xmax, and xmin.
Referenced by findcuts().
double FCSfc | ( | double | S, |
double | B | ||
) |
Definition at line 239 of file findcuts.C.
References sqrt().
Referenced by FCQaVar(), and findcuts().
int findcuts | ( | TTree * | theTree = 0 , |
TString | ctlvar = "" , |
||
TString | sigcut = "" , |
||
TString | bnames = "" , |
||
TString | precut = "" , |
||
int | numvars = 9 , |
||
double | qaopt = 0. , |
||
double | ws = 1. , |
||
double | wb = 1. , |
||
int | norm = 1 , |
||
int | bins = 500 |
||
) |
Definition at line 499 of file findcuts.C.
References BINS, bkgeff, bnam, c1, cnt, comcurrent, comtemplate, cut, effb, effs, elb, elpre, els, fabs(), FCDrawVariable(), FCInit(), FCPrepareTree(), FCPrintInfo(), FCQaVar(), FCSfc(), i, max(), N0b, N0s, Nb, normalize, Ns, printf(), qamap, sigeff, t, TString, Wbkg, and Wsig.
int BINS |
Definition at line 60 of file findcuts.C.
Referenced by FCDrawVariable(), FCQaVar(), and findcuts().
StrDblMap bkgeff |
Definition at line 64 of file findcuts.C.
Referenced by FCQaVar(), and findcuts().
StrVec bnam |
Definition at line 62 of file findcuts.C.
Referenced by compress(), FCPrepareTree(), and findcuts().
TCanvas* c1 |
Definition at line 51 of file findcuts.C.
Referenced by FCDrawVariable(), FCInit(), and findcuts().
TString comcurrent |
Definition at line 58 of file findcuts.C.
Referenced by FCDrawVariable(), and findcuts().
TString comtemplate |
Definition at line 58 of file findcuts.C.
Referenced by FCDrawVariable(), and findcuts().
TEventList * elb |
Definition at line 52 of file findcuts.C.
Referenced by autocutx(), bestSuppressionEvt(), cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), FCDrawVariable(), FCInit(), FCQaVar(), findcuts(), and TMVATester().
TEventList * elpre |
Definition at line 52 of file findcuts.C.
Referenced by FCFindLimits(), FCInit(), and findcuts().
TEventList* els |
Definition at line 52 of file findcuts.C.
Referenced by autocutx(), bestSuppressionEvt(), cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), FCDrawVariable(), FCInit(), FCQaVar(), findcuts(), and TMVATester().
int N0b |
Definition at line 55 of file findcuts.C.
Referenced by findcuts().
int N0s |
Definition at line 55 of file findcuts.C.
Referenced by findcuts().
int Nb |
Definition at line 56 of file findcuts.C.
Referenced by bestCombiEvt(), findcuts(), and TMVATester().
bool normalize |
Definition at line 59 of file findcuts.C.
Referenced by FCDrawVariable(), FCQaVar(), and findcuts().
int Ns |
Definition at line 56 of file findcuts.C.
Referenced by bestCombiEvt(), compress(), findcuts(), and TMVATester().
DblStrMap qamap |
Definition at line 63 of file findcuts.C.
Referenced by FCQaVar(), and findcuts().
StrDblMap sigeff |
Definition at line 64 of file findcuts.C.
Referenced by FCQaVar(), and findcuts().
TTree* t |
Definition at line 53 of file findcuts.C.
Referenced by FCDrawVariable(), FCFindLimits(), FCInit(), FCPrepareTree(), FCQaVar(), and findcuts().
double Wbkg |
Definition at line 57 of file findcuts.C.
Referenced by FCDrawVariable(), FCQaVar(), and findcuts().
double Wsig |
Definition at line 57 of file findcuts.C.
Referenced by FCDrawVariable(), FCQaVar(), and findcuts().