6 #define LIVE_TIME_BEFORE_PP_DQ 67953.8 // years
7 #define LIVE_TIME_AFTER_PP_DQ 67406.8 // years
12 if(!ifName.EndsWith(
".txt")) {cout <<
"Error, file extention not '.txt'" << endl;
exit(1);}
15 if(
tag==
"") ofName.ReplaceAll(
".txt",
"_LTDQ.txt");
16 else ofName.ReplaceAll(
".txt",
TString(
"_")+
tag+
"_LTDQ.txt");
18 cout <<
"Input File : " << ifName << endl;
19 cout <<
"Output File : " << ofName << endl;
28 if (!in.good()) {cout <<
"Error Opening File : " << ifName.Data() << endl;
exit(1);}
32 if(!out.good()) {cout <<
"Error : Opening File : " << ofName << endl;gSystem->Exit(1);}
36 if(icol2) in >> rho >> far;
37 else in >> rho >> far >> erho >> efar;
38 if (!in.good())
break;
39 double far_LTDQ = far*live_time_ratio;
40 double efar_LTDQ = efar*live_time_ratio;
42 if(ocol2) out << rho <<
"\t" << far_LTDQ << endl;
43 else out << rho <<
"\t" << far_LTDQ <<
"\t" << erho <<
"\t" << efar_LTDQ << endl;
49 if(force_exit)
exit(0);
void FixLiveTime_PP_DQ(TString ifName, bool icol2=false, bool ocol2=false, bool force_exit=true, TString tag="")
#define LIVE_TIME_BEFORE_PP_DQ
#define LIVE_TIME_AFTER_PP_DQ