Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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++)
 
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

jobList clear ( )
jtree Draw ( "Entry$"  ,
cwb_jcuts_tree.  Data(),
"goff"   
)
exit ( )
for ( )

Definition at line 209 of file cwb_setcuts.C.

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

Definition at line 25 of file cwb_setcuts.C.

if ( cwb_tcuts_tree!  = "")

Definition at line 43 of file cwb_setcuts.C.

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

Definition at line 69 of file cwb_setcuts.C.

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

Definition at line 74 of file cwb_setcuts.C.

if ( cwb_cuts_label.  Contains".")

Definition at line 79 of file cwb_setcuts.C.

if ( cwb_wcuts_tree.  Contains"run")

Definition at line 85 of file cwb_setcuts.C.

if ( cwb_wcuts_tree.  Contains"slag")

Definition at line 91 of file cwb_setcuts.C.

if ( cwb_wcuts_tree.  Contains"lag")

Definition at line 97 of file cwb_setcuts.C.

if ( TString cwb_wcuts =  cwb_wcuts_tree = ="")

Definition at line 102 of file cwb_setcuts.C.

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

Definition at line 157 of file cwb_setcuts.C.

if ( estat  = =0)

Definition at line 179 of file cwb_setcuts.C.

if ( nsel<=  0)

Definition at line 220 of file cwb_setcuts.C.

if ( simulation)

Definition at line 247 of file cwb_setcuts.C.

olstfname Remove ( ,
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() 
)

Variable Documentation

char cmd[1024]

Definition at line 9 of file cwb_setcuts.C.

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

Definition at line 14 of file cwb_setcuts.C.

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

Definition at line 12 of file cwb_setcuts.C.

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

Definition at line 16 of file cwb_setcuts.C.

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

Definition at line 15 of file cwb_setcuts.C.

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

Definition at line 11 of file cwb_setcuts.C.

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

Definition at line 17 of file cwb_setcuts.C.

TString cwb_tcuts_tree = ""

Definition at line 23 of file cwb_setcuts.C.

TString cwb_unique_evt = "false"

Definition at line 24 of file cwb_setcuts.C.

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

Definition at line 13 of file cwb_setcuts.C.

else
Initial value:
{
vector<TString> jobFileList

Definition at line 184 of file cwb_setcuts.C.

double* entry = jtree.GetV1()

Definition at line 206 of file cwb_setcuts.C.

int estat
Initial value:
{
CWB::Toolbox TB
Definition: ComputeSNR.C:5

Definition at line 3 of file cwb_setcuts.C.

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 201 of file cwb_setcuts.C.

Long_t flags

Definition at line 8 of file cwb_setcuts.C.

Long_t id

Definition at line 8 of file cwb_setcuts.C.

char ilstfname[1024]

Definition at line 170 of file cwb_setcuts.C.

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

Definition at line 169 of file cwb_setcuts.C.

int jsel = jtree.GetSelectedRows()

Definition at line 205 of file cwb_setcuts.C.

Definition at line 19 of file cwb_setcuts.C.

Long_t mt

Definition at line 8 of file cwb_setcuts.C.

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

Definition at line 219 of file cwb_setcuts.C.

TString olstfname = owfname

Definition at line 172 of file cwb_setcuts.C.

TString owfname = mdir+"/"+iwfname

Definition at line 165 of file cwb_setcuts.C.

Long_t size

Definition at line 8 of file cwb_setcuts.C.