AliPhysics  41af4b0 (41af4b0)
AddTaskGammaHadronCorrelationSelectAnalysis.C
Go to the documentation of this file.
1 
21 // Set includes for compilation
22 
23 #if !defined(__CINT__) || defined(__MAKECINT__)
24 
25 // ROOT
26 #include <TString.h>
27 #include <TSystem.h>
28 #include <TROOT.h>
29 
30 // Analysis
32 #include "AliIsolationCut.h"
33 
34 // Macros
38 #endif
39 
73 (
74  TString calorimeter = "EMCAL", // "DCAL", "PHOS"
75  Bool_t simulation = kFALSE,
76  Int_t year = -1,
77  TString col = "",
78  TString period = "",
79  Int_t rejectEMCTrig = 0,
80  TString clustersArray = "",
81  TString gloCutsString = "",//"Smearing","SPDPileUp"
82  Bool_t calibrate = kFALSE,
83  Bool_t nonLinOn = kFALSE,
84  TString analysisString= "Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged",
85  Float_t shshMax = 0.27,
86  Float_t isoCone = 0.4,
87  Float_t isoConeMin = -1,
88  Float_t isoPtTh = 2,
89  Int_t isoMethod = AliIsolationCut::kSumPtIC,
91  Int_t leading = 0,
92  Int_t tm = 2,
93  Int_t minCen = -1,
94  Int_t maxCen = -1,
95  Bool_t mixOn = kTRUE,
96  TString outputfile = "",
97  Bool_t printSettings = kFALSE,
98  Int_t debug = 0,
99  const char *trigSuffix = "EMC7"
100 )
101 {
102  printf("AddTaskGammaHadronCorrelationSelectAnalysis::Start configuration\n");
103 
104 #if defined(__CINT__)
105 
106  printf("AddTaskGammaHadronCorrelationSelectAnalysis::Load macros\n");
107  // Load macros
108  //
109  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/AddTaskCaloTrackCorrBase.C");
110  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/ConfigureCaloTrackCorrAnalysis.C");
111  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/GetAlienGlobalProductionVariables.C");
112 
113 #endif
114 
115  // First check the ALIEN environment settings
116  //
117  GetAlienGlobalProductionVariables(simulation,col,period,year,kTRUE);
118 
119  // Init base task
120  //
122  (calorimeter, simulation, year, col, period, rejectEMCTrig, clustersArray, gloCutsString,
123  calibrate, nonLinOn, minCen, maxCen, mixOn, outputfile, printSettings, debug, trigSuffix);
124 
125  if ( !task ) return NULL;
126 
127  // No need to continue configuration if event is not processed
128  if ( !task->GetAnalysisMaker()->IsEventProcessed() ) return task ;
129 
130  TList * anaList = task->GetAnalysisMaker()->GetListOfAnalysisContainers();
131  printf("TList name: %s\n",anaList->GetName());
132 
133  // Configure the sub-analysis tasks
134  //
136  ( anaList, calorimeter, simulation, year, col, analysisString, "",
137  shshMax, isoCone, isoConeMin, isoPtTh, isoMethod, isoContent,
138  leading, tm, mixOn, printSettings, debug);
139 
140  printf("AddTaskGammaHadronCorrelationSelectAnalysis::End configuration\n");
141 
142  return task;
143 }
144 
145 
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.
Get year, collision type, mc/data type and period from alien global variables.