AliPhysics  1811c8f (1811c8f)
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 
57 (
58  TString calorimeter = "EMCAL", // "DCAL", "PHOS"
59  Bool_t simulation = kFALSE,
60  Int_t year = 2011,
61  TString col = "pp",
62  Int_t rejectEMCTrig = 0,
63  TString clustersArray = "",
64  TString gloCutsString = "",
65  Bool_t calibrate = kFALSE,
66  Bool_t nonLinOn = kFALSE,
67  TString analysisString= "Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged",
68  Float_t shshMax = 0.27,
69  Float_t isoCone = 0.4,
70  Float_t isoPtTh = 2,
71  Int_t isoMethod = AliIsolationCut::kSumPtIC,
73  Int_t leading = 0,
74  Int_t minCen = -1,
75  Int_t maxCen = -1,
76  Bool_t mixOn = kTRUE,
77  TString outputfile = "",
78  Bool_t printSettings = kFALSE,
79  Int_t debug = 0,
80  const char *trigSuffix = "EMC7"
81 )
82 {
83  // Load macros
84  //
85  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/AddTaskCaloTrackCorrBase.C");
86  gROOT->LoadMacro("$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/ConfigureCaloTrackCorrAnalysis.C");
87 
88  // Init base task
89  //
91  (calorimeter, simulation, year, col, rejectEMCTrig, clustersArray, gloCutsString,
92  calibrate, nonLinOn, minCen, maxCen, mixOn, outputfile, printSettings, debug, trigSuffix);
93 
94  if ( !task ) return NULL;
95 
96  TList * anaList = task->GetAnalysisMaker()->GetListOfAnalysisContainers();
97  printf("TList name: %s\n",anaList->GetName());
98 
99  // Configure the different analysis
100  //
101  Float_t rMin[] = {-1,0.05,0.1};
102 
103  // 3 exclusion of isolation cone options, no cut and 2 cuts
104  for(Int_t irmin = 0; irmin < 3; irmin++)
105  {
106  // Add this string to deacticate the correlation without isolation
107  // and other histograms in the Photon and Pi0 selection task
108  if(irmin == 1 ) analysisString+="_MultiIso";
109 
110  // Test 3 track matching options (no track mathing)
111  for(Int_t itm = 0; itm < 3; itm++)
112  {
113 
114  TString histoString = Form("TM%d",itm);
115  if ( irmin > 0 ) histoString+=Form("_Rmin%1.2f",rMin[irmin]);
116 
117 
119  ( anaList, calorimeter, simulation, year, col, analysisString, histoString,
120  shshMax, isoCone, rMin[irmin], isoPtTh, isoMethod, isoContent,
121  leading, itm, mixOn, printSettings, debug);
122  }
123  }
124 
125  // Execute some control task only
127  ( anaList, calorimeter, simulation, year, col, "QA_Charged", "",
128  -1, -1, -1, -1, -1, -1,-1,-1,0, printSettings, debug);
129 
130  return task;
131 }
132 
133 
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)
const int debug
Definition: scanAll.C:15
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
AliAnalysisTaskCaloTrackCorrelation * AddTaskCaloTrackCorrBase(TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=2011, TString col="pp", 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")
Main class conecting the CaloTrackCorrelations package and Analysis Frame.
AliAnalysisTaskCaloTrackCorrelation * AddTaskMultipleTrackCutIsoConeAnalysis(TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=2011, TString col="pp", 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")
bool Bool_t
Definition: External.C:53
Configuration AliAnalysisTaskCaloTrackCorrelation base functionalities.