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

Functions

cout<< "cwb_setifar.C : Number of selected waveburst entries = "<< nsel<< endl;if(cwb_setifar_label=="same") { sprintf(cmd,"/bin/mv %s %s/%s", owfname.Data(), mdir.Data(), iwfname);cout<< cmd<< endl;gSystem-> Exec (cmd)
 
 exit (0)
 
cout<< olstfname<< endl;estat=gSystem-> GetPathInfo (mdir+"/"+ilstfname,&id,&size,&flags,&mt)
 
 if (cwb_setifar_options.Contains("--"))
 
 if (cwb_setifar_mode.BeginsWith("I")) inclusive
 
 if (cwb_setifar_mode.BeginsWith("E")) inclusive
 
 if (cwb_setifar_label=="")
 
 if (cwb_setifar_label.Contains("."))
 
 if (int nsel=CWB::Toolbox::setIFAR(cwb_setifar_tsel=="")
 
 if (estat==0)
 
 if (simulation)
 
 if (!simulation)
 
olstfname Remove (0, olstfname.Last('/')+1)
 
olstfname ReplaceAll ("wave_","merge_")
 
olstfname ReplaceAll (".root",".lst")
 
 sprintf (ilstfname,"merge_%s.%s.lst", data_label, cwb_merge_label.Data())
 
cwb_setifar_mode ToUpper ()
 

Variables

char cmd [1024]
 
 cwb_merge_label = TString(gSystem->Getenv("CWB_MERGE_LABEL"))
 
TString cwb_setifar_file = TString(gSystem->Getenv("CWB_SETIFAR_FILE"))
 
TString cwb_setifar_label = TString(gSystem->Getenv("CWB_SETIFAR_LABEL"))
 
TString cwb_setifar_mode = TString(gSystem->Getenv("CWB_SETIFAR_MODE"))
 
TString cwb_setifar_options = TString(gSystem->Getenv("CWB_SETIFAR_OPTIONS"))
 
TString cwb_setifar_tsel = TString(gSystem->Getenv("CWB_SETIFAR_TSEL"))
 
Long_t flags
 
Long_t id
 
char ilstfname [1024]
 
bool inclusive =true
 
vector< intjobList
 
TString mdir = merge_dir
 
Long_t mt
 
TString olstfname = owfname
 
Long_t size
 

Function Documentation

◆ Exec()

cout<< "cwb_setifar.C : Number of selected waveburst entries = " << nsel << endl; if(cwb_setifar_label=="same") { sprintf(cmd,"/bin/mv %s %s/%s", owfname.Data(), mdir.Data(), iwfname); cout << cmd << endl; gSystem-> Exec ( cmd  )

◆ exit()

exit ( )

◆ GetPathInfo()

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

◆ if() [1/9]

if ( cwb_setifar_options.  Contains"--")

Definition at line 37 of file cwb_setifar.C.

◆ if() [2/9]

if ( cwb_setifar_mode.  BeginsWith"I")

◆ if() [3/9]

if ( cwb_setifar_mode.  BeginsWith"E")

◆ if() [4/9]

if ( cwb_setifar_label  = ="")

Definition at line 163 of file cwb_setifar.C.

◆ if() [5/9]

if ( cwb_setifar_label.  Contains".")

Definition at line 168 of file cwb_setifar.C.

◆ if() [6/9]

if ( int nsel = CWB::Toolbox::setIFAR cwb_setifar_tsel = ="")

Definition at line 173 of file cwb_setifar.C.

◆ if() [7/9]

if ( estat  = =0)

Definition at line 210 of file cwb_setifar.C.

◆ if() [8/9]

if ( simulation  )

Definition at line 217 of file cwb_setifar.C.

◆ if() [9/9]

if ( simulation)

Definition at line 233 of file cwb_setifar.C.

◆ Remove()

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

◆ ReplaceAll() [1/2]

olstfname ReplaceAll ( "wave_"  ,
"merge_"   
)

◆ ReplaceAll() [2/2]

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

◆ sprintf()

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

◆ ToUpper()

cwb_setifar_mode ToUpper ( )

Variable Documentation

◆ cmd

char cmd[1024]

Definition at line 26 of file cwb_setifar.C.

◆ cwb_merge_label

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

Definition at line 28 of file cwb_setifar.C.

◆ cwb_setifar_file

TString cwb_setifar_file = TString(gSystem->Getenv("CWB_SETIFAR_FILE"))

Definition at line 30 of file cwb_setifar.C.

◆ cwb_setifar_label

TString cwb_setifar_label = TString(gSystem->Getenv("CWB_SETIFAR_LABEL"))

Definition at line 31 of file cwb_setifar.C.

◆ cwb_setifar_mode

TString cwb_setifar_mode = TString(gSystem->Getenv("CWB_SETIFAR_MODE"))

Definition at line 32 of file cwb_setifar.C.

◆ cwb_setifar_options

TString cwb_setifar_options = TString(gSystem->Getenv("CWB_SETIFAR_OPTIONS"))

Definition at line 33 of file cwb_setifar.C.

◆ cwb_setifar_tsel

TString cwb_setifar_tsel = TString(gSystem->Getenv("CWB_SETIFAR_TSEL"))

Definition at line 29 of file cwb_setifar.C.

◆ flags

Long_t flags

Definition at line 23 of file cwb_setifar.C.

◆ id

Long_t id
Initial value:
{
int estat
int estat

Definition at line 23 of file cwb_setifar.C.

◆ ilstfname

char ilstfname[1024]

Definition at line 202 of file cwb_setifar.C.

◆ inclusive

bool inclusive =true

Definition at line 157 of file cwb_setifar.C.

◆ jobList

vector<int> jobList

Definition at line 201 of file cwb_setifar.C.

◆ mdir

Definition at line 35 of file cwb_setifar.C.

◆ mt

Long_t mt

Definition at line 23 of file cwb_setifar.C.

◆ olstfname

TString olstfname = owfname

Definition at line 204 of file cwb_setifar.C.

◆ size

Long_t size

Definition at line 23 of file cwb_setifar.C.