]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/totEt/macros/ConfigEtReconstructed.C
New MFT analysis tools
[u/mrichter/AliRoot.git] / PWGLF / totEt / macros / ConfigEtReconstructed.C
CommitLineData
964c8159 1
8128f09a 2AliAnalysisEtReconstructed * 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
964c8159 11 if(EMCAL){
8128f09a 12 if(DETAIL){
13 AliAnalysisEmEtReconstructed *totEtReco = new AliAnalysisEmEtReconstructed();
6a84f3df 14 totEtReco->SetDataSet(20100);
8128f09a 15 //Set corrections...
16 totEtReco->SetCorrections(corrections);
17 totEtReco->Init();
18 return totEtReco;
19 }
20 else{
21 AliAnalysisEtReconstructedEmcal *totEtReco = new AliAnalysisEtReconstructedEmcal();
6a84f3df 22 totEtReco->SetDataSet(20100);
8128f09a 23 //Set corrections...
24 totEtReco->SetCorrections(corrections);
25 totEtReco->Init();
26 return totEtReco;
27 }
964c8159 28 }
29 else{
30 AliAnalysisEtReconstructedPhos *totEtReco = new AliAnalysisEtReconstructedPhos();
6a84f3df 31 totEtReco->SetDataSet(20100);
964c8159 32 //Set corrections...
8128f09a 33 totEtReco->SetCorrections(corrections);
964c8159 34 totEtReco->Init();
35 return totEtReco;
36 }
37}
38