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