Logo coherent WaveBurst  
Library Reference Guide
Logo
Functions | Variables
cwb_setcuts.C File Reference

Functions

jobList clear ()
 
jtree Draw ("Entry$", cwb_jcuts_tree.Data(),"goff")
 
 exit (0)
 
 for (int i=0;i< jsel;i++)
 pointers to detectors More...
 
cout<< olstfname<< endl;if(cwb_jcuts_tree=="") { estat=gSystem-> GetPathInfo (mdir+"/"+ilstfname,&id,&size,&flags,&mt)
 
 if (cwb_setcuts_options.Contains("--"))
 
 if (cwb_tcuts_tree!="")
 
 if ((simulation==0)&&(cwb_unique_evt=="true"))
 
 if ((cwb_wcuts_tree!="")&&(cwb_cuts_label==""))
 
 if (cwb_cuts_label.Contains("."))
 
 if (cwb_wcuts_tree.Contains("run"))
 
 if (cwb_wcuts_tree.Contains("slag"))
 
 if (cwb_wcuts_tree.Contains("lag"))
 
 if (TString cwb_wcuts=cwb_wcuts_tree=="")
 
 if ((cwb_wcuts_tree="")&&(cwb_cuts_label==""))
 
 if (estat==0)
 
 if (nsel<=0)
 
 if (!simulation)
 
olstfname Remove (0, olstfname.Last('/')+1)
 
owfname ReplaceAll (".root", TString(".C_")+cwb_cuts_label+".root")
 
olstfname ReplaceAll ("wave_","merge_")
 
olstfname ReplaceAll (".root",".lst")
 
 sprintf (ilstfname,"merge_%s.%s.lst", data_label, cwb_merge_label.Data())
 

Variables

char cmd [1024]
 
TString cwb_cuts_label = TString(gSystem->Getenv("CWB_CUTS_LABEL"))
 
TString cwb_jcuts_tree = TString(gSystem->Getenv("CWB_JCUTS_TREE"))
 
TString cwb_lcuts_tree = TString(gSystem->Getenv("CWB_LCUTS_TREE"))
 
TString cwb_mcuts_tree = TString(gSystem->Getenv("CWB_MCUTS_TREE"))
 
 cwb_merge_label = TString(gSystem->Getenv("CWB_MERGE_LABEL"))
 
TString cwb_setcuts_options = TString(gSystem->Getenv("CWB_SETCUTS_OPTIONS"))
 
TString cwb_tcuts_tree = ""
 
TString cwb_unique_evt = "false"
 
TString cwb_wcuts_tree = TString(gSystem->Getenv("CWB_WCUTS_TREE"))
 
 else
 
double * entry = jtree.GetV1()
 
int estat
 
cout<< "Number of jobs in the merged lists : "<< jobList.size()<< endl;TTree jtree("jtree","jtree");int run;jtree.Branch("run",&run,"run/I");TString *jfname=new TString();jtree.Branch("jfname", &jfname);for(int i=0;i< jobList.size();i++) {run=jobList[i];*jfname=jobFileList[i];jtree.Fill();} TTreeFormula formula("trCuts", cwb_jcuts_tree.Data(), &jtree);int err=formula.Compile(cwb_jcuts_tree.Data());if(err) { cout<< "cwb_setcuts.C - wrong input cuts "<< cwb_jcuts_tree<< endl<< endl;gSystem-> Exit (1)
 
Long_t flags
 
Long_t id
 
char ilstfname [1024]
 
vector< intjobList = CWB::Toolbox::getMergeJobList(mdir+"/"+ilstfname,jobFileList)
 
int jsel = jtree.GetSelectedRows()
 
TString mdir = merge_dir
 
Long_t mt
 
int nsel = CWB::Toolbox::setCuts(iwfname,mdir,mdir,"waveburst",cwb_wcuts,cwb_cuts_label)
 
TString olstfname = owfname
 
TString owfname = mdir+"/"+iwfname
 
Long_t size
 

Function Documentation

◆ clear()

jobList clear ( )

◆ Draw()

jtree Draw ( "Entry$"  ,
cwb_jcuts_tree.  Data(),
"goff"   
)

◆ exit()

exit ( )

◆ for()

for ( )

pointers to detectors

Definition at line 227 of file cwb_setcuts.C.

◆ GetPathInfo()

cout<< olstfname << endl; if(cwb_jcuts_tree=="") { estat = gSystem-> GetPathInfo ( mdir+"/"+  ilstfname,
id,
size,
flags,
mt 
)

◆ if() [1/13]

if ( cwb_setcuts_options.  Contains"--")

Definition at line 43 of file cwb_setcuts.C.

◆ if() [2/13]

if ( cwb_tcuts_tree!  = "")

Definition at line 61 of file cwb_setcuts.C.

◆ if() [3/13]

if ( (simulation==0)&&(cwb_unique_evt=="true")  )

Definition at line 87 of file cwb_setcuts.C.

◆ if() [4/13]

if ( (cwb_wcuts_tree!="")&&(cwb_cuts_label=="")  )

Definition at line 92 of file cwb_setcuts.C.

◆ if() [5/13]

if ( cwb_cuts_label.  Contains".")

Definition at line 97 of file cwb_setcuts.C.

◆ if() [6/13]

if ( cwb_wcuts_tree.  Contains"run")

Definition at line 103 of file cwb_setcuts.C.

◆ if() [7/13]

if ( cwb_wcuts_tree.  Contains"slag")

Definition at line 109 of file cwb_setcuts.C.

◆ if() [8/13]

if ( cwb_wcuts_tree.  Contains"lag")

Definition at line 115 of file cwb_setcuts.C.

◆ if() [9/13]

if ( TString cwb_wcuts =  cwb_wcuts_tree = ="")

Definition at line 120 of file cwb_setcuts.C.

◆ if() [10/13]

if ( (cwb_wcuts_tree="")&&(cwb_cuts_label=="")  )

Definition at line 175 of file cwb_setcuts.C.

◆ if() [11/13]

if ( estat  = =0)

Definition at line 197 of file cwb_setcuts.C.

◆ if() [12/13]

if ( nsel<=  0)

Definition at line 238 of file cwb_setcuts.C.

◆ if() [13/13]

if ( simulation)

Definition at line 265 of file cwb_setcuts.C.

◆ Remove()

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

◆ ReplaceAll() [1/3]

owfname ReplaceAll ( ".root"  ,
TString(".C_")+cwb_cuts_label+".root"   
)

◆ ReplaceAll() [2/3]

olstfname ReplaceAll ( "wave_"  ,
"merge_"   
)

◆ ReplaceAll() [3/3]

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

◆ sprintf()

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

Variable Documentation

◆ cmd

char cmd[1024]

Definition at line 27 of file cwb_setcuts.C.

◆ cwb_cuts_label

TString cwb_cuts_label = TString(gSystem->Getenv("CWB_CUTS_LABEL"))

Definition at line 32 of file cwb_setcuts.C.

◆ cwb_jcuts_tree

TString cwb_jcuts_tree = TString(gSystem->Getenv("CWB_JCUTS_TREE"))

Definition at line 30 of file cwb_setcuts.C.

◆ cwb_lcuts_tree

TString cwb_lcuts_tree = TString(gSystem->Getenv("CWB_LCUTS_TREE"))

Definition at line 34 of file cwb_setcuts.C.

◆ cwb_mcuts_tree

TString cwb_mcuts_tree = TString(gSystem->Getenv("CWB_MCUTS_TREE"))

Definition at line 33 of file cwb_setcuts.C.

◆ cwb_merge_label

cwb_merge_label = TString(gSystem->Getenv("CWB_MERGE_LABEL"))

Definition at line 29 of file cwb_setcuts.C.

◆ cwb_setcuts_options

TString cwb_setcuts_options = TString(gSystem->Getenv("CWB_SETCUTS_OPTIONS"))

Definition at line 35 of file cwb_setcuts.C.

◆ cwb_tcuts_tree

TString cwb_tcuts_tree = ""

Definition at line 41 of file cwb_setcuts.C.

◆ cwb_unique_evt

TString cwb_unique_evt = "false"

Definition at line 42 of file cwb_setcuts.C.

◆ cwb_wcuts_tree

TString cwb_wcuts_tree = TString(gSystem->Getenv("CWB_WCUTS_TREE"))

Definition at line 31 of file cwb_setcuts.C.

◆ else

else
Initial value:
{
vector<TString> jobFileList

Definition at line 202 of file cwb_setcuts.C.

◆ entry

double* entry = jtree.GetV1()

Definition at line 224 of file cwb_setcuts.C.

◆ estat

int estat
Initial value:
{
CWB::Toolbox TB

Definition at line 21 of file cwb_setcuts.C.

◆ Exit

cout<< "Number of jobs in the merged lists : " << jobList.size() << endl; TTree jtree("jtree","jtree"); int run; jtree.Branch("run",&run,"run/I"); TString *jfname = new TString(); jtree.Branch("jfname", &jfname); for(int i=0;i<jobList.size();i++) {run=jobList[i]; *jfname=jobFileList[i]; jtree.Fill();} TTreeFormula formula("trCuts", cwb_jcuts_tree.Data(), &jtree); int err = formula.Compile(cwb_jcuts_tree.Data()); if(err) { cout << "cwb_setcuts.C - wrong input cuts " << cwb_jcuts_tree << endl << endl; gSystem-> Exit(1)

Definition at line 219 of file cwb_setcuts.C.

◆ flags

Long_t flags

Definition at line 26 of file cwb_setcuts.C.

◆ id

Long_t id

Definition at line 26 of file cwb_setcuts.C.

◆ ilstfname

char ilstfname[1024]

Definition at line 188 of file cwb_setcuts.C.

◆ jobList

vector<int> jobList = CWB::Toolbox::getMergeJobList(mdir+"/"+ilstfname,jobFileList)

Definition at line 187 of file cwb_setcuts.C.

◆ jsel

int jsel = jtree.GetSelectedRows()

Definition at line 223 of file cwb_setcuts.C.

◆ mdir

Definition at line 37 of file cwb_setcuts.C.

◆ mt

Long_t mt

Definition at line 26 of file cwb_setcuts.C.

◆ nsel

int nsel = CWB::Toolbox::setCuts(iwfname,mdir,mdir,"waveburst",cwb_wcuts,cwb_cuts_label)

Definition at line 237 of file cwb_setcuts.C.

◆ olstfname

TString olstfname = owfname

Definition at line 190 of file cwb_setcuts.C.

◆ owfname

TString owfname = mdir+"/"+iwfname

Definition at line 183 of file cwb_setcuts.C.

◆ size

Long_t size

Definition at line 26 of file cwb_setcuts.C.