Logo coherent WaveBurst  
Config Reference Guide
Logo
Macros | Functions | Variables
Make_PP_IFAR.C File Reference
#include "ReadChunkList.C"
Include dependency graph for Make_PP_IFAR.C:

Macros

#define CHUNK_FILE_LIST   "Chunk_List.txt"
 
#define CHUNK_MAX_SIZE   100
 
#define DAY   (24.*3600.)
 
#define FAP0   (1.-0.682689)
 
#define FAP1   (1.-0.954499)
 
#define FAP2   (1.-0.997300)
 
#define IFAR_NBIN   2000
 
#define MAX_LIST_SIZE   100
 
#define MAX_RUNS   3
 
#define PA_FILE_LIST   "Public_Alerts.lst"
 
#define PP_BBH   false
 
#define PP_BELT_STYLE   "continuos"
 
#define PP_CHUNK   -1
 
#define PP_EXIT   true
 
#define PP_GW151226_IFAR   0
 
#define PP_IFAR_MAX   -1
 
#define PP_LAG   -1
 
#define PP_NIFO   2
 
#define PP_PFNAME   ""
 
#define PP_RHO_MIN   4.5
 
#define PP_RUN   "O3"
 
#define PP_SEARCH   ""
 
#define PP_SFACTOR   1
 
#define PP_SLAG   -1
 
#define PP_TRIALS   1
 
#define PP_ZL_MAX_IFAR   0
 
#define PP_ZL_STYLE   "step"
 
#define YEAR   (24.*3600.*365.)
 

Functions

void DumpBackground ()
 
void DumpForeground ()
 
void DumpLoudest (double obsTime)
 
void DumpPeriod (double *obsTime)
 
void DumpSimulation (double ifar_cmax)
 
void DumpUserOptions ()
 
int GetChunkID (double gps, TString &run)
 
TString GetCutBBH ()
 
double GetGPSBBH (TString name)
 
void GetLiveTime (int nwave, TChain **live, int *lag, int *slag, int *bin, TString *run, double *liveZero, double *liveTot)
 
TString GetNameBBH (double gps)
 
int GetPercentiles (double mu, double *q)
 
int GetPoissonNinf (double mu, double fap)
 
int GetPoissonNsup (double mu, double fap)
 
void InitBBH ()
 
void Make_PP_IFAR (TString ifName, TString options)
 
void MakePlot (TString title, double obsTime, double ifar_cmax)
 
void PrintUserOptions ()
 
int ReadFileList (TString ifName, TChain **live, TChain **wave, TChain **mdc, int *lag, int *slag, int *chunk, int *bin, TString *run)
 
int ReadPublicAlerts ()
 
void ReadUserOptions (TString options)
 
void ResetUserOptions ()
 

Variables

TArrow * arrow
 
wavearray< double > bRATE
 
TCanvas * canvas
 
int chunk_id [MAX_RUNS][CHUNK_MAX_SIZE]
 
int chunk_size [MAX_RUNS]
 
double chunk_start [MAX_RUNS][CHUNK_MAX_SIZE]
 
double chunk_stop [MAX_RUNS][CHUNK_MAX_SIZE]
 
TGraphAsymmErrors * egr0
 
TGraphAsymmErrors * egr1
 
TGraphAsymmErrors * egr2
 
TGraphAsymmErrors * egrsimbkg0
 
wavearray< double > exFAR
 
wavearray< double > exSIM_BKG_IFAR
 
wavearray< double > eyRATEinf0
 
wavearray< double > eyRATEinf1
 
wavearray< double > eyRATEinf2
 
wavearray< double > eyRATEsup0
 
wavearray< double > eyRATEsup1
 
wavearray< double > eyRATEsup2
 
wavearray< double > eySIM_BKG_inf0
 
wavearray< double > eySIM_BKG_sup0
 
uoptions gOPT
 
TGraph * gr
 
TGraph * gr0
 
TGraph * grsim
 
TGraph * grsimbkg
 
TLatex * latex
 
TLegend * leg
 
TLegend * leg0
 
TMarker * marker
 
vector< double > O1_BBH_GPS
 
vector< TString > O1_BBH_NAME
 
vector< double > O2_BBH_GPS
 
vector< TString > O2_BBH_NAME
 
vector< double > O3_BBH_GPS
 
vector< TString > O3_BBH_NAME
 
wavearray< double > SIM_BKG_NEVT
 
wavearray< double > SIM_IFAR
 
wavearray< double > SIM_NEVT
 
