8 #define WAVE_FILE "data/wave_931158008_600_ADV_SIM_BRST_LF_GWGC_L1H1_1G_run3_14.1421_job1.root"
16 TB.
checkFile(gSystem->Getenv(
"CWB_PARAMETERS_FILE"));
18 gROOT->Macro(cwb_parameter_name);
22 if(fileList.size()==0) {
23 cout <<
"No root files in the directory : " <<
output_dir << endl;
33 for(
int n=0;
n<fileList.size();
n++) {
35 cout << fileList[
n].Data() << endl;
37 int nevt =
event.GetEntries();
39 else cout <<
"nevt : " << nevt << endl;
41 #ifdef PRINT_DETECTORS
43 TList* ifoList =
event.fChain->GetUserInfo();
44 int nIFO = ifoList->GetSize();
48 cout << dParams.
name << endl;
59 cout <<
"--------------------------------------------------" << endl;
60 cout <<
"gps : " <<
int(event.
time[0]) << endl;
61 cout <<
"rho : " <<
event.rho[1] << endl;
62 cout <<
"cc : " <<
event.netcc[0] << endl;
63 cout <<
"network snr : " << sqrt(event.
likelihood) << endl;
64 cout <<
"--------------------------------------------------" << endl<<endl;
71 char fits_name[256];
sprintf(fits_name,
"%s/probability_skymap_%d.fits.gz",
ODIR,
int(event.
time[0]));
72 cout <<
"--------------------------------------------------" << endl<<endl;
73 cout <<
"Dump fits file : " << fits_name << endl;
74 Psm->Dump2fits(fits_name,event.
time[0]);
81 for(
int l=0;
l<Psm->
size();
l++) {prob=Psm->
get(
l);cprob+=prob;
if(prob>mprob) {mprob=prob;ml=
l;}}
82 cout <<
"cprob : " << cprob << endl;
83 cout <<
"mprob : " << mprob <<
" ml " << ml << endl;
87 double mRA = Psm->
getPhi(ml);
89 cout <<
"max prob RA : " << mRA <<
" RA (root) : " <<
event.phi[2] << endl;
90 cout <<
"max prob Dec : " << 90-mDec <<
" Dec (root) : " <<
event.theta[2] << endl;
91 cout <<
"--------------------------------------------------" << endl<<endl;
TString cwb_parameter_name
detectorParams getDetectorParams()
Float_t * rho
biased null statistics
sprintf(cmd,"mkdir -p %s", ODIR)
vector< TString > fileList
double getTheta(size_t i)
Double_t * time
beam pattern coefficients for hx
double get(size_t i)
param: sky index