AliPhysics  59e0e03 (59e0e03)
AddTaskGammaHadronCorrelationSelectAnalysis.C
Go to the documentation of this file.
1 
21 // Set includes for compilation
22 
23 #if !defined(__CINT__) || defined(__MAKECINT__)
24 
25 #include <TString.h>
26 #include <TSystem.h>
27 #include <TROOT.h>
28 
29 #include <TString.h>
30 #include <TSystem.h>
31 #include <TROOT.h>
32 
36 
37 #endif
38 
72 (
73  TString calorimeter = "EMCAL", // "DCAL", "PHOS"
74  Bool_t simulation = kFALSE,
75  Int_t year = -1,
76  TString col = "",
77  TString period = "",
78  Int_t rejectEMCTrig = 0,
79  TString clustersArray = "",
80  TString gloCutsString = "",//"Smearing","SPDPileUp"
81  Bool_t calibrate = kFALSE,
82  Bool_t nonLinOn = kFALSE,
83  TString analysisString= "Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged",
84  Float_t shshMax = 0.27,
85  Float_t isoCone = 0.4,
86  Float_t isoConeMin = -1,
87  Float_t isoPtTh = 2,
88  Int_t isoMethod = AliIsolationCut::kSumPtIC,
90  Int_t leading = 0,
91  Int_t tm = 2,
92  Int_t minCen = -1,
93  Int_t maxCen = -1,
94  Bool_t mixOn = kTRUE,
95  TString outputfile = "",
96  Bool_t printSettings = kFALSE,
97  Int_t debug = 0,
98  const char *trigSuffix = "EMC7"
99 )
100 {
101  // Load macros
102  //
103  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/AddTaskCaloTrackCorrBase.C");
104  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/ConfigureCaloTrackCorrAnalysis.C");
105  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/GetAlienGlobalProductionVariables.C");
106 
107  // First check the ALIEN environment settings
108  //
109  GetAlienGlobalProductionVariables(simulation,col,period,year,kTRUE);
110 
111  // Init base task
112  //
114  (calorimeter, simulation, year, col, period, rejectEMCTrig, clustersArray, gloCutsString,
115  calibrate, nonLinOn, minCen, maxCen, mixOn, outputfile, printSettings, debug, trigSuffix);
116 
117  if ( !task ) return NULL;
118 
119  // No need to continue configuration if event is not processed
120  if ( !task->GetAnalysisMaker()->IsEventProcessed() ) return task ;
121 
122  TList * anaList = task->GetAnalysisMaker()->GetListOfAnalysisContainers();
123  printf("TList name: %s\n",anaList->GetName());
124 
125  // Configure the sub-analysis tasks
126  //
128  ( anaList, calorimeter, simulation, year, col, analysisString, "",
129  shshMax, isoCone, isoConeMin, isoPtTh, isoMethod, isoContent,
130  leading, tm, mixOn, printSettings, debug);
131 
132  return task;
133 }
134 
135 
void ConfigureCaloTrackCorrAnalysis(TList *anaList=0x0, TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=2011, TString col="pp", TString analysisString="Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged", TString histoString="", Float_t shshMax=0.27, Float_t isoCone=0.4, Float_t isoConeMin=-1, Float_t isoPtTh=2, Int_t isoMethod=AliIsolationCut::kSumPtIC, Int_t isoContent=AliIsolationCut::kNeutralAndCharged, Int_t leading=0, Int_t tm=2, Bool_t mixOn=kTRUE, Bool_t printSettings=kFALSE, Int_t debug=0)
AliAnalysisTaskCaloTrackCorrelation * AddTaskGammaHadronCorrelationSelectAnalysis(TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=-1, TString col="", TString period="", Int_t rejectEMCTrig=0, TString clustersArray="", TString gloCutsString="", Bool_t calibrate=kFALSE, Bool_t nonLinOn=kFALSE, TString analysisString="Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged", Float_t shshMax=0.27, Float_t isoCone=0.4, Float_t isoConeMin=-1, Float_t isoPtTh=2, Int_t isoMethod=AliIsolationCut::kSumPtIC, Int_t isoContent=AliIsolationCut::kNeutralAndCharged, Int_t leading=0, Int_t tm=2, Int_t minCen=-1, Int_t maxCen=-1, Bool_t mixOn=kTRUE, TString outputfile="", Bool_t printSettings=kFALSE, Int_t debug=0, const char *trigSuffix="EMC7")
Configuration of gamma-hadron and pi0-hadron + isolation, correlation analysis, with option on which ...
const TString calorimeter
Definition: anaM.C:36
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void GetAlienGlobalProductionVariables(Bool_t &simulation, TString &col, TString &period, Int_t &year, Bool_t print=kFALSE)
Main class conecting the CaloTrackCorrelations package and Analysis Frame.
AliAnalysisTaskCaloTrackCorrelation * AddTaskCaloTrackCorrBase(TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=-1, TString col="", TString period="", Int_t rejectEMCTrig=0, TString clustersArray="", TString cutsString="", Bool_t calibrate=kFALSE, Bool_t nonLinOn=kFALSE, Int_t minCen=-1, Int_t maxCen=-1, Bool_t mixOn=kTRUE, TString outputfile="", Bool_t printSettings=kFALSE, Int_t debug=0, const char *trigSuffix="EMC7")
bool Bool_t
Definition: External.C:53
Configuration AliAnalysisTaskCaloTrackCorrelation base functionalities.