Logo coherent WaveBurst  
Library Reference Guide
Logo
Macros | Functions | Variables
TunePPCutsTool.C File Reference
#include <boost/any.hpp>
Include dependency graph for TunePPCutsTool.C:

Macros

#define CHECK_DNEVT_VS_IFAR
 
#define nBKG_MAX   10
 
#define nCUT_MAX   20
 
#define nIFAR   14
 
#define SIGMA_FACTOR   1.
 
#define YEAR   (24*3600*365.)
 

Functions

bool CheckIncrementalDetectionsVsIFAR (TTree *tree_BKG, TTree *tree_SIM, TString user_cut, double *cut_thr)
 
void DumpIncrementalDetectionsVsIFAR (TTree *tree_BKG, TTree *tree_SIM, TString user_cut, double *cut_thr, TString ofname, bool app)
 
void DumpPPCuts (TString ofname, int ncut, double *cut_thr, bool app)
 
int GetSelectedEvents (TTree *tree_BKG, TTree *tree_SIM, TString user_cut, int ncut, double *cut_thr, double &rho_thr)
 
void PrintCovariance (TTree *tree, bool norm=true)
 
void PrintLoudest (TTree *tree_BKG, TString user_cut, int ncut, double *cut_thr, double rho_thr, TString label="", int nLoudest=nBKG_MAX)
 
void PrintPPCuts (int nevt_new, int nevt_old, int ncut, double *cut_thr, double rho_thri, TString user_cut, bool bppcuts, bool beff, bool bbcut)
 
int ReadCutList (std::stringstream *in, TString *name, TString *cmp, double *mean, double *sigma, double *min, double *max)
 
void TunePPCutsTool (double IFAR=10.0, int nCTRY=1000, int nIFTRY=200, int seed=0, TString ofname="")
 

Variables

TString gCUT_CMP [nCUT_MAX]
 
double gCUT_MAX [nCUT_MAX]
 
double gCUT_MEA [nCUT_MAX]
 
double gCUT_MIN [nCUT_MAX]
 
TString gCUT_NAME [nCUT_MAX]
 
double gCUT_SIG [nCUT_MAX]
 
int gNBKG
 
int gNCTRY
 
int gNCUT
 
int gNIFTRY
 
int gNMDC
 
TString gOFNAME
 
TCut gZL_CUT
 

Macro Definition Documentation

◆ CHECK_DNEVT_VS_IFAR

#define CHECK_DNEVT_VS_IFAR

Definition at line 83 of file TunePPCutsTool.C.

◆ nBKG_MAX

#define nBKG_MAX   10

Definition at line 77 of file TunePPCutsTool.C.

◆ nCUT_MAX

#define nCUT_MAX   20

Definition at line 75 of file TunePPCutsTool.C.

◆ nIFAR

#define nIFAR   14

Definition at line 79 of file TunePPCutsTool.C.

◆ SIGMA_FACTOR

#define SIGMA_FACTOR   1.

Definition at line 81 of file TunePPCutsTool.C.

◆ YEAR

#define YEAR   (24*3600*365.)

Definition at line 73 of file TunePPCutsTool.C.

Function Documentation

◆ CheckIncrementalDetectionsVsIFAR()

bool CheckIncrementalDetectionsVsIFAR ( TTree *  tree_BKG,
TTree *  tree_SIM,
TString  user_cut,
double *  cut_thr 
)

Definition at line 625 of file TunePPCutsTool.C.

◆ DumpIncrementalDetectionsVsIFAR()

void DumpIncrementalDetectionsVsIFAR ( TTree *  tree_BKG,
TTree *  tree_SIM,
TString  user_cut,
double *  cut_thr,
TString  ofname,
bool  app 
)

Definition at line 571 of file TunePPCutsTool.C.

◆ DumpPPCuts()

void DumpPPCuts ( TString  ofname,
int  ncut,
double *  cut_thr,
bool  app 
)

Definition at line 540 of file TunePPCutsTool.C.

◆ GetSelectedEvents()

int GetSelectedEvents ( TTree *  tree_BKG,
TTree *  tree_SIM,
TString  user_cut,
int  ncut,
double *  cut_thr,
double &  rho_thr 
)

Definition at line 437 of file TunePPCutsTool.C.

◆ PrintCovariance()

void PrintCovariance ( TTree *  tree,
bool  norm = true 
)

Definition at line 710 of file TunePPCutsTool.C.

◆ PrintLoudest()

void PrintLoudest ( TTree *  tree_BKG,
TString  user_cut,
int  ncut,
double *  cut_thr,
double  rho_thr,
TString  label = "",
int  nLoudest = nBKG_MAX 
)

Definition at line 472 of file TunePPCutsTool.C.

◆ PrintPPCuts()

void PrintPPCuts ( int  nevt_new,
int  nevt_old,
int  ncut,
double *  cut_thr,
double  rho_thri,
TString  user_cut,
bool  bppcuts,
bool  beff,
bool  bbcut 
)

Definition at line 502 of file TunePPCutsTool.C.

◆ ReadCutList()

int ReadCutList ( std::stringstream *  in,
TString name,
TString cmp,
double *  mean,
double *  sigma,
double *  min,
double *  max 
)

Definition at line 662 of file TunePPCutsTool.C.

◆ TunePPCutsTool()

void TunePPCutsTool ( double  IFAR = 10.0,
int  nCTRY = 1000,
int  nIFTRY = 200,
int  seed = 0,
TString  ofname = "" 
)

Definition at line 120 of file TunePPCutsTool.C.

Variable Documentation

◆ gCUT_CMP

TString gCUT_CMP[nCUT_MAX]

Definition at line 97 of file TunePPCutsTool.C.

◆ gCUT_MAX

double gCUT_MAX[nCUT_MAX]

Definition at line 101 of file TunePPCutsTool.C.

◆ gCUT_MEA

double gCUT_MEA[nCUT_MAX]

Definition at line 98 of file TunePPCutsTool.C.

◆ gCUT_MIN

double gCUT_MIN[nCUT_MAX]

Definition at line 100 of file TunePPCutsTool.C.

◆ gCUT_NAME

TString gCUT_NAME[nCUT_MAX]

Definition at line 96 of file TunePPCutsTool.C.

◆ gCUT_SIG

double gCUT_SIG[nCUT_MAX]

Definition at line 99 of file TunePPCutsTool.C.

◆ gNBKG

int gNBKG

Definition at line 90 of file TunePPCutsTool.C.

◆ gNCTRY

int gNCTRY

Definition at line 91 of file TunePPCutsTool.C.

◆ gNCUT

int gNCUT

Definition at line 93 of file TunePPCutsTool.C.

◆ gNIFTRY

int gNIFTRY

Definition at line 92 of file TunePPCutsTool.C.

◆ gNMDC

int gNMDC

Definition at line 94 of file TunePPCutsTool.C.

◆ gOFNAME

TString gOFNAME

Definition at line 105 of file TunePPCutsTool.C.

◆ gZL_CUT

TCut gZL_CUT

Definition at line 103 of file TunePPCutsTool.C.