Logo coherent WaveBurst  
Library Reference Guide
Logo
Functions | Variables
cwb_fix_slag_missed.C File Reference
#include <vector>
Include dependency graph for cwb_fix_slag_missed.C:

Functions

tlive_fix Branch ("slag", xslag,"slag[6]/F")
 
TB checkFile (gSystem->Getenv("CWB_ROOTLOGON_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_PARAMETERS_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_UPARAMETERS_FILE"))
 
flive_fix Close ()
 
 exit (0)
 
TString fix_liv_file_name (liv_file_name)
 
TString fix_net_file_name (net_file_name)
 
 for (int i=0;i< ntrg_live;i++)
 
cout<< olstfname<< endl;int estat;Long_t id, size, flags, mt;estat=gSystem-> GetPathInfo (TString(merge_dir)+"/"+ilstfname,&id,&size,&flags,&mt)
 
 if (gSystem->Getenv("CWB_MERGE_LABEL")==NULL)
 
 if (simulation)
 
 if (twave==NULL)
 
 if (flive==NULL)
 
 if (tlive==NULL)
 
 if (liv_slag &&net_slag)
 
 if (!liv_slag &&net_slag)
 
 if (liv_slag &&!net_slag)
 
 if (!liv_slag)
 
 if (estat==0)
 
TIter next (twave->GetListOfBranches())
 
TIter next (tlive->GetListOfBranches())
 
olstfname Remove (0, olstfname.Last('/')+1)
 
fix_liv_file_name ReplaceAll (".root",".FIX.root")
 
olstfname ReplaceAll ("wave_","merge_")
 
olstfname ReplaceAll (".root",".lst")
 
next Reset ()
 
tlive SetBranchAddress ("run",&xrun)
 
tlive_fix SetMaxTreeSize (5000000000)
 
 sprintf (liv_file_name,"%s/live_%s.%s.root", merge_dir, data_label, cwb_merge_label.Data())
 
 sprintf (ilstfname,"merge_%s.%s.lst", data_label, cwb_merge_label.Data())
 
 while ((branch=(TBranch *) next()))
 
tlive_fix Write ()
 

Variables

TBranch * branch
 
cout<< "Fixed live file : "<< fix_liv_file_name.Data()<< endl;TFile *flive_fix=new TFile(fix_liv_file_name,"RECREATE");if(flive_fix->IsZombie()) { cout<< "CWB::Toolbox::setVeto - Error opening file "<< fix_liv_file_name.Data()<< endl;exit(1);} TTree *tlive_fix=(TTree *) tlive-> CloneTree (0)
 
TString cwb_merge_label
 
 else
 
cout<< net_file_name<< endl;cout<< liv_file_name<< endl;TB.checkFile(net_file_name);TB.checkFile(liv_file_name);} TFile *fwave=TFile::Open(net_file_name);if(fwave==NULL) {cout<< "Error opening file "<< net_file_name<< endl;exit(1);} TTree *twave=(TTree *) gROOT-> FindObject ("waveburst")
 
bool fixit =false
 
TFile * flive = TFile::Open(liv_file_name)
 
char ilstfname [1024]
 
vector< intjobList
 
char liv_file_name [256]
 
bool liv_slag =false
 
char net_file_name [256]
 
bool net_slag =false
 
int ntrg_live = tlive->GetEntries()
 
int ntrg_wave = twave->GetEntries()
 
TString olstfname = fix_net_file_name
 
TTree * tlive = (TTree *) gROOT->FindObject("liveTime")
 
Int_t xrun
 
float xslag [6]
 

Function Documentation

◆ Branch()

twave_fix Branch ( "slag"  ,
xslag  ,
"slag/F [6] 
)

◆ checkFile() [1/3]

TB checkFile ( gSystem->  Getenv"CWB_ROOTLOGON_FILE")

◆ checkFile() [2/3]

TB checkFile ( gSystem->  Getenv"CWB_PARAMETERS_FILE")

◆ checkFile() [3/3]

TB checkFile ( gSystem->  Getenv"CWB_UPARAMETERS_FILE")

◆ Close()

flive_fix Close ( )

◆ exit()

exit ( )

◆ fix_liv_file_name()

TString fix_liv_file_name ( liv_file_name  )

◆ fix_net_file_name()

TString fix_net_file_name ( net_file_name  )

◆ for()

for ( )

Definition at line 144 of file cwb_fix_slag_missed.C.

◆ GetPathInfo()

cout<< olstfname << endl; int estat; Long_t id,size,flags,mt; estat = gSystem-> GetPathInfo ( TString(merge_dir)+"/"+  ilstfname,
id,
size,
flags,
mt 
)

◆ if() [1/10]

if ( gSystem->  Getenv"CWB_MERGE_LABEL" = =NULL)

Definition at line 31 of file cwb_fix_slag_missed.C.

◆ if() [2/10]

if ( simulation  )

Definition at line 40 of file cwb_fix_slag_missed.C.

◆ if() [3/10]

if ( twave  = =NULL)

Definition at line 57 of file cwb_fix_slag_missed.C.

◆ if() [4/10]

if ( flive  = =NULL)

Definition at line 70 of file cwb_fix_slag_missed.C.

◆ if() [5/10]