wavearray< double > xFAR
 
wavearray< double > xIFAR
 
wavearray< double > xSIM_BKG_IFAR
 
wavearray< double > yBKG
 
wavearray< double > ySIM_BKG
 
wavearray< double > ZL_GPS
 
wavearray< double > ZL_IFAR
 
wavearray< double > ZL_NEVT
 

Macro Definition Documentation

◆ CHUNK_FILE_LIST

#define CHUNK_FILE_LIST   "Chunk_List.txt"

Definition at line 111 of file Make_PP_IFAR.C.

◆ CHUNK_MAX_SIZE

#define CHUNK_MAX_SIZE   100

Definition at line 112 of file Make_PP_IFAR.C.

◆ DAY

#define DAY   (24.*3600.)

Definition at line 108 of file Make_PP_IFAR.C.

◆ FAP0

#define FAP0   (1.-0.682689)

Definition at line 104 of file Make_PP_IFAR.C.

◆ FAP1

#define FAP1   (1.-0.954499)

Definition at line 105 of file Make_PP_IFAR.C.

◆ FAP2

#define FAP2   (1.-0.997300)

Definition at line 106 of file Make_PP_IFAR.C.

◆ IFAR_NBIN

#define IFAR_NBIN   2000

Definition at line 93 of file Make_PP_IFAR.C.

◆ MAX_LIST_SIZE

#define MAX_LIST_SIZE   100

Definition at line 92 of file Make_PP_IFAR.C.

◆ MAX_RUNS

#define MAX_RUNS   3

Definition at line 90 of file Make_PP_IFAR.C.

◆ PA_FILE_LIST

#define PA_FILE_LIST   "Public_Alerts.lst"

Definition at line 118 of file Make_PP_IFAR.C.

◆ PP_BBH

#define PP_BBH   false

Definition at line 80 of file Make_PP_IFAR.C.

◆ PP_BELT_STYLE

#define PP_BELT_STYLE   "continuos"

Definition at line 73 of file Make_PP_IFAR.C.

◆ PP_CHUNK

#define PP_CHUNK   -1

Definition at line 67 of file Make_PP_IFAR.C.

◆ PP_EXIT

#define PP_EXIT   true

Definition at line 81 of file Make_PP_IFAR.C.

◆ PP_GW151226_IFAR

#define PP_GW151226_IFAR   0

Definition at line 83 of file Make_PP_IFAR.C.

◆ PP_IFAR_MAX

#define PP_IFAR_MAX   -1

Definition at line 75 of file Make_PP_IFAR.C.

◆ PP_LAG

#define PP_LAG   -1

Definition at line 65 of file Make_PP_IFAR.C.

◆ PP_NIFO

#define PP_NIFO   2

Definition at line 64 of file Make_PP_IFAR.C.

◆ PP_PFNAME

#define PP_PFNAME   ""

Definition at line 71 of file Make_PP_IFAR.C.

◆ PP_RHO_MIN

#define PP_RHO_MIN   4.5

Definition at line 76 of file Make_PP_IFAR.C.

◆ PP_RUN

#define PP_RUN   "O3"

Definition at line 61 of file Make_PP_IFAR.C.

◆ PP_SEARCH

#define PP_SEARCH   ""

Definition at line 62 of file Make_PP_IFAR.C.

◆ PP_SFACTOR

#define PP_SFACTOR   1

Definition at line 78 of file Make_PP_IFAR.C.

◆ PP_SLAG

#define PP_SLAG   -1

Definition at line 66 of file Make_PP_IFAR.C.

◆ PP_TRIALS

#define PP_TRIALS   1

Definition at line 69 of file Make_PP_IFAR.C.

◆ PP_ZL_MAX_IFAR

#define PP_ZL_MAX_IFAR   0

Definition at line 84 of file Make_PP_IFAR.C.

◆ PP_ZL_STYLE

#define PP_ZL_STYLE   "step"

Definition at line 72 of file Make_PP_IFAR.C.

◆ YEAR

#define YEAR   (24.*3600.*365.)

Definition at line 109 of file Make_PP_IFAR.C.

Function Documentation

◆ DumpBackground()

void DumpBackground ( )

Definition at line 1924 of file Make_PP_IFAR.C.

◆ DumpForeground()

void DumpForeground ( )

Definition at line 1965 of file Make_PP_IFAR.C.

◆ DumpLoudest()

void DumpLoudest ( double  obsTime)

Definition at line 1667 of file Make_PP_IFAR.C.

