1 #define CHUNK_FILE_LIST "Chunk_List.txt"
2 #define MACRO_READ_CHUNK "ReadChunkList.C"
3 #define CHUNK_MAX_SIZE 100
10 char cwb_config_env[1024] =
"";
11 if(gSystem->Getenv(
"CWB_CONFIG")!=NULL) {
12 strcpy(cwb_config_env,TString(gSystem->Getenv(
"CWB_CONFIG")).Data());
15 char chunk_file_list[1024];
17 cout << chunk_file_list << endl;
19 char macro_read_chunk_path[1024];
22 CWB::Toolbox::checkFile(macro_read_chunk_path);
25 gROOT->LoadMacro(gSystem->ExpandPathName(macro_read_chunk_path));
37 sprintf(ofile,
"%s/%s/CHUNKS/K%02d.period",cwb_config_env,run.Data(),chunk[k]);
41 out.open(ofile,ios::out);
43 out << start[k] <<
"\t" << stop[k] << endl;
47 cout << start[k] <<
"\t" << stop[k] << endl;
50 cout <<
"output file list : " << ofile << endl;
54 sprintf(ofile,
"%s/%s/CHUNKS/K%02d.period",cwb_config_env,run.Data(),99);
57 out.open(ofile,ios::out);
59 out << 0 <<
"\t" << 2147483647 << endl;
63 cout << 0 <<
"\t" << 2147483647 << endl;
65 cout <<
"output file list : " << ofile << endl;
int ReadChunkList(TString ifile, int *chunk=NULL, double *start=NULL, double *stop=NULL)
sprintf(tag,"wave_%s", data_label)
double stop[CHUNK_MAX_SIZE]
int chunk[CHUNK_MAX_SIZE]
double start[CHUNK_MAX_SIZE]
void CreateChunkFiles(TString run)