]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/totEt/macros/ConfigEtReconstructed.C
fix warnings
[u/mrichter/AliRoot.git] / PWGLF / totEt / macros / ConfigEtReconstructed.C
1
2 AliAnalysisEtReconstructed * ConfigEtReconstructed(Bool_t EMCAL = true, Bool_t DETAIL = false){
3   gInterpreter->GenerateDictionary("std::map<int, AliPhysicsSelection*>", "AliPhysicsSelection.h;map")  ;
4   gInterpreter->GenerateDictionary("std::pair<int, AliPhysicsSelection*>", "AliPhysicsSelection.h;utility");
5   //Bool_t EMCAL = true;
6   TFile *infile = new TFile("corrections.root");
7   corrections = (AliAnalysisHadEtCorrections *)infile->Get("hadCorrectionEMCAL");
8   cout<<"Setting the AliAnalysisHadEtCorrections to "<<corrections->GetName()<<endl;
9   cout<<"eta cut is "<<corrections->GetEtaCut()<<endl;
10
11   if(EMCAL){
12     if(DETAIL){
13       AliAnalysisEmEtReconstructed *totEtReco = new AliAnalysisEmEtReconstructed();
14       totEtReco->SetDataSet(2010);
15       //Set corrections...
16       totEtReco->SetCorrections(corrections);    
17       totEtReco->Init();
18       return totEtReco;
19     }
20     else{
21       AliAnalysisEtReconstructedEmcal *totEtReco = new AliAnalysisEtReconstructedEmcal();
22       totEtReco->SetDataSet(2010);
23       //Set corrections...
24       totEtReco->SetCorrections(corrections);    
25       totEtReco->Init();
26       return totEtReco;
27     }
28   }
29   else{
30     AliAnalysisEtReconstructedPhos *totEtReco = new AliAnalysisEtReconstructedPhos();
31     totEtReco->SetDataSet(2010);
32     //Set corrections...
33     totEtReco->SetCorrections(corrections);    
34     totEtReco->Init();
35     return totEtReco;
36   }
37 }
38