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