ROOT logo

AliAnalysisEtReconstructed * ConfigEtReconstructed(Bool_t EMCAL = true, Bool_t DETAIL = false){
  gInterpreter->GenerateDictionary("std::map<int, AliPhysicsSelection*>", "AliPhysicsSelection.h;map")  ;
  gInterpreter->GenerateDictionary("std::pair<int, AliPhysicsSelection*>", "AliPhysicsSelection.h;utility");
  //Bool_t EMCAL = true;
  TFile *infile = new TFile("corrections.root");
  corrections = (AliAnalysisHadEtCorrections *)infile->Get("hadCorrectionEMCAL");
  cout<<"Setting the AliAnalysisHadEtCorrections to "<<corrections->GetName()<<endl;
  cout<<"eta cut is "<<corrections->GetEtaCut()<<endl;

  if(EMCAL){
    if(DETAIL){
      AliAnalysisEmEtReconstructed *totEtReco = new AliAnalysisEmEtReconstructed();
      totEtReco->SetDataSet(20100);
      //Set corrections...
      totEtReco->SetCorrections(corrections);    
      totEtReco->Init();
      return totEtReco;
    }
    else{
      AliAnalysisEtReconstructedEmcal *totEtReco = new AliAnalysisEtReconstructedEmcal();
      totEtReco->SetDataSet(20100);
      //Set corrections...
      totEtReco->SetCorrections(corrections);    
      totEtReco->Init();
      return totEtReco;
    }
  }
  else{
    AliAnalysisEtReconstructedPhos *totEtReco = new AliAnalysisEtReconstructedPhos();
    totEtReco->SetDataSet(20100);
    //Set corrections...
    totEtReco->SetCorrections(corrections);    
    totEtReco->Init();
    return totEtReco;
  }
}

 ConfigEtReconstructed.C:1
 ConfigEtReconstructed.C:2
 ConfigEtReconstructed.C:3
 ConfigEtReconstructed.C:4
 ConfigEtReconstructed.C:5
 ConfigEtReconstructed.C:6
 ConfigEtReconstructed.C:7
 ConfigEtReconstructed.C:8
 ConfigEtReconstructed.C:9
 ConfigEtReconstructed.C:10
 ConfigEtReconstructed.C:11
 ConfigEtReconstructed.C:12
 ConfigEtReconstructed.C:13
 ConfigEtReconstructed.C:14
 ConfigEtReconstructed.C:15
 ConfigEtReconstructed.C:16
 ConfigEtReconstructed.C:17
 ConfigEtReconstructed.C:18
 ConfigEtReconstructed.C:19
 ConfigEtReconstructed.C:20
 ConfigEtReconstructed.C:21
 ConfigEtReconstructed.C:22
 ConfigEtReconstructed.C:23
 ConfigEtReconstructed.C:24
 ConfigEtReconstructed.C:25
 ConfigEtReconstructed.C:26
 ConfigEtReconstructed.C:27
 ConfigEtReconstructed.C:28
 ConfigEtReconstructed.C:29
 ConfigEtReconstructed.C:30
 ConfigEtReconstructed.C:31
 ConfigEtReconstructed.C:32
 ConfigEtReconstructed.C:33
 ConfigEtReconstructed.C:34
 ConfigEtReconstructed.C:35
 ConfigEtReconstructed.C:36
 ConfigEtReconstructed.C:37
 ConfigEtReconstructed.C:38
 ConfigEtReconstructed.C:39