AliPhysics  c7b8e89 (c7b8e89)
AddTaskMultipleTrackCutIsoConeAnalysis.C
Go to the documentation of this file.
1 
13 // Set includes for compilation
14 
15 #if !defined(__CINT__) || defined(__MAKECINT__)
16 
17 // Root
18 #include <TString.h>
19 #include <TSystem.h>
20 #include <TROOT.h>
21 
22 // Analysis
23 #include "AliIsolationCut.h"
25 
26 // Macros
30 
31 #endif
32 
64 (
65  TString calorimeter = "EMCAL", // "DCAL", "PHOS"
66  Bool_t simulation = kFALSE,
67  Int_t year = -1,
68  TString col = "",
69  TString period = "",
70  Int_t rejectEMCTrig = 0,
71  TString clustersArray = "",
72  TString gloCutsString = "",
73  Bool_t calibrate = kFALSE,
74  Bool_t nonLinOn = kFALSE,
75  TString analysisString= "Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged",
76  Float_t shshMax = 0.27,
77  Float_t isoCone = 0.4,
78  Float_t isoPtTh = 2,
79  Int_t isoMethod = AliIsolationCut::kSumPtIC,
81  Int_t leading = 0,
82  Int_t minCen = -1,
83  Int_t maxCen = -1,
84  Bool_t mixOn = kTRUE,
85  TString outputfile = "",
86  Bool_t printSettings = kFALSE,
87  Int_t debug = 0,
88  const char *trigSuffix = "EMC7"
89 )
90 {
91  printf("AddTaskMultipleTrackCutIsoConeAnalysis::Start configuration\n");
92 
93 #if defined(__CINT__)
94 
95  printf("AddTaskMultipleTrackCutIsoConeAnalysis::Load macros\n");
96  // Load macros
97  //
98  // Load macros
99  //
100  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/AddTaskCaloTrackCorrBase.C");
101  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/ConfigureCaloTrackCorrAnalysis.C");
102  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/GetAlienGlobalProductionVariables.C");
103 
104 #endif
105 
106  // First check the ALIEN environment settings
107  //
108  GetAlienGlobalProductionVariables(simulation,col,period,year,kTRUE);
109 
110  // Init base task
111  //
113  (calorimeter, simulation, year, col, period, rejectEMCTrig, clustersArray, gloCutsString,
114  calibrate, nonLinOn, minCen, maxCen, mixOn, outputfile, printSettings, debug, trigSuffix);
115 
116  if ( !task ) return NULL;
117 
118  // No need to continue configuration if event is not processed
119  if ( !task->GetAnalysisMaker()->IsEventProcessed() ) return task ;
120 
121  TList * anaList = task->GetAnalysisMaker()->GetListOfAnalysisContainers();
122  printf("TList name: %s\n",anaList->GetName());
123 
124  // Configure the different analysis
125  //
126  Float_t rMin[] = {-1,0.05,0.1};
127 
128  // 3 exclusion of isolation cone options, no cut and 2 cuts
129  for(Int_t irmin = 0; irmin < 3; irmin++)
130  {
131  // Add this string to deacticate the correlation without isolation
132  // and other histograms in the Photon and Pi0 selection task
133  if(irmin == 1 ) analysisString+="_MultiIso";
134 
135  // Test 3 track matching options (no track mathing)
136  for(Int_t itm = 0; itm < 3; itm++)
137  {
138 
139  TString histoString = Form("TM%d",itm);
140  if ( irmin > 0 ) histoString+=Form("_Rmin%1.2f",rMin[irmin]);
141 
142 
144  ( anaList, calorimeter, simulation, year, col, analysisString, histoString,
145  shshMax, isoCone, rMin[irmin], isoPtTh, isoMethod, isoContent,
146  leading, itm, mixOn, printSettings, debug);
147  }
148  }
149 
150  // Execute some control task only
152  ( anaList, calorimeter, simulation, year, col, "QA_Charged", "",
153  -1, -1, -1, -1, -1, -1,-1,-1,0, printSettings, debug);
154 
155  printf("AddTaskMultipleTrackCutIsoConeAnalysis::End configuration\n");
156 
157  return task;
158 }
159 
160 
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 * AddTaskMultipleTrackCutIsoConeAnalysis(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 isoPtTh=2, Int_t isoMethod=AliIsolationCut::kSumPtIC, Int_t isoContent=AliIsolationCut::kNeutralAndCharged, Int_t leading=0, 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.