1 #define CHUNK_FILE_LIST "Chunk_List.txt"
2 #define MACRO_READ_CHUNK "ReadChunkList.C"
3 #define CHUNK_MAX_SIZE 100
5 #define OFILE_CHUNK_CUTS "Chunks_Cuts.hh"
12 char cwb_config_env[1024] =
"";
13 if(gSystem->Getenv(
"CWB_CONFIG")!=NULL) {
14 strcpy(cwb_config_env,TString(gSystem->Getenv(
"CWB_CONFIG")).Data());
17 char chunk_file_list[1024];
19 cout << chunk_file_list << endl;
21 char macro_read_chunk_path[1024];
24 CWB::Toolbox::checkFile(macro_read_chunk_path);
27 gROOT->LoadMacro(gSystem->ExpandPathName(macro_read_chunk_path));
39 cout <<
"output file list : " << ofile << endl;
42 out.open(ofile,ios::out);
47 sprintf(tcut,
"TCut O2_K%02d_cut(\"O2_K%02d_cut\",\"time[0]>%d && time[0]<=%d\");",chunk[k],chunk[k],start[k],stop[k]);
58 sprintf(tcut,
"TCut O2_K%02d_cut(\"O2_K%02d_cut\",\"time[0]>%d && time[0]<=%d\");",99,99,start[0],stop[nChunks-1]);
double start[CHUNK_MAX_SIZE]
int ReadChunkList(TString ifile, int *chunk=NULL, double *start=NULL, double *stop=NULL)
int chunk[CHUNK_MAX_SIZE]
void CreateChunkCuts(TString run)
double stop[CHUNK_MAX_SIZE]
sprintf(ofile,"/home/waveburst/O1/CHUNKS/O1_Chunks_Cuts.hh")