end-of-line normalization
[u/mrichter/AliRoot.git] / ANALYSIS / BadChunkFilter / ProcessDatasets.C
CommitLineData
b8475e5b 1/********************************************************************
2
3 Bad Chunks Checking code, 15th April 2013
4
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.
8
9 ********************************************************************/
10
11void ProcessDatasets(){
12 cout<<"----------------------------------------------------"<<endl;
13 cout<<" ---> Compiling needed class, please wait... "<<endl;
14 //Compile Macro
15 Int_t workedornot = gSystem->CompileMacro("ProcessBadChunks02.C","-kfo");
16 cout<<"----------------------------------------------------"<<endl;
17 cout<<endl;
18 if( workedornot == 0 ){
19 cout<<"*************************************"<<endl;
20 cout<<" ProcessBadChunks02.C compilation failed! "<<endl;
21 cout<<"*************************************"<<endl;
22 return;
23 }
24
25 //Load Class
26 gSystem->Load("ProcessBadChunks02_C.so");
27
28
29 //Process Datasets, dataset list
30 TString lDatasets[] = {
31 "LHC11a10b_plus",
32 "LHC10a13",
33 "LHC10b4",
34 "LHC10b5",
35 "LHC10d5",
36 "LHC11a2h",
37 "LHC11a2j",
38 "LHC11a6a",
39 "LHC11a6b",
40 "LHC11b2",
41 "LHC11b5",
42 "LHC11b6",
43 "LHC11b10a",
44 "LHC11b10b",
45 "LHC11b10c",
46 "LHC12a13a",
47 "LHC12a13b"
48 };
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;
52 cout<<endl;
53 cout<<"----------------------------------------------------"<<endl;
54
55 for(Int_t lInd = 0; lInd < lNDatasets; lInd++){
56 cout<<"Process dataset: "<<lDatasets[lInd]<<endl;
57 ProcessBadChunks02( lDatasets[lInd] );
58 }
59}