AliPhysics  0454c7b (0454c7b)
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  // No need to continue configuration if event is not processed
97  if ( !task->GetAnalysisMaker()->IsEventProcessed() ) return task ;
98 
99  TList * anaList = task->GetAnalysisMaker()->GetListOfAnalysisContainers();
100  printf("TList name: %s\n",anaList->GetName());
101 
102  // Configure the different analysis
103  //
104  Float_t rMin[] = {-1,0.05,0.1};
105 
106  // 3 exclusion of isolation cone options, no cut and 2 cuts
107  for(Int_t irmin = 0; irmin < 3; irmin++)
108  {
109  // Add this string to deacticate the correlation without isolation
110  // and other histograms in the Photon and Pi0 selection task
111  if(irmin == 1 ) analysisString+="_MultiIso";
112 
113  // Test 3 track matching options (no track mathing)
114  for(Int_t itm = 0; itm < 3; itm++)
115  {
116 
117  TString histoString = Form("TM%d",itm);
118  if ( irmin > 0 ) histoString+=Form("_Rmin%1.2f",rMin[irmin]);
119 
120 
122  ( anaList, calorimeter, simulation, year, col, analysisString, histoString,
123  shshMax, isoCone, rMin[irmin], isoPtTh, isoMethod, isoContent,
124  leading, itm, mixOn, printSettings, debug);
125  }
126  }
127 
128  // Execute some control task only
130  ( anaList, calorimeter, simulation, year, col, "QA_Charged", "",
131  -1, -1, -1, -1, -1, -1,-1,-1,0, printSettings, debug);
132 
133  return task;
134 }
135 
136 
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.