]>
Commit | Line | Data |
---|---|---|
a40d9f03 | 1 | // Macro to print the values stored in the OCDB with AliEMCALRecParam |
2 | // These parameters are used during reconstruction | |
3 | ||
4 | // Author: Gustavo Conesa (INFN-LNF) | |
5 | ||
6 | ||
a0945e6f | 7 | void PrintEMCALRecParam(char * file = "$ALICE_ROOT/OCDB/EMCAL/Calib/RecoParam/Run0_999999999_v0_s0.root") |
8 | { | |
a40d9f03 | 9 | |
10 | TFile * f = new TFile(file,"READ"); | |
11 | ||
12 | AliCDBEntry * cdb = (AliCDBEntry*) f->Get("AliCDBEntry"); | |
13 | TObjArray * array = (TObjArray *) cdb->GetObject(); | |
14 | ||
15 | //Loop on the different event species and print parameters. | |
16 | Int_t nSpecies = array->GetEntriesFast(); | |
17 | for(Int_t i = 0; i < nSpecies ; i++){ | |
18 | ||
19 | AliEMCALRecParam * rparam = array->At(i); | |
20 | ||
21 | cout<<"================================================"<<endl; | |
22 | ||
23 | cout<<"============== "<<rparam->GetName()<<" ==============="<<endl; | |
24 | ||
25 | cout<<"================================================"<<endl; | |
26 | ||
a0945e6f | 27 | //rparam->Print("reco");//Print only clusterizer parameters |
ee08edde | 28 | //rparam->Print("pid");//Print only pid parameters |
29 | //rparam->Print("raw");//Print only raw digitization parameters | |
a0945e6f | 30 | rparam->Print("");// Print all |
a40d9f03 | 31 | |
32 | ||
33 | } | |
34 | ||
35 | ||
36 | ||
37 | ||
a435f763 | 38 | } |