1 /********************************************************************
3 Bad Chunks Checking code, 15th April 2013
5 --- Here you just create an array of TStrings with dataset names and
6 this function will automatically compile the checking method and process
7 all the datasets in the TString array.
9 ********************************************************************/
11 void ProcessDatasets(){
12 cout<<"----------------------------------------------------"<<endl;
13 cout<<" ---> Compiling needed class, please wait... "<<endl;
15 Int_t workedornot = gSystem->CompileMacro("ProcessBadChunks02.C","-kfo");
16 cout<<"----------------------------------------------------"<<endl;
18 if( workedornot == 0 ){
19 cout<<"*************************************"<<endl;
20 cout<<" ProcessBadChunks02.C compilation failed! "<<endl;
21 cout<<"*************************************"<<endl;
26 gSystem->Load("ProcessBadChunks02_C");
29 //Process Datasets, dataset list
30 TString lDatasets[] = {
49 Long_t lNDatasets = sizeof(lDatasets)/sizeof(lDatasets[0]);
50 cout<<"Will process this many datasets: "<<lNDatasets<<endl;
51 cout<<"---> Output lists will be stored in the \"output\" directory!"<<endl;
53 cout<<"----------------------------------------------------"<<endl;
55 for(Int_t lInd = 0; lInd < lNDatasets; lInd++){
56 cout<<"Process dataset: "<<lDatasets[lInd]<<endl;
57 ProcessBadChunks02( lDatasets[lInd] );