if ( tlive  = =NULL)

Definition at line 72 of file cwb_fix_slag_missed.C.

◆ if() [6/10]

if ( liv_slag &&  net_slag)

Definition at line 82 of file cwb_fix_slag_missed.C.

◆ if() [7/10]

if ( !liv_slag &&  net_slag)

Definition at line 90 of file cwb_fix_slag_missed.C.

◆ if() [8/10]

if ( liv_slag &&!  net_slag)

Definition at line 97 of file cwb_fix_slag_missed.C.

◆ if() [9/10]

if ( liv_slag)

Definition at line 107 of file cwb_fix_slag_missed.C.

◆ if() [10/10]

if ( estat  = =0)

Definition at line 204 of file cwb_fix_slag_missed.C.

◆ next() [1/2]

TIter next ( twave->  GetListOfBranches())

◆ next() [2/2]

TIter next ( tlive->  GetListOfBranches())

◆ Remove()

olstfname Remove ( ,
olstfname.Last('/')+  1 
)

◆ ReplaceAll() [1/3]

fix_liv_file_name ReplaceAll ( ".root"  ,
".FIX.root"   
)

◆ ReplaceAll() [2/3]

olstfname ReplaceAll ( "wave_"  ,
"merge_"   
)

◆ ReplaceAll() [3/3]

olstfname ReplaceAll ( ".root"  ,
".lst"   
)

◆ Reset()

next Reset ( )

◆ SetBranchAddress()

tlive SetBranchAddress ( "run"  ,
xrun 
)

◆ SetMaxTreeSize()

tlive_fix SetMaxTreeSize ( 5000000000  )

◆ sprintf() [1/2]

sprintf ( liv_file_name  ,
"%s/live_%s.%s.root"  ,
merge_dir  ,
data_label  ,
cwb_merge_label.  Data() 
)

◆ sprintf() [2/2]

sprintf ( ilstfname  ,
"merge_%s.%s.lst"  ,
data_label  ,
cwb_merge_label.  Data() 
)

◆ while()

while ( (branch=(TBranch *) next())  )

Definition at line 63 of file cwb_fix_slag_missed.C.

◆ Write()

tlive_fix Write ( )

Variable Documentation

◆ branch

TBranch* branch

Definition at line 60 of file cwb_fix_slag_missed.C.

◆ CloneTree

cout<< "Fixed wave file : " << fix_net_file_name.Data() << endl; TFile* fwave_fix = new TFile(fix_net_file_name,"RECREATE"); if (fwave_fix->IsZombie()) { cout << "CWB::Toolbox::setVeto - Error opening file " << fix_net_file_name.Data() << endl; exit(1); } TTree *twave_fix = (TTree*)twave-> CloneTree(0)

Definition at line 134 of file cwb_fix_slag_missed.C.

◆ cwb_merge_label

TString cwb_merge_label

Definition at line 30 of file cwb_fix_slag_missed.C.

◆ else

else
Initial value:
{
cwb_merge_label=TString(gSystem->Getenv("CWB_MERGE_LABEL"))
TString("c")
TString cwb_merge_label

Definition at line 33 of file cwb_fix_slag_missed.C.

◆ FindObject

cout<< net_file_name << endl; cout << liv_file_name << endl; TB.checkFile(net_file_name); TB.checkFile(liv_file_name); } TFile *fwave = TFile::Open(net_file_name); if(fwave==NULL) {cout << "Error opening file " << net_file_name << endl;exit(1);} TTree* twave = (TTree *) gROOT-> FindObject("waveburst")

Definition at line 56 of file cwb_fix_slag_missed.C.

◆ fixit

bool fixit =false

Definition at line 106 of file cwb_fix_slag_missed.C.

◆ flive

TFile* flive = TFile::Open(liv_file_name)

Definition at line 69 of file cwb_fix_slag_missed.C.

◆ ilstfname

char ilstfname[1024]

Definition at line 194 of file cwb_fix_slag_missed.C.

◆ jobList

vector<int> jobList

Definition at line 193 of file cwb_fix_slag_missed.C.

◆ liv_file_name

char liv_file_name[256]

Definition at line 38 of file cwb_fix_slag_missed.C.

◆ liv_slag

bool liv_slag =false

Definition at line 76 of file cwb_fix_slag_missed.C.

◆ net_file_name

char net_file_name[256]

Definition at line 37 of file cwb_fix_slag_missed.C.

◆ net_slag

bool net_slag =false

Definition at line 61 of file cwb_fix_slag_missed.C.

◆ ntrg_live

int ntrg_live = tlive->GetEntries()

Definition at line 143 of file cwb_fix_slag_missed.C.

◆ ntrg_wave

int ntrg_wave = twave->GetEntries()

Definition at line 177 of file cwb_fix_slag_missed.C.

◆ olstfname

Definition at line 196 of file cwb_fix_slag_missed.C.

◆ tlive

TTree* tlive = (TTree *) gROOT->FindObject("liveTime")

Definition at line 71 of file cwb_fix_slag_missed.C.

◆ xrun

Int_t xrun

Definition at line 141 of file cwb_fix_slag_missed.C.

◆ xslag

float xslag[6]

Definition at line 137 of file cwb_fix_slag_missed.C.