FairRoot/PandaRoot
|
#include <algorithm>
#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 <iostream>
#include "TLine.h"
#include "TLatex.h"
#include "TStyle.h"
#include "TObjArray.h"
#include "TPRegexp.h"
#include <map>
#include <utility>
Go to the source code of this file.
Macros | |
#define | MAX 1000 |
#define | BINS 500 |
#define | NCAN 3 |
Functions | |
bool | mycompare (int i, int j) |
int | countEvents (TTree *t, TString ccut) |
int | countEvents (TTree *t, TEventList &el) |
double | bestSepEvt (TTree *t, TString varname, TEventList &els, TEventList &elb, double &bestcut, double eff, int idx) |
double | bestSuppressionEvt (TTree *t, TString varname, TEventList &els, TEventList &elb, double &bestcut, double eff, int idx) |
double | bestEffEvt (TTree *t, TString varname, TEventList &els, TEventList &elb, double &bestcut, double supr, int idx) |
void | findLimits (TTree *t, TString var, TString ccut, double &low, double &high, double frac=0.98) |
int | cutfinder_toyev (TString pre, TString ntp, TString sigcut, TString precut="", double n0s=50., double n0b=500., double supr=0.9) |
Variables | |
std::map< int, int > | evcnt |
double | signi [MAX] |
int | idx [MAX] |
TString | vars [MAX] |
double | cut [MAX] |
double | minh [MAX] |
double | maxh [MAX] |
double | N0_sig |
double | N0_bg |
double | Nsigev |
double | Nbgev |
#define BINS 500 |
Definition at line 21 of file cutfinder_toyev.C.
#define MAX 1000 |
Definition at line 20 of file cutfinder_toyev.C.
Referenced by cutfinder_toyev().
#define NCAN 3 |
Definition at line 22 of file cutfinder_toyev.C.
double bestEffEvt | ( | TTree * | t, |
TString | varname, | ||
TEventList & | els, | ||
TEventList & | elb, | ||
double & | bestcut, | ||
double | supr, | ||
int | idx | ||
) |
Definition at line 271 of file cutfinder_toyev.C.
References ev, i, idx, max(), maxh, min(), minh, Nbgev, and Nsigev.
Referenced by cutfinder_toyev().
double bestSepEvt | ( | TTree * | t, |
TString | varname, | ||
TEventList & | els, | ||
TEventList & | elb, | ||
double & | bestcut, | ||
double | eff, | ||
int | idx | ||
) |
double bestSuppressionEvt | ( | TTree * | t, |
TString | varname, | ||
TEventList & | els, | ||
TEventList & | elb, | ||
double & | bestcut, | ||
double | eff, | ||
int | idx | ||
) |
Definition at line 189 of file cutfinder_toyev.C.
References ev, i, idx, max(), maxh, min(), minh, Nbgev, and Nsigev.
Referenced by cutfinder_toyev().
int countEvents | ( | TTree * | t, |
TString | ccut | ||
) |
int countEvents | ( | TTree * | t, |
TEventList & | el | ||
) |
Definition at line 65 of file cutfinder_toyev.C.
int cutfinder_toyev | ( | TString | pre, |
TString | ntp, | ||
TString | sigcut, | ||
TString | precut = "" , |
||
double | n0s = 50. , |
||
double | n0b = 500. , |
||
double | supr = 0.9 |
||
) |
Definition at line 386 of file cutfinder_toyev.C.
References bestEffEvt(), bestSuppressionEvt(), c1, cnt, countEvents(), cut, elb, els, f, h1, h2, i, idx, MAX, maxh, minh, mycompare(), N0_bg, N0_sig, Nbgev, nsig, Nsigev, signi, t, TString, and vars.
void findLimits | ( | TTree * | t, |
TString | var, | ||
TString | ccut, | ||
double & | low, | ||
double & | high, | ||
double | frac = 0.98 |
||
) |
Definition at line 352 of file cutfinder_toyev.C.
bool mycompare | ( | int | i, |
int | j | ||
) |
double cut[MAX] |
Definition at line 29 of file cutfinder_toyev.C.
Referenced by cutfinder_toyev().
std::map<int, int> evcnt |
Definition at line 24 of file cutfinder_toyev.C.
Referenced by countEvents().
int idx[MAX] |
Definition at line 27 of file cutfinder_toyev.C.
Referenced by bestEffEvt(), bestSepEvt(), bestSuppressionEvt(), and cutfinder_toyev().
double maxh[MAX] |
Definition at line 31 of file cutfinder_toyev.C.
Referenced by bestEffEvt(), bestSepEvt(), bestSuppressionEvt(), and cutfinder_toyev().
double minh[MAX] |
Definition at line 31 of file cutfinder_toyev.C.
Referenced by bestEffEvt(), bestSepEvt(), bestSuppressionEvt(), and cutfinder_toyev().
double N0_bg |
Definition at line 33 of file cutfinder_toyev.C.
Referenced by cutfinder_toyev().
double N0_sig |
Definition at line 33 of file cutfinder_toyev.C.
Referenced by cutfinder_toyev().
double Nbgev |
Definition at line 34 of file cutfinder_toyev.C.
Referenced by bestEffEvt(), bestSepEvt(), bestSuppressionEvt(), and cutfinder_toyev().
double Nsigev |
Definition at line 34 of file cutfinder_toyev.C.
Referenced by bestEffEvt(), bestSepEvt(), bestSuppressionEvt(), and cutfinder_toyev().
double signi[MAX] |
Definition at line 26 of file cutfinder_toyev.C.
Referenced by cutfinder_toyev(), and mycompare().
Definition at line 28 of file cutfinder_toyev.C.
Referenced by cutfinder_toyev().