◆ DumpPeriod()

void DumpPeriod ( double *  obsTime)

Definition at line 1743 of file Make_PP_IFAR.C.

◆ DumpSimulation()

void DumpSimulation ( double  ifar_cmax)

Definition at line 1992 of file Make_PP_IFAR.C.

◆ DumpUserOptions()

void DumpUserOptions ( )

Definition at line 1795 of file Make_PP_IFAR.C.

◆ GetChunkID()

int GetChunkID ( double  gps,
TString &  run 
)

Definition at line 1727 of file Make_PP_IFAR.C.

◆ GetCutBBH()

TString GetCutBBH ( )

Definition at line 1420 of file Make_PP_IFAR.C.

◆ GetGPSBBH()

double GetGPSBBH ( TString  name)

Definition at line 1464 of file Make_PP_IFAR.C.

◆ GetLiveTime()

void GetLiveTime ( int  nwave,
TChain **  live,
int *  lag,
int *  slag,
int *  bin,
TString *  run,
double *  liveZero,
double *  liveTot 
)

Definition at line 1351 of file Make_PP_IFAR.C.

◆ GetNameBBH()

TString GetNameBBH ( double  gps)

Definition at line 1450 of file Make_PP_IFAR.C.

◆ GetPercentiles()

int GetPercentiles ( double  mu,
double *  q 
)

Definition at line 1252 of file Make_PP_IFAR.C.

◆ GetPoissonNinf()

int GetPoissonNinf ( double  mu,
double  fap 
)

Definition at line 1276 of file Make_PP_IFAR.C.

◆ GetPoissonNsup()

int GetPoissonNsup ( double  mu,
double  fap 
)

Definition at line 1264 of file Make_PP_IFAR.C.

◆ InitBBH()

void InitBBH ( )

Definition at line 1389 of file Make_PP_IFAR.C.

◆ Make_PP_IFAR()

void Make_PP_IFAR ( TString  ifName,
TString  options 
)

Definition at line 260 of file Make_PP_IFAR.C.

◆ MakePlot()

void MakePlot ( TString  title,
double  obsTime,
double  ifar_cmax 
)

Definition at line 956 of file Make_PP_IFAR.C.

◆ PrintUserOptions()

void PrintUserOptions ( )

Definition at line 1506 of file Make_PP_IFAR.C.

◆ ReadFileList()

int ReadFileList ( TString  ifName,
TChain **  live,
TChain **  wave,
TChain **  mdc,
int *  lag,
int *  slag,
int *  chunk,
int *  bin,
TString *  run 
)

Definition at line 1288 of file Make_PP_IFAR.C.

◆ ReadPublicAlerts()

int ReadPublicAlerts ( )

Definition at line 2029 of file Make_PP_IFAR.C.

◆ ReadUserOptions()

void ReadUserOptions ( TString  options)

Definition at line 1547 of file Make_PP_IFAR.C.

◆ ResetUserOptions()

void ResetUserOptions ( )

Definition at line 1478 of file Make_PP_IFAR.C.

Variable Documentation

◆ arrow

TArrow* arrow

Definition at line 175 of file Make_PP_IFAR.C.

◆ bRATE

wavearray<double> bRATE

Definition at line 185 of file Make_PP_IFAR.C.

◆ canvas

TCanvas* canvas

Definition at line 166 of file Make_PP_IFAR.C.

◆ chunk_id

int chunk_id[MAX_RUNS][CHUNK_MAX_SIZE]

Definition at line 226 of file Make_PP_IFAR.C.

◆ chunk_size

int chunk_size[MAX_RUNS]

Definition at line 225 of file Make_PP_IFAR.C.

◆ chunk_start

double chunk_start[MAX_RUNS][CHUNK_MAX_SIZE]

Definition at line 227 of file Make_PP_IFAR.C.

◆ chunk_stop

double chunk_stop[MAX_RUNS][CHUNK_MAX_SIZE]

Definition at line 228 of file Make_PP_IFAR.C.

◆ egr0

TGraphAsymmErrors* egr0

Definition at line 177 of file Make_PP_IFAR.C.

◆ egr1

TGraphAsymmErrors* egr1

Definition at line 178 of file Make_PP_IFAR.C.

◆ egr2

TGraphAsymmErrors* egr2

Definition at line 179 of file Make_PP_IFAR.C.

◆ egrsimbkg0

TGraphAsymmErrors* egrsimbkg0

Definition at line 170 of file Make_PP_IFAR.C.

◆ exFAR

