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

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"))
 
c1 Clear ()
 
lag Divide (llag)
 
wave Draw ("lag[0]-lag[1]:lag[1]-lag[2]", cut,"goff")
 
lag Draw ("colz")
 
FarPlot Draw ("AP")
 
 exit (0)
 
 for (int i=0;i< num;i++)
 
gROOT ForceStyle ()
 
FarPlot GetHistogram () -> SetXTitle("#lag distance [s]")
 
cout<< "Number of lags : "
<< count<< endl;double liveTot=llag-> 
GetSumOfWeights ()
 
lag GetYaxis () -> SetTitle("lag[1]-lag[2] shift [s]")
 
 if (nIFO!=3)
 
 if (!test_veto.IsNull()) sprintf(cut
 
TChain live ("liveTime")
 
c1 Range (-0.75,-1.23433, 6.75, 8.17182)
 
c1 SaveAs (fname)
 
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)
 
cout<< "Total BKG live time : "
<< liveTot<< endl;double FAR2[count];double
eFAR2[count];double N[count];double
eN[count];for(int i=0;i< count;i++){N[i]=D[i];}Int_t
*index=new Int_t[count];TMath::Sort(count,
N, index, false);for(int i=0;i
< count;i++){FAR2[i]=FAR[index[i]];eFAR2[i]=eFAR[index[i]];N[i]=D[index[i]];eN[i]=0.0;}TGraphErrors
*FarPlot=new TGraphErrors(count,
N, FAR2, eN, eFAR2);FarPlot-> 
SetLineColor (kBlue)
 
FarPlot SetMarkerColor (kBlue)
 
FarPlot SetMarkerSize (1)
 
FarPlot SetMarkerStyle (20)
 
gStyle SetNumberContours (256)
 
gStyle SetOptStat (kFALSE)
 
gStyle SetPalette (1, 0)
 
gStyle SetStatBorderSize (1)
 
lag SetStats (kFALSE)
 
FarPlot SetTitle ("FAR vs lag distance")
 
gStyle SetTitleFillColor (kWhite)
 
 sprintf (cut,"rho[1]>%f", T_cut)
 
 sprintf (cut2,"!(lag[%d]==0&&slag[%d]==0)", nIFO, nIFO)
 
 sprintf (fname,"%s/lag.png", netdir)
 
 sprintf (fname,"%s/FAR_vs_lag.png", netdir)
 
c1 Update ()
 
TChain wave ("waveburst")
 

Variables

TCanvas * c1 = new TCanvas("lag", "lag",32,55,750,502)
 
int count = 0
 
char cut [512]
 
char cut2 [256]
 
double D [100000]
 
double eFAR [100000]
 
double FAR [100000]
 
char fname [1024]
 
double liveMax = llag->GetMaximum()
 
TH2F * llag = new TH2F("LSLAG","FAR distribution over lags",Nlag,xplotlagMin,xplotlagMax,Nlag,yplotlagMin,yplotlagMax)
 
int num = (int)wave.GetEntries(cut)
 
s && s
 
