Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
check_slag_bkg.C File Reference

Macros

#define BINMAX   114.5
 
#define BINMIN   4.50
 
#define NBINS   1100
 
#define NSLAG_ORDER   5
 
#define REBIN_MIN_EVTS_PER_BIN   30.0
 

Functions

wave Add (net_file_name)
 
live Add (liv_file_name)
 
TB checkFile (gSystem->Getenv("CWB_ROOTLOGON_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_PARAMETERS_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_UPARAMETERS_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_PPARAMETERS_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_UPPARAMETERS_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_EPPARAMETERS_FILE"))
 
wave Draw (sel, cut,"goff")
 
Gr Draw ("alp")
 
 for (int i=0;i< num;i++)
 
gROOT ForceStyle ()
 
Slag GetXaxis () -> SetTitle("rho")
 
TGraph Gr (test, rank, pvals)
 
 if (!slagFound)
 
 if (!test_veto.IsNull()) sprintf(cut
 
TChain live ("liveTime")
 
TIter mynext (wave.GetListOfBranches())
 
c1 Range (-0.75,-1.23433, 6.75, 8.17182)
 
mynext Reset ()
 
TString sel ("slag[1]:rho[1]")
 
c1 SetBorderSize (1)
 
gStyle SetCanvasColor (kWhite)
 
wave SetEstimate (num)
 
c1 SetFillColor (0)
 
gStyle SetFrameBorderMode (0)
 
c1 SetFrameFillColor (0)
 
c1 SetGridx ()
 
c1 SetGridy ()
 
gStyle SetLineColor (kWhite)
 
gStyle SetNumberContours (256)
 
gStyle SetOptStat (kFALSE)
 
gStyle SetPalette (1, 0)
 
gStyle SetStatBorderSize (1)
 
Slag SetStats (kFALSE)
 
gStyle SetTitleFillColor (kWhite)
 
 sprintf (cut,"rho[1]>%f", T_cut)
 
 sprintf (cut2,"!(lag[%d]==0&&slag[%d]==0)", nIFO, nIFO)
 
TChain wave ("waveburst")
 
 while ((branch=(TBranch *) mynext()))
 

Variables

TBranch * branch
 
TCanvas * c1 = new TCanvas("Slag", "Slag",32,55,750,502)
 
char cut [512]
 
char cut2 [256]
 
char fname [1024]
 
cout<<"Number of Entries: "
<< num<< endl;double *slag1=wave.GetV1();double
*rho=wave.GetV2();int num2=(int)
live.GetEntries(cut2);live.SetEstimate(num2);live.Draw("slag[1]:live",
cut2,"goff");double *lslag1=live.GetV1();double
*Live=live.GetV2();char
mytitle[256];double SlagMax=wave.GetMaximum("slag")+segLen/2.;double
SlagMin=wave.GetMinimum("slag")-segLen/2.;int
NSlag=TMath::FloorNint((SlagMax-SlagMin)/segLen);cout
<< "SLAG MAX : "
<< wave.GetMaximum("slag")
<< " s SLAG MIN : "
<< wave.GetMinimum("slag")
<< " s #SLAGS : "<< NSlag-1
<< endl;sprintf(mytitle,"FAR
distribution over slags (post
cat3 & rho>%f)", T_cut);TH2F
*Slag=new TH2F("SLAG", mytitle,
NBINS, BINMIN, BINMAX, NSLAG,
SlagMin, SlagMax);Slag-> 
GetYaxis () -> SetTitle("slag[1] shift [s]")
 
Int_t * index = new Int_t[test]
 
TH1F * lSlag = new TH1F("LSLAG","FAR distribution over slags",NSLAG,SlagMin,SlagMax)
 
int num = (int)wave.GetEntries(cut)
 
TH1D * P0 = new TH1D("P0","P0",100,0.0,1.0)
 
double Pval [NSLAG-1]
 
float * pvals = new float[test]
 
float * rank = new float[test]
 
s && s
 
bool slagFound =false
 
int test = 0
 
TString test_veto = veto_not_vetoed
 
s veto_not_vetoed
 

Macro Definition Documentation

#define BINMAX   114.5
#define BINMIN   4.50
#define NBINS   1100
#define NSLAG_ORDER   5
#define REBIN_MIN_EVTS_PER_BIN   30.0

Function Documentation

wave Add ( net_file_name  )
live Add ( liv_file_name  )
TB checkFile ( gSystem->  Getenv"CWB_ROOTLOGON_FILE")
TB checkFile ( gSystem->  Getenv"CWB_PARAMETERS_FILE")
TB checkFile ( gSystem->  Getenv"CWB_UPARAMETERS_FILE")
TB checkFile ( gSystem->  Getenv"CWB_PPARAMETERS_FILE")
TB checkFile ( gSystem->  Getenv"CWB_UPPARAMETERS_FILE")
TB checkFile ( gSystem->  Getenv"CWB_EPPARAMETERS_FILE")
wave Draw ( sel  ,
cut  ,
"goff"   
)
Gr Draw ( "alp"  )
for ( )

Definition at line 108 of file check_slag_bkg.C.

gROOT ForceStyle ( )
Slag GetXaxis ( ) -> SetTitle("rho")

Definition at line 321 of file cwb_report_prod_2.C.

TGraph Gr ( test  ,
rank  ,
pvals   
)
if ( slagFound)

Definition at line 59 of file check_slag_bkg.C.

if ( !test_veto.  IsNull())
TChain live ( "liveTime"  )
TIter mynext ( wave.  GetListOfBranches())
c1 Range ( -0.  75,
-1.  23433,
6.  75,
8.  17182 
)
mynext Reset ( )
TString sel ( "slag:rho"  [1][1])
c2 SetBorderSize ( )
gStyle SetCanvasColor ( kWhite  )
wave SetEstimate ( num  )
c1 SetFillColor ( )
gStyle SetFrameBorderMode ( )
c2 SetFrameFillColor ( )
c1 SetGridx ( )
c1 SetGridy ( )
gStyle SetLineColor ( kWhite  )
gStyle SetNumberContours ( 256  )
gStyle SetOptStat ( kFALSE  )
gStyle SetPalette ( ,
 
)
gStyle SetStatBorderSize ( )
Slag SetStats ( kFALSE  )
gStyle SetTitleFillColor ( kWhite  )
sprintf ( cut  ,
rho[1],
%f ,
T_cut   
)
sprintf ( cut2  ,
"!(lag[%d]==0&&slag[%d]==0)"  ,
nIFO  ,
nIFO   
)
TChain wave ( "waveburst"  )
while ( (branch=(TBranch *) mynext())  )

Definition at line 55 of file check_slag_bkg.C.

Variable Documentation

TBranch* branch

Definition at line 52 of file check_slag_bkg.C.

TCanvas* c1 = new TCanvas("Slag", "Slag",32,55,750,502)

Definition at line 36 of file check_slag_bkg.C.

s cut

Definition at line 62 of file check_slag_bkg.C.

char cut2[256]

Definition at line 63 of file check_slag_bkg.C.

char fname[1024]

Definition at line 61 of file check_slag_bkg.C.

h2gd GetYaxis ( ) -> SetTitle("slag[1] shift [s]")

Definition at line 102 of file check_slag_bkg.C.

Int_t* index = new Int_t[test]

Definition at line 200 of file check_slag_bkg.C.

TH1F* lSlag = new TH1F("LSLAG","FAR distribution over slags",NSLAG,SlagMin,SlagMax)

Definition at line 107 of file check_slag_bkg.C.

int num = (int)wave.GetEntries(cut)

Definition at line 71 of file check_slag_bkg.C.

TH1D* P0 = new TH1D("P0","P0",100,0.0,1.0)

Definition at line 117 of file check_slag_bkg.C.

double Pval[NSLAG-1]

Definition at line 119 of file check_slag_bkg.C.

float* pvals = new float[test]

Definition at line 203 of file check_slag_bkg.C.

float* rank = new float[test]

Definition at line 204 of file check_slag_bkg.C.

s&& s

Definition at line 68 of file check_slag_bkg.C.

bool slagFound =false

Definition at line 53 of file check_slag_bkg.C.

int test = 0

Definition at line 120 of file check_slag_bkg.C.

TString test_veto = veto_not_vetoed

Definition at line 67 of file check_slag_bkg.C.

s veto_not_vetoed

Definition at line 68 of file check_slag_bkg.C.