wavearray<double> exFAR

Definition at line 204 of file Make_PP_IFAR.C.

◆ exSIM_BKG_IFAR

wavearray<double> exSIM_BKG_IFAR

Definition at line 194 of file Make_PP_IFAR.C.

◆ eyRATEinf0

wavearray<double> eyRATEinf0

Definition at line 205 of file Make_PP_IFAR.C.

◆ eyRATEinf1

wavearray<double> eyRATEinf1

Definition at line 207 of file Make_PP_IFAR.C.

◆ eyRATEinf2

wavearray<double> eyRATEinf2

Definition at line 209 of file Make_PP_IFAR.C.

◆ eyRATEsup0

wavearray<double> eyRATEsup0

Definition at line 206 of file Make_PP_IFAR.C.

◆ eyRATEsup1

wavearray<double> eyRATEsup1

Definition at line 208 of file Make_PP_IFAR.C.

◆ eyRATEsup2

wavearray<double> eyRATEsup2

Definition at line 210 of file Make_PP_IFAR.C.

◆ eySIM_BKG_inf0

wavearray<double> eySIM_BKG_inf0

Definition at line 196 of file Make_PP_IFAR.C.

◆ eySIM_BKG_sup0

wavearray<double> eySIM_BKG_sup0

Definition at line 197 of file Make_PP_IFAR.C.

◆ gOPT

uoptions gOPT

Definition at line 162 of file Make_PP_IFAR.C.

◆ gr

TGraph* gr

Definition at line 167 of file Make_PP_IFAR.C.

◆ gr0

TGraph* gr0

Definition at line 171 of file Make_PP_IFAR.C.

◆ grsim

TGraph* grsim

Definition at line 168 of file Make_PP_IFAR.C.

◆ grsimbkg

TGraph* grsimbkg

Definition at line 169 of file Make_PP_IFAR.C.

◆ latex

TLatex* latex

Definition at line 176 of file Make_PP_IFAR.C.

◆ leg

TLegend* leg

Definition at line 173 of file Make_PP_IFAR.C.

◆ leg0

TLegend* leg0

Definition at line 172 of file Make_PP_IFAR.C.

◆ marker

TMarker* marker

Definition at line 174 of file Make_PP_IFAR.C.

◆ O1_BBH_GPS

vector<double> O1_BBH_GPS

Definition at line 214 of file Make_PP_IFAR.C.

◆ O1_BBH_NAME

vector<TString> O1_BBH_NAME

Definition at line 213 of file Make_PP_IFAR.C.

◆ O2_BBH_GPS

vector<double> O2_BBH_GPS

Definition at line 218 of file Make_PP_IFAR.C.

◆ O2_BBH_NAME

vector<TString> O2_BBH_NAME

Definition at line 217 of file Make_PP_IFAR.C.

◆ O3_BBH_GPS

vector<double> O3_BBH_GPS

Definition at line 222 of file Make_PP_IFAR.C.

◆ O3_BBH_NAME

vector<TString> O3_BBH_NAME

Definition at line 221 of file Make_PP_IFAR.C.

◆ SIM_BKG_NEVT

wavearray<double> SIM_BKG_NEVT

Definition at line 190 of file Make_PP_IFAR.C.

◆ SIM_IFAR

wavearray<double> SIM_IFAR

Definition at line 188 of file Make_PP_IFAR.C.

◆ SIM_NEVT

wavearray<double> SIM_NEVT

Definition at line 189 of file Make_PP_IFAR.C.

◆ xFAR

wavearray<double> xFAR

Definition at line 184 of file Make_PP_IFAR.C.

◆ xIFAR

wavearray<double> xIFAR

Definition at line 183 of file Make_PP_IFAR.C.

◆ xSIM_BKG_IFAR

wavearray<double> xSIM_BKG_IFAR

Definition at line 195 of file Make_PP_IFAR.C.

◆ yBKG

wavearray<double> yBKG

Definition at line 186 of file Make_PP_IFAR.C.

◆ ySIM_BKG

wavearray<double> ySIM_BKG

Definition at line 193 of file Make_PP_IFAR.C.

◆ ZL_GPS

wavearray<double> ZL_GPS

Definition at line 201 of file Make_PP_IFAR.C.

◆ ZL_IFAR

wavearray<double> ZL_IFAR

Definition at line 199 of file Make_PP_IFAR.C.

◆ ZL_NEVT

wavearray<double> ZL_NEVT

Definition at line 200 of file Make_PP_IFAR.C.