cout<<"Number of Entries: "
<< num<< endl;double *lag01=wave.GetV1();double
*lag12=wave.GetV2();int num2=(int)
live.GetEntries(cut2);live.SetEstimate(num2);live.Draw("lag[0]-lag[1]:lag[1]-lag[2]:live",
cut2,"goff");double *llag01=live.GetV1();double
*llag12=live.GetV2();double
*Live=live.GetV3();char title[256];double
xplotlagMax=TMath::MaxElement(num,
lag01);double xplotlagMin=TMath::MinElement(num,
lag01);double yplotlagMax=TMath::MaxElement(num,
lag12);double yplotlagMin=TMath::MinElement(num,
lag12);cout<< xplotlagMin
<<" < lag[o]-lag[1]
< "<< xplotlagMax<< endl;cout
<< yplotlagMin<<" < lag[1]-lag[2]
< "<< yplotlagMax<< endl;int
Nlag=100;sprintf(title,"FAR
distribution over lags (post
cat3 & rho>%f)", T_cut);TH2F
*lag=new TH2F("SLAG", title,
Nlag, xplotlagMin, xplotlagMax,
Nlag, yplotlagMin, yplotlagMax);lag->
GetXaxis() ->SetTitle("lag[0]-lag[1]
shift [s]");lag->GetXaxis() -> 
SetNdivisions (10, kFALSE)
 
CWB::Toolbox TB
 
TString test_veto = veto_not_vetoed
 
s veto_not_vetoed
 
TAxis * xaxis = lag->GetXaxis()
 
TAxis * yaxis = lag->GetYaxis()
 

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")
c1 Clear ( )

Definition at line 1261 of file CWB_Plugin_xWRC.C.

lag Divide ( llag  )
wave Draw ( "lag-lag:lag-lag"  [0][1][1][2],
cut  ,
"goff"   
)
lag Draw ( "colz"  )
FarPlot Draw ( "AP"  )
exit ( )
for ( )

Definition at line 94 of file lag.C.

gROOT ForceStyle ( )
FarPlot GetHistogram ( ) -> SetXTitle("#lag distance [s]")

Definition at line 913 of file cbc_plots.C.

cout<< "Number of lags : " << count << endl; double liveTot = llag-> GetSumOfWeights ( )
lag GetYaxis ( ) -> SetTitle("lag[1]-lag[2] shift [s]")

Definition at line 213 of file cbc_plots.C.

if ( nIFO!  = 3)

Definition at line 5 of file lag.C.

if ( !test_veto.  IsNull())
TChain live ( "liveTime"  )
c1 Range ( -0.  75,
-1.  23433,
6.  75,
8.  17182 
)
c1 SaveAs ( fname  )
c1 SetBorderSize ( )
gStyle SetCanvasColor ( kWhite  )
wave SetEstimate ( num  )
c1 SetFillColor ( )
gStyle SetFrameBorderMode ( )
c1 SetFrameFillColor ( )
c1 SetGridx ( )
c1 SetGridy ( )
gStyle SetLineColor ( kWhite  )
htemp3 SetLineColor ( kBlue  )
t10 SetMarkerColor ( kBlue  )
FarPlot SetMarkerSize ( )
FarPlot SetMarkerStyle ( 20  )
gStyle SetNumberContours ( 256  )
gStyle SetOptStat ( kFALSE  )
gStyle SetPalette ( ,
 
)
gStyle SetStatBorderSize ( )
lag SetStats ( kFALSE  )
FarPlot SetTitle ( "FAR vs lag distance )
gStyle SetTitleFillColor ( kWhite  )
sprintf ( cut  ,
rho[1],
%f ,
T_cut   
)
sprintf ( cut2  ,
"!(lag[%d]==0&&slag[%d]==0)"  ,
nIFO  ,
nIFO   
)
sprintf ( fname  ,
"%s/lag.png"  ,
netdir   
)
sprintf ( fname  ,
"%s/FAR_vs_lag.png"  ,
netdir   
)
c1 Update ( )
TChain wave ( "waveburst"  )

Variable Documentation

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

Definition at line 31 of file lag.C.

int count = 0

Definition at line 111 of file lag.C.

s cut

Definition at line 48 of file lag.C.

char cut2[256]

Definition at line 49 of file lag.C.

double D[100000]

Definition at line 114 of file lag.C.

double eFAR[100000]

Definition at line 113 of file lag.C.

double FAR[100000]

Definition at line 112 of file lag.C.

char fname[1024]

Definition at line 47 of file lag.C.

double liveMax = llag->GetMaximum()

Definition at line 131 of file lag.C.

TH2F* llag = new TH2F("LSLAG","FAR distribution over lags",Nlag,xplotlagMin,xplotlagMax,Nlag,yplotlagMin,yplotlagMax)

Definition at line 93 of file lag.C.

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

Definition at line 57 of file lag.C.

s&& s

Definition at line 54 of file lag.C.

cout<<"Number of Entries: "<<num<<endl; double* lag01 = wave.GetV1(); double* lag12 = wave.GetV2(); int num2 = (int)live.GetEntries(cut2); live.SetEstimate(num2); live.Draw("lag[0]-lag[1]:lag[1]-lag[2]:live",cut2,"goff"); double* llag01 = live.GetV1(); double* llag12 = live.GetV2(); double* Live = live.GetV3(); char title[256]; double xplotlagMax = TMath::MaxElement(num,lag01); double xplotlagMin = TMath::MinElement(num,lag01);double yplotlagMax = TMath::MaxElement(num,lag12); double yplotlagMin = TMath::MinElement(num,lag12); cout<<xplotlagMin<<" < lag[o]-lag[1] < "<<xplotlagMax<<endl; cout<<yplotlagMin<<" < lag[1]-lag[2] < "<<yplotlagMax<<endl; int Nlag = 100;sprintf(title,"FAR distribution over lags (post cat3 & rho>%f)",T_cut); TH2F* lag = new TH2F("SLAG",title,Nlag,xplotlagMin,xplotlagMax,Nlag,yplotlagMin,yplotlagMax); lag->GetXaxis()->SetTitle("lag[0]-lag[1] shift [s]"); lag->GetXaxis()-> SetNdivisions(10, kFALSE)

Definition at line 89 of file lag.C.

Definition at line 7 of file lag.C.

TString test_veto = veto_not_vetoed

Definition at line 53 of file lag.C.

s veto_not_vetoed

Definition at line 54 of file lag.C.

TAxis* xaxis = lag->GetXaxis()

Definition at line 109 of file lag.C.

TAxis* yaxis = lag->GetYaxis()

Definition at line 110 of file lag.C.