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

Functions

 exit (0)
 
cout<< olstfname<< endl;estat=gSystem-> GetPathInfo (mdir+"/"+ilstfname,&id,&size,&flags,&mt)
 
 if (gSystem->Getenv("CWB_MERGE_LABEL")==NULL)
 
 if (cwb_merge_label[0]!='M')
 
 if (!lcheck.IsDigit())
 
 if (gSystem->Getenv("CWB_SETCHUNK_ID")==NULL)
 
 if (simulation==0)
 
 if (estat==0)
 
lcheck Remove (0, 1)
 
olstfname Remove (0, olstfname.Last('/')+1)
 
owfname ReplaceAll (".root", TString(".K_")+schunk+".root")
 
olstfname ReplaceAll ("wave_","merge_")
 
olstfname ReplaceAll (".root",".lst")
 
 sprintf (iwfname,"wave_%s.%s.root", data_label, cwb_merge_label.Data())
 
 sprintf (schunk,"chunk%d", cwb_setchunk_id)
 
 sprintf (iwfname,"mdc_%s.%s.root", data_label, cwb_merge_label.Data())
 
 sprintf (ilstfname,"merge_%s.%s.lst", data_label, cwb_merge_label.Data())
 

Variables

char cmd [1024]
 
TString cwb_merge_label
 
int cwb_setchunk_id =-1
 
 else
 
Long_t flags
 
Long_t id
 
char ilstfname [1024]
 
vector< intjobList
 
TString mdir = merge_dir
 
Long_t mt
 
TString olstfname = owfname
 
TString owfname = mdir+"/"+iwfname
 
char schunk [32]
 
Long_t size
 

Function Documentation

◆ exit()

exit ( )

◆ GetPathInfo()

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

◆ if() [1/6]

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

Definition at line 29 of file cwb_setchunk.C.

◆ if() [2/6]

if ( cwb_merge_label!  [0] = 'M')

Definition at line 36 of file cwb_setchunk.C.

◆ if() [3/6]

if ( !lcheck.  IsDigit())

Definition at line 43 of file cwb_setchunk.C.

◆ if() [4/6]

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

Definition at line 52 of file cwb_setchunk.C.

◆ if() [5/6]

if ( simulation  = =0)

Definition at line 80 of file cwb_setchunk.C.

◆ if() [6/6]

if ( estat  = =0)

Definition at line 120 of file cwb_setchunk.C.

◆ Remove() [1/2]

lcheck Remove ( ,
 
)

◆ Remove() [2/2]

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

◆ ReplaceAll() [1/3]

owfname ReplaceAll ( ".root"  ,
TString(".K_")+schunk+".root"   
)

◆ ReplaceAll() [2/3]

olstfname ReplaceAll ( "wave_"  ,
"merge_"   
)

◆ ReplaceAll() [3/3]

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

◆ sprintf() [1/4]

sprintf ( iwfname  ,
"wave_%s.%s.root"  ,
data_label  ,
cwb_merge_label.  Data() 
)

◆ sprintf() [2/4]

sprintf ( schunk  ,
"chunk%d"  ,
cwb_setchunk_id   
)

◆ sprintf() [3/4]

sprintf ( iwfname  ,
"mdc_%s.%s.root"  ,
data_label  ,
cwb_merge_label.  Data() 
)

◆ sprintf() [4/4]

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

Variable Documentation

◆ cmd

char cmd[1024]

Definition at line 24 of file cwb_setchunk.C.

◆ cwb_merge_label

TString cwb_merge_label

Definition at line 28 of file cwb_setchunk.C.

◆ cwb_setchunk_id

int cwb_setchunk_id =-1

Definition at line 51 of file cwb_setchunk.C.

◆ else

else
Initial value:
{
cwb_merge_label=TString(gSystem->Getenv("CWB_MERGE_LABEL"))
TString("c")
TString cwb_merge_label
Definition: cwb_setchunk.C:28

Definition at line 31 of file cwb_setchunk.C.

◆ flags

Long_t flags

Definition at line 21 of file cwb_setchunk.C.

◆ id

Long_t id
Initial value:
{
int estat
int estat

Definition at line 21 of file cwb_setchunk.C.

◆ ilstfname

char ilstfname[1024]

Definition at line 112 of file cwb_setchunk.C.

◆ jobList

vector<int> jobList

Definition at line 111 of file cwb_setchunk.C.

◆ mdir

Definition at line 26 of file cwb_setchunk.C.

◆ mt

Long_t mt

Definition at line 21 of file cwb_setchunk.C.

◆ olstfname

TString olstfname = owfname

Definition at line 114 of file cwb_setchunk.C.

◆ owfname

TString owfname = mdir+"/"+iwfname

Definition at line 73 of file cwb_setchunk.C.

◆ schunk

char schunk

Definition at line 74 of file cwb_setchunk.C.

◆ size

Long_t size

Definition at line 21 of file cwb_setchunk.C.