AliPhysics  116b2d6 (116b2d6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AddTaskGammaHadronCorrelation.C
Go to the documentation of this file.
1 
20 // Set includes for compilation
21 
22 //#include <TString.h>
23 //#include <TROOT.h>
24 //
25 //#include "AliLog.h"
26 //#include "AliAnalysisTaskCaloTrackCorrelation.h"
27 //#include "AliCaloTrackESDReader.h"
28 //#include "AliCaloTrackAODReader.h"
29 //#include "AliCalorimeterUtils.h"
30 //#include "AliAnaPhoton.h"
31 //#include "AliAnaPi0EbE.h"
32 //#include "AliHistogramRanges.h"
33 //#include "AliAnaParticleIsolation.h"
34 //#include "AliAnaParticleHadronCorrelation.h"
35 //#include "AliAnaChargedParticles.h"
36 //#include "AliAnaCalorimeterQA.h"
37 //#include "AliAnaGeneratorKine.h"
38 //#include "AliAnalysisTaskCaloTrackCorrelation.h"
39 //#include "AliAnaCaloTrackCorrMaker.h"
40 //#include "AliAnalysisManager.h"
41 //#include "AliInputEventHandler.h"
42 //#include "AliVTrack.h"
43 //
45 //
46 //AliCaloTrackReader * ConfigureReader (TString col, Bool_t simulation,
47 // TString clustersArray, Bool_t tender,
48 // TString calorimeter, Bool_t nonLinOn,
49 // TString trigger, Bool_t rejectEMCTrig,
50 // Int_t minCen, Int_t maxCen,
51 // Bool_t mixOn, Bool_t printSettings,
52 // Int_t debug );
53 //AliCalorimeterUtils * ConfigureCaloUtils (TString col, Bool_t simulation,
54 // TString clustersArray, Bool_t tender,
55 // Bool_t nonLinOn, Int_t year,
56 // Bool_t printSettings, Int_t debug );
57 //AliAnaPhoton * ConfigurePhotonAnalysis(TString col, Bool_t simulation,
58 // TString calorimeter, Int_t year, Int_t tm,
59 // Bool_t printSettings, Int_t debug );
60 //AliAnaPi0EbE * ConfigurePi0EbEAnalysis(TString particle, Int_t analysis,
61 // Bool_t useSSIso, Bool_t useAsy,
62 // TString col, Bool_t simulation,
63 // TString calorimeter, Int_t year, Int_t tm,
64 // Bool_t printSettings, Int_t debug );
65 //AliAnaParticleIsolation* ConfigureIsolationAnalysis
66 // (TString particle, Int_t leading,
67 // Int_t partInCone, Int_t thresType,
68 // Float_t cone, Float_t pth, Bool_t multi,
69 // TString col, Bool_t simulation,
70 // TString calorimeter, Int_t year, Int_t tm,
71 // Bool_t printSettings, Int_t debug );
72 //AliAnaParticleHadronCorrelation * ConfigureHadronCorrelationAnalysis
73 // (TString particle, Int_t leading,
74 // Bool_t bIsolated, Float_t shshMax,
75 // Int_t partInCone, Int_t thresType,
76 // Float_t cone, Float_t pth, Bool_t mixOn,
77 // TString col, Bool_t simulation,
78 // TString calorimeter, Int_t year, Int_t tm,
79 // Bool_t printSettings, Int_t debug );
80 //AliAnaChargedParticles* ConfigureChargedAnalysis
81 // (Bool_t simulation, Bool_t printSettings, Int_t debug);
82 //AliAnaCalorimeterQA * ConfigureQAAnalysis (TString col, Bool_t simulation,
83 // TString calorimeter, Int_t year,
84 // Bool_t printSettings, Int_t debug );
85 //AliAnaGeneratorKine* ConfigureGenKineAnalysis(Int_t thresType, Float_t cone, Float_t pth,
86 // TString col, Bool_t simulation,
87 // TString calorimeter, Int_t year,
88 // Bool_t printSettings, Int_t debug );
89 //
90 //void SetAnalysisCommonParameters (AliAnaCaloTrackCorrBaseClass* ana,
91 // TString calorimeter, Int_t year,
92 // TString col, Bool_t simulation,
93 // Bool_t printSettings, Int_t debug);
94 //UInt_t SetTriggerMaskFromName (TString trigger);
95 
97 TString kAnaGammaHadronCorr = "";
98 
130 (
131  TString calorimeter = "EMCAL",
132  Bool_t simulation = kFALSE,
133  Int_t year = 2011,
134  TString col = "pp",
135  TString trigger = "EMC7",
136  Int_t rejectEMCTrig = 0,
137  TString clustersArray = "",
138  Bool_t tender = kFALSE,
139  Bool_t nonLinOn = kFALSE,
140  Float_t shshMax = 0.27,
141  Float_t isoCone = 0.4,
142  Float_t isoPtTh = 0.5,
143  Int_t isoMethod = AliIsolationCut::kPtThresIC,
144  Int_t isoContent = AliIsolationCut::kNeutralAndCharged,
145  Int_t leading = 0,
146  Bool_t tm = kTRUE,
147  Int_t minCen = -1,
148  Int_t maxCen = -1,
149  Bool_t mixOn = kTRUE,
150  Bool_t qaAn = kFALSE,
151  Bool_t chargedAn = kFALSE,
152  TString outputfile = "",
153  Bool_t printSettings = kFALSE,
154  Int_t debug = 0 // Debug level
155 )
156 
157 {
158  // Get the pointer to the existing analysis manager via the static access method.
159 
160  printf("Passed settings:\n calorimeter <%s>, simulation <%d>, year <%d>,\n col <%s>, trigger <%s>, reject EMC <%d>, clustersArray <%s>, tender <%d>, non linearity <%d>\n shshMax <%2.2f>, isoCone <%2.2f>, isoPtTh <%2.2f>, isoMethod <%d>,isoContent <%d>,\n leading <%d>, tm <%d>, minCen <%d>, maxCen <%d>, mixOn <%d>,\n qaAn <%d>, chargedAn <%d>, outputfile <%s>, printSettings <%d>, debug <%d>\n",
161  calorimeter.Data(),simulation,year,col.Data(),trigger.Data(), rejectEMCTrig, clustersArray.Data(),tender, nonLinOn, shshMax,
162  isoCone,isoPtTh,isoMethod,isoContent,leading,tm,
163  minCen,maxCen,mixOn,qaAn,chargedAn,outputfile.Data(),printSettings,debug);
164 
165  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
166  if (!mgr)
167  {
168  ::Error("AddTask", "No analysis manager to connect to.");
169  return NULL;
170  }
171 
172  // Check the analysis type using the event handlers connected to the analysis manager.
173 
174  if (!mgr->GetInputEventHandler())
175  {
176  ::Error("AddTask", "This task requires an input event handler");
177  return NULL;
178  }
179 
180  // Make sure the B field is enabled for track selection, some cuts need it
181  ((AliInputEventHandler*)mgr->GetInputEventHandler())->SetNeedField(kTRUE);
182 
183  // Name for containers
184 
185  //kAnaGammaHadronCorr = Form("%s_Trig%s_Cl%s_TM%d_R%1.1f_Pt%1.1f",calorimeter.Data(), trigger.Data(),kClusterArray.Data(),tm,cone,pth);
186  kAnaGammaHadronCorr = Form("GammaHadron_%s_Trig%s_Col_%s_Year%d_Cl%s_Ten%d_TM%d_M02_%1.2f_IsoParam_C%1.2fPt%1.2fM%dPa%d_Lead%d_Mix%d",
187  calorimeter.Data(),trigger.Data(),col.Data(),year,clustersArray.Data(),tender,
188  tm, shshMax,isoCone,isoPtTh,isoMethod,isoContent,leading,mixOn);
189 
190  if(col=="PbPb" && maxCen>=0) kAnaGammaHadronCorr+=Form("Cen%d_%d",minCen,maxCen);
191 
192  printf("<<<< NAME: %s >>>>>\n",kAnaGammaHadronCorr.Data());
193 
194  // #### Configure analysis ####
195 
197 
198  // General frame setting and configuration
199  maker->SetReader ( ConfigureReader (col,simulation,clustersArray,tender,calorimeter,nonLinOn,trigger,rejectEMCTrig,minCen,maxCen,mixOn,printSettings,debug) );
200  maker->SetCaloUtils( ConfigureCaloUtils(col,simulation,clustersArray,tender,nonLinOn,year, printSettings,debug) );
201 
202  // Analysis tasks setting and configuration
203  Int_t n = 0;//Analysis number, order is important
204 
205  //
206  // Photon analysis
207  //
208  maker->AddAnalysis(ConfigurePhotonAnalysis(col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Photon cluster selection
209 
210 
211  maker->AddAnalysis(ConfigurePi0EbEAnalysis("Pi0" , AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
212  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Pi0 event by event selection, invariant mass and photon tagging from decay
213 
214  maker->AddAnalysis(ConfigurePi0EbEAnalysis("Eta" , AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
215  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Eta event by event selection, invariant mass and photon tagging from decay
216 
217  maker->AddAnalysis(ConfigurePi0EbEAnalysis("Pi0SideBand", AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
218  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Pi0 out of peak event by event selection, and photon tagging from decay
219 
220  maker->AddAnalysis(ConfigurePi0EbEAnalysis("EtaSideBand", AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
221  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Eta out of peak event by event selection, and photon tagging from decay
222 
223 
224  maker->AddAnalysis(ConfigureIsolationAnalysis("Photon", leading, isoContent,isoMethod,isoCone,isoPtTh, kFALSE,
225  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Photon isolation
226 
227 
228  maker->AddAnalysis(ConfigureHadronCorrelationAnalysis("Photon", leading, kFALSE, shshMax, isoContent,isoMethod,isoCone,isoPtTh, mixOn,
229  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Gamma-hadron correlation
230 
231  maker->AddAnalysis(ConfigureHadronCorrelationAnalysis("Photon", leading, kTRUE, shshMax, isoContent,isoMethod,isoCone,isoPtTh, mixOn,
232  col,simulation,calorimeter,year,tm,printSettings,debug) , n++); // Isolated gamma hadron correlation
233 
234  //
235  // Merged pi0 analysis
236  //
237  maker->AddAnalysis(ConfigurePi0EbEAnalysis("Pi0", AliAnaPi0EbE::kSSCalo,kTRUE,kTRUE,
238  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Pi0 event by event selection, cluster splitting
239 
240  maker->AddAnalysis(ConfigureIsolationAnalysis("Pi0SS", leading, isoContent,isoMethod,isoCone,isoPtTh, kFALSE,
241  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Pi0 isolation, cluster splits
242 
243 
244  maker->AddAnalysis(ConfigureHadronCorrelationAnalysis("Pi0SS", leading, kFALSE, shshMax, isoContent,isoMethod,isoCone,isoPtTh, mixOn,
245  col,simulation,calorimeter,year,tm,printSettings,debug), n++); // Pi0-hadron correlation
246 
247  maker->AddAnalysis(ConfigureHadronCorrelationAnalysis("Pi0SS", leading, kTRUE, shshMax, isoContent,isoMethod,isoCone,isoPtTh, mixOn,
248  col,simulation,calorimeter,year,tm,printSettings,debug) , n++); // Isolated pi0-hadron correlation
249 
250  // Check the generated kinematics
251  if(simulation) maker->AddAnalysis(ConfigureGenKineAnalysis(isoMethod,isoCone,isoPtTh,
252  col,simulation,calorimeter,year,printSettings,debug), n++);
253 
254  // Charged analysis
255  if(chargedAn) maker->AddAnalysis(ConfigureChargedAnalysis(simulation,printSettings,debug), n++); // track selection checks
256 
257  // Calo QA
258  if(qaAn) maker->AddAnalysis(ConfigureQAAnalysis(col,simulation,calorimeter,year,printSettings,debug) , n++);
259 
260  maker->SetAnaDebug(debug) ;
261 
262  maker->SwitchOnHistogramsMaker() ;
263  maker->SwitchOnAODsMaker() ;
264 
265  if( simulation || !trigger.Contains("EMC") ) maker->SwitchOffDataControlHistograms();
266 
267  if(simulation)
268  {
269  // Calculate the cross section weights, apply them to all histograms
270  // and fill xsec and trial histo. Sumw2 must be activated.
271  //maker->GetReader()->GetWeightUtils()->SwitchOnMCCrossSectionCalculation();
272  //maker->SwitchOnSumw2Histograms();
273 
274  // For recent productions where the cross sections and trials are not stored in separate file
275  //maker->GetReader()->GetWeightUtils()->SwitchOnMCCrossSectionFromEventHeader() ;
276 
277  // Just fill cross section and trials histograms.
278  maker->GetReader()->GetWeightUtils()->SwitchOnMCCrossSectionHistoFill();
279 
280  // Add control histogram with pT hard to control aplication of weights
281  maker->SwitchOnPtHardHistogram();
282  }
283 
284 
285  if(printSettings) maker->Print("");
286 
287  printf("<< End Configuration of %d analysis for calorimeter %s >>\n",n, calorimeter.Data());
288 
289  // Create task
290 
292 
293  task->SetDebugLevel(debug);
294 
295  //task->SetBranches("ESD:AliESDRun.,AliESDHeader");
296  //task->SetConfigFileName(""); //Don't configure the analysis via configuration file.
297 
298  task->SetAnalysisMaker(maker);
299 
300  mgr->AddTask(task);
301 
302  //Create containers
303 
304  if(outputfile.Length()==0) outputfile = AliAnalysisManager::GetCommonFileName();
305 
306  AliAnalysisDataContainer *cout_pc = mgr->CreateContainer(kAnaGammaHadronCorr, TList::Class(),
307  AliAnalysisManager::kOutputContainer,
308  Form("%s",outputfile.Data()));
309 
310  AliAnalysisDataContainer *cout_cuts = mgr->CreateContainer(Form("Param_%s",kAnaGammaHadronCorr.Data()), TList::Class(),
311  AliAnalysisManager::kParamContainer,
312  "AnalysisParameters.root");
313 
314  // Create ONLY the output containers for the data produced by the task.
315  // Get and connect other common input/output containers via the manager as below
316  //==============================================================================
317  mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
318  //if(!kData.Contains("delta") && outputAOD) mgr->ConnectOutput (task, 0, mgr->GetCommonOutputContainer());
319  mgr->ConnectOutput (task, 1, cout_pc);
320  mgr->ConnectOutput (task, 2, cout_cuts);
321 
322  if(!mixOn)
323  {
324  UInt_t mask = SetTriggerMaskFromName(trigger);
325  task->SelectCollisionCandidates(mask);
326  }
327 
328  return task;
329 }
330 
334 AliCaloTrackReader * ConfigureReader(TString col, Bool_t simulation,
335  TString clustersArray, Bool_t tender,
336  TString calorimeter, Bool_t nonLinOn,
337  TString trigger, Bool_t rejectEMCTrig,
338  Int_t minCen, Int_t maxCen,
339  Bool_t mixOn, Bool_t printSettings,
340  Int_t debug )
341 {
342  // Get the data type ESD or AOD
343  AliAnalysisManager * mgr = AliAnalysisManager::GetAnalysisManager();
344  TString inputDataType = mgr->GetInputEventHandler()->GetDataType();
345 
346  AliCaloTrackReader * reader = 0;
347  if (inputDataType == "AOD") reader = new AliCaloTrackAODReader();
348  else if(inputDataType == "ESD") reader = new AliCaloTrackESDReader();
349  else printf("AliCaloTrackReader::ConfigureReader() - Data not known InputData=%s\n",inputDataType.Data());
350 
351  reader->SetDebug(debug);//10 for lots of messages
352 
353  //
354  // MC settings
355  //
356  // Check if kine stack is available, independent of request of simulation
357  Bool_t useKinematics = kFALSE;
358  useKinematics = (mgr->GetMCtruthEventHandler())?kTRUE:kFALSE;
359 
360  if(simulation)
361  {
362  if (!useKinematics && inputDataType=="AOD") useKinematics = kTRUE; //AOD primary should be available ...
363  }
364 
365  if(useKinematics)
366  {
367  if(inputDataType == "ESD")
368  {
369  reader->SwitchOnStack();
370  reader->SwitchOffAODMCParticles();
371  }
372  else if(inputDataType == "AOD")
373  {
374  reader->SwitchOffStack();
375  reader->SwitchOnAODMCParticles();
376  }
377  }
378 
379  // In case of Pythia pt Hard bin simulations (jet-jet, gamma-jet)
380  // reject some special events that bother the cross section
381  if(simulation)
382  {
383  // Event rejection cuts for jet-jet simulations, do not use in other
384  reader->SetPtHardAndJetPtComparison(kTRUE);
385  reader->SetPtHardAndJetPtFactor(4);
386 
387  reader->SetPtHardAndClusterPtComparison(kTRUE);
388  reader->SetPtHardAndClusterPtFactor(1.5);
389  }
390 
391  //------------------------
392  // Detector input filling
393  //------------------------
394 
395  //Min cluster/track E
396  reader->SetEMCALEMin(0.3);
397  reader->SetEMCALEMax(1000);
398  reader->SetPHOSEMin(0.3);
399  reader->SetPHOSEMax(1000);
400  reader->SetCTSPtMin(0.2);
401  reader->SetCTSPtMax(1000);
402 
405 
406  // Shower shape smearing
407  // Set it in the train configuration page not here for the moment
408  // if(simulation)
409  // {
410  // reader->SwitchOffShowerShapeSmearing(); // Active only on MC, off by default
411  // reader->SetShowerShapeSmearWidth(0.005);
412  // }
413 
414  //
415  // Tracks
416  //
417  reader->SwitchOnCTS();
418 
419  reader->SwitchOffUseTrackTimeCut();
420  reader->SetTrackTimeCut(0,50);
421 
422  reader->SwitchOnFiducialCut();
423  reader->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ;
424 
425  reader->SwitchOffUseTrackDCACut();
426  //reader->SetTrackDCACut(0,0.0105);
427  //reader->SetTrackDCACut(1,0.035);
428  //reader->SetTrackDCACut(2,1.1);
429 
430  if(inputDataType=="ESD")
431  {
432  gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/CreateTrackCutsPWGJE.C");
433 
434  //AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10041004);
435  //reader->SetTrackCuts(esdTrackCuts);
436 
437  AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10001008);
438  reader->SetTrackCuts(esdTrackCuts);
439  AliESDtrackCuts * esdTrackCuts2 = CreateTrackCutsPWGJE(10011008);
440  reader->SetTrackComplementaryCuts(esdTrackCuts2);
441 
443  }
444  else if(inputDataType=="AOD")
445  {
446  reader->SwitchOnAODHybridTrackSelection(); // Check that the AODs have Hybrids!!!!
448  reader->SetTrackStatus(AliVTrack::kITSrefit);
449 
450  //reader->SwitchOnAODPrimaryTrackSelection(); // Used in preliminary results of QM from Nicolas and Xiangrong?
451  //reader->SwitchOnTrackHitSPDSelection(); // Check that the track has at least a hit on the SPD, not much sense to use for hybrid or TPC only tracks
452  //reader->SetTrackFilterMask(128); // Filter bit, not mask, use if off hybrid, TPC only
453  }
454 
455  //
456  // Calorimeter
457  //
458  if(clustersArray == "" && !tender)
459  {
460  printf("**************** Standard EMCAL clusters branch analysis **************** \n");
462  // Check in ConfigureCaloUtils that the recalibration and bad map are ON
463  }
464  else
465  {
466  printf("**************** Input for analysis is Clusterizer %s **************** \n", clustersArray.Data());
467  reader->SetEMCALClusterListName(clustersArray);
469  }
470 
471  // Time cuts
473  if(simulation)
474  {
475  reader->SwitchOffUseEMCALTimeCut();
476  reader->SetEMCALTimeCut(-1e10,1e10); // Open time cut
477  }
478  else
479  {
480  reader->SwitchOnUseEMCALTimeCut();
481  reader->SetEMCALTimeCut(-25,20);
482  }
483 
484  // CAREFUL
485  if(nonLinOn) reader->SwitchOnClusterELinearityCorrection();
487 
488  if(calorimeter == "EMCAL")
489  {
490  reader->SwitchOnEMCALCells();
491  reader->SwitchOnEMCAL();
492  }
493 
494  if(calorimeter == "PHOS")
495  { // Should be on if QA is activated with correlation on
496  reader->SwitchOnPHOSCells();
497  reader->SwitchOnPHOS();
498  }
499 
500  //-----------------
501  // Event selection
502  //-----------------
503 
504  //if(!simulation) reader->SetFiredTriggerClassName("CEMC7EGA-B-NOPF-CENTNOTRD"); // L1 Gamma
505 
506  // Event triggered by EMCal selection settings
509 
510  if( rejectEMCTrig > 0 && !simulation && (trigger.Contains("EMC") || trigger.Contains("L")))
511  {
512  printf("=== Remove bad triggers === \n");
515 
516  // reader->SetTriggerPatchTimeWindow(8,9); // default values
517  // if (kRunNumber < 146861) reader->SetEventTriggerL0Threshold(3.);
518  // else if(kRunNumber < 154000) reader->SetEventTriggerL0Threshold(4.);
519  // else if(kRunNumber < 165000) reader->SetEventTriggerL0Threshold(5.5);
520  // //redefine for other periods, triggers
521  //
522  // if(kRunNumber < 172000)
523  // {
524  // reader->SetEventTriggerL1Bit(4,5); // current LHC11 data
525  // printf("\t Old L1 Trigger data format!\n");
526  // }
527  // else
528  // {
529  // reader->SetEventTriggerL1Bit(6,8); // LHC12-13 data
530  // printf("\t Current L1 Trigger data format!\n");
531  // }
532 
533  if(clustersArray != "" || tender)
534  {
535  printf("Trigger cluster calibration OFF\n");
537  }
538 
539  }
540 
541  //reader->RejectFastClusterEvents() ;
542 
543  // For mixing with AliAnaParticleHadronCorrelation switch it off
544  reader->SwitchOnEventTriggerAtSE(); // on is default case
545  if(mixOn)
546  {
547  reader->SwitchOffEventTriggerAtSE();
548  UInt_t mask = SetTriggerMaskFromName(trigger);
549  reader->SetEventTriggerMask(mask); // Only for mixing and SwitchOffEventTriggerAtSE();
550  //reader->SetMixEventTriggerMask(AliVEvent::kMB); // Careful, not all productions work with kMB, try kINT7, kINT1, kAnyINT
551  reader->SetMixEventTriggerMask(AliVEvent::kINT7); // Careful, not all productions work with kMB, try kINT7, kINT1, kAnyINT
552 
553  printf("---Trigger selection done in AliCaloTrackReader!!!\n");
554  }
555 
556  reader->SetZvertexCut(10.); // Open cut
557  reader->SwitchOnPrimaryVertexSelection(); // and besides primary vertex
558  reader->SwitchOnRejectNoTrackEvents();
559 
560  reader->SwitchOffV0ANDSelection() ; // and besides v0 AND
561  reader->SwitchOffPileUpEventRejection(); // remove pileup by default off, apply it only for MB not for trigger
562 
563  if(col=="PbPb")
564  {
565  // Centrality
566  reader->SetCentralityClass("V0M");
567  reader->SetCentralityOpt(100); // 10 (c= 0-10, 10-20 ...), 20 (c= 0-5, 5-10 ...) or 100 (c= 1, 2, 3 ..)
568  reader->SetCentralityBin(minCen,maxCen); // Accept all events, if not select range
569  reader->SwitchOnAcceptOnlyHIJINGLabels();
570  // Event plane (only used in Maker and mixing for AliAnaPi0/AliAnaHadronCorrelation for the moment)
571  reader->SetEventPlaneMethod("V0");
572  }
573 
574  if(printSettings) reader->Print("");
575 
576  return reader;
577 }
578 
582 AliCalorimeterUtils* ConfigureCaloUtils(TString col, Bool_t simulation,
583  TString clustersArray, Bool_t tender,
584  Bool_t nonLinOn, Int_t year,
585  Bool_t printSettings, Int_t debug)
586 {
588 
589  cu->SetDebug(debug);
590 
591  // Remove clusters close to borders, at least max energy cell is 1 cell away
594 
596 
597  if (year == 2010) cu->SetNumberOfSuperModulesUsed(4);
598  else if(year <= 2013) cu->SetNumberOfSuperModulesUsed(10);
599  else if(year > 2013) cu->SetNumberOfSuperModulesUsed(20);
600  else cu->SetNumberOfSuperModulesUsed(10);
601 
602  printf("xxx Number of SM set to <%d> xxx\n",cu->GetNumberOfSuperModulesUsed());
603 
604  // Search of local maxima in cluster
605  if(col=="pp")
606  {
607  cu->SetLocalMaximaCutE(0.1);
608  cu->SetLocalMaximaCutEDiff(0.03);
609  }
610  else
611  {
612  cu->SetLocalMaximaCutE(0.2);
613  cu->SetLocalMaximaCutEDiff(0.03);
614  }
615 
617 
619 
620  // EMCAL settings
621 
622  if(!simulation)
624 
625  AliEMCALRecoUtils * recou = cu->GetEMCALRecoUtils();
626 
627  // calibrations
628  Bool_t calibEner = kFALSE;
629  Bool_t calibTime = kFALSE;
632 
633  if( !tender )
634  {
635  cu->SwitchOnRecalibration(); // Check the reader if it is taken into account during filtering
637 
638  calibEner = kTRUE;
639  calibTime = kTRUE;
640  }
641 
642  if( simulation )
643  {
644  calibEner = kFALSE;
645  calibTime = kFALSE;
646 
647  cu->SwitchOffRecalibration(); // Check the reader if it is taken into account during filtering
649  }
650 
651  gROOT->LoadMacro("$ALICE_PHYSICS/PWGPP/EMCAL/macros/ConfigureEMCALRecoUtils.C");
653  simulation,
654  kTRUE, // exotic
655  nonLinOn, // Non linearity
656  calibEner, // E calib
657  kTRUE, // bad map
658  calibTime); // time calib
659 
660  if( calibTime ) recou->SetExoticCellDiffTimeCut(50);
661 
662  if( nonLinOn ) cu->SwitchOnCorrectClusterLinearity();
663 
664  printf("ConfigureCaloUtils() - EMCAL Recalibration ON? %d %d\n",recou->IsRecalibrationOn(), cu->IsRecalibrationOn());
665  printf("ConfigureCaloUtils() - EMCAL BadMap ON? %d %d\n",recou->IsBadChannelsRemovalSwitchedOn(), cu->IsBadChannelsRemovalSwitchedOn());
666 
667  // PHOS
669 
670  if(printSettings) cu->Print("");
671 
672  return cu;
673 }
674 
679 AliAnaPhoton* ConfigurePhotonAnalysis(TString col, Bool_t simulation,
680  TString calorimeter, Int_t year, Int_t tm,
681  Bool_t printSettings, Int_t debug)
682 {
683  AliAnaPhoton *ana = new AliAnaPhoton();
684 
685  // cluster selection cuts
686 
688 
689  ana->SwitchOffFiducialCut();
690 
691  ana->SetCalorimeter(calorimeter);
692 
693  ana->SetFirstSMCoveredByTRD(6);
694 
695  ana->SwitchOnFillShowerShapeHistograms(); // Filled before photon shower shape selection
696 
697  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
698 
699  if(tm) ana->SwitchOnTrackMatchRejection() ;
700  else ana->SwitchOffTrackMatchRejection() ;
701 
702  ana->SwitchOnTMHistoFill() ;
703 
704  if(calorimeter == "PHOS")
705  {
706  ana->SetNCellCut(2);// At least 3 cells
707  ana->SetMinPt(0.3);
708  ana->SetMinDistanceToBadChannel(2, 4, 5);
709  ana->SetTimeCut(-1e10,1e10); // open cut
710  }
711  else
712  {//EMCAL
713  ana->SetNCellCut(1);// At least 2 cells
714  ana->SetMinEnergy(0.3); // avoid mip peak at E = 260 MeV
715  ana->SetMaxEnergy(100);
716  ana->SetTimeCut(-1e10,1e10); // open cut, usual time window of [425-825] ns if time recalibration is off
717  // restrict to less than 100 ns when time calibration is on
718  ana->SetMinDistanceToBadChannel(2, 4, 6);
719 
720  // NLM cut, used in all, exclude clusters with more than 2 maxima
721  // Not needed if M02 cut is already strong or clusterizer V2
722  ana->SetNLMCut(1, 2) ;
723  }
724 
725  //PID cuts (shower shape)
726  ana->SwitchOnCaloPID(); // do PID selection, unless specified in GetCaloPID, selection not based on bayesian
727  AliCaloPID* caloPID = ana->GetCaloPID();
728  //Not used in bayesian
729 
730  // EMCAL
731 
732  //caloPID->SetEMCALLambda0CutMax(0.27);
733  caloPID->SetEMCALLambda0CutMax(10); // open, full shower shape needed for isolation studies
734  caloPID->SetEMCALLambda0CutMin(0.10);
735 
736  // Track matching
737  caloPID->SetEMCALDEtaCut(0.025);
738  caloPID->SetEMCALDPhiCut(0.030);
739 
740  // PHOS
741  caloPID->SetPHOSDispersionCut(2.5);
742  caloPID->SetPHOSRCut(2.);
743  //if(kInputData=="AOD") caloPID->SetPHOSRCut(2000.); // Open cut since dX, dZ not stored
744 
745  // Branch AOD settings
746  ana->SetOutputAODName(Form("PhotonTrigger_%s",kAnaGammaHadronCorr.Data()));
747  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
748 
749  //Set Histograms name tag, bins and ranges
750  ana->AddToHistogramsName(Form("AnaPhoton_TM%d_",tm));
751 
752  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug) ; // see method below
753 
754  if(ana->GetFirstSMCoveredByTRD() > 0)
755  printf(">>> Set first SM covered by TRD, SM=%d <<< year %d \n", ana->GetFirstSMCoveredByTRD(),year);
756 
757  // Number of particle type MC histograms
758  ana->FillNOriginHistograms (17); // 18 max
759  ana->FillNPrimaryHistograms(6); // 6 max
760 
761  return ana;
762 }
763 
768 AliAnaPi0EbE* ConfigurePi0EbEAnalysis(TString particle, Int_t analysis,
769  Bool_t useSSIso, Bool_t useAsy,
770  TString col, Bool_t simulation,
771  TString calorimeter, Int_t year, Int_t tm,
772  Bool_t printSettings, Int_t debug )
773 {
774  // Configuration of pi0 event by event selection
775 
776  AliAnaPi0EbE *ana = new AliAnaPi0EbE();
777 
778  ana->SetDebug(debug);
779 
780  ana->SetAnalysisType((AliAnaPi0EbE::anaTypes)analysis);
781  TString opt = "";
782  if(analysis==AliAnaPi0EbE::kIMCaloTracks) opt = "Conv";
783  if(analysis==AliAnaPi0EbE::kSSCalo) opt = "SS";
784 
786  ana->SetFirstSMCoveredByTRD(6);
788 
790  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
791  //if(!kTime && !simulation) ana->SwitchOnFillEMCALBCHistograms();
792 
793  if(tm) ana->SwitchOnTrackMatchRejection() ;
794  else ana->SwitchOffTrackMatchRejection() ;
795  ana->SwitchOffTMHistoFill() ;
796 
797  ana->SetCalorimeter(calorimeter);
798 
799  // Branch AOD settings
800  ana->SetOutputAODName(Form("%s%sTrigger_%s",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
801  printf("***Out branch %s***\n",ana->GetOutputAODName().Data());
802  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
803 
804  if(analysis == AliAnaPi0EbE::kIMCaloTracks) ana->SetInputAODGammaConvName("PhotonsCTS");
805 
806  //Set Histograms name tag, bins and ranges
807 
808  ana->AddToHistogramsName(Form("Ana%s%sEbE_TM%d_",particle.Data(),opt.Data(),tm));
809 
810  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
811 
813  if(analysis!=AliAnaPi0EbE::kSSCalo)
814  {
815  ana->SetInputAODName(Form("PhotonTrigger_%s",kAnaGammaHadronCorr.Data()));
816 
817  ana->SetM02CutForInvMass(0.1,0.35); // Loose SS cut
818 
820  ana->SetR(0.4);
822 
823  if(useSSIso)
824  {
826  ana->AddToHistogramsName(Form("Ana%s%sEbEIsoDecay_TM%d_",particle.Data(),opt.Data(),tm));
827  ana->SetOutputAODName(Form("%s%sIsoDecayTrigger_%s",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
828  }
829 
830  if(calorimeter=="EMCAL" && !simulation) ana->SetPairTimeCut(100);
831 
833  nms->SetParticle(particle);
834 
835  //****
836  nms->SetInvMassCutMaxParameters(0,0,0); // Overrule the setting in SetParticle for Pi0 option
837  //****
838 
839  // Tighten a bit mass cut with respect to default window
840  if(particle=="Pi0") nms->SetInvMassCutRange(0.110,0.160);
841  if(particle=="Eta") nms->SetInvMassCutRange(0.520,0.580);
842 
843  //if(!particle.Contains("SideBand")) nms->SwitchOnAngleSelection();
844  //else nms->SwitchOnAngleSelection();
845 
847 
848  if(particle.Contains("Pi0SideBand")) // For pi0, do not consider left band
849  nms->SetSideBandCutRanges(-1,0,0.190,0.240);
850 
851  if(particle.Contains("EtaSideBand")) // For pi0, do not consider left band
852  nms->SetSideBandCutRanges(0.410,0.470,0.620,0.680);
853 
855  //nms->SetAngleMaxParam(2,0.2);
856  nms->SetHistoERangeAndNBins(0, 20, 80) ;
857  //nms->SetHistoIMRangeAndNBins(0, 1, 400);
858  }
859  else
860  {
861  // cluster splitting settings
862  ana->SetMinEnergy(6);
863  ana->SetMaxEnergy(100.);
864 
865  ana->SetNLMMinEnergy(0, 10);
866  ana->SetNLMMinEnergy(1, 6);
867  ana->SetNLMMinEnergy(2, 6);
868 
869  // NLM cut, used in all, exclude clusters with more than 2 maxima
870  ana->SetNLMCut(1, 2) ;
871 
872  //
873  ana->SetMinDistanceToBadChannel(2, 4, 6);
875  ana->SetTimeCut(-1e10,1e10); // Open time cut
876 
877  AliCaloPID* caloPID = ana->GetCaloPID();
878 
879  caloPID->SetSplitWidthSigma(3); // cut at 3 sigma of the mean pi0 peak.
880 
881  if(!useSSIso)
882  {
883  printf("Do not apply SS cut on merged pi0 analysis \n");
884  caloPID->SwitchOffSplitShowerShapeCut() ;
885  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_TM%d_",particle.Data(),opt.Data(),tm));
886  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenSS",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
887  caloPID->SetClusterSplittingM02Cut(0.1,10);
888  }
889  else
890  {
891  caloPID->SetClusterSplittingM02Cut(0.3,4); // Do the selection in the analysis class and not in the PID method to fill SS histograms
892  caloPID->SwitchOnSplitShowerShapeCut() ;
893  }
894 
895  if(useAsy)
896  {
897  caloPID->SwitchOnSplitAsymmetryCut() ;
899  ana->GetCaloPID()->SetSubClusterEnergyMinimum(1,0.5);
900  ana->GetCaloPID()->SetSubClusterEnergyMinimum(2,0.5);
901  }
902  else
903  {
904  caloPID->SwitchOffSplitAsymmetryCut() ;
905  if(!useSSIso)
906  {
907  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_OpenAsy_TM%d_",particle.Data(),opt.Data(),tm));
908  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenSS_OpenAsy",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
909  }
910  else
911  {
912  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenAsy_TM%d_",particle.Data(),opt.Data(),tm));
913  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenAsy",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
914  }
915  }
916 
917  // For Pi0 only if SwitchOnSimpleSplitMassCut()
918  caloPID->SetPi0MassRange(0.10, 0.18);
919  caloPID->SetEtaMassRange(0.50, 0.60);
920  caloPID->SetPhotonMassRange(0.00, 0.08);
921 
922  caloPID->SetClusterSplittingMinNCells(6);
923 
924  //caloPID->SetSplitEnergyFractionMinimum(0, 0.95);
925  //caloPID->SetSplitEnergyFractionMinimum(1, 0.95);
926  //caloPID->SetSplitEnergyFractionMinimum(2, 0.8);
927 
928  if(col=="PbPb" || kAnaGammaHadronCorr.Contains("150"))
929  {
930  caloPID->SetClusterSplittingMinNCells(4);
931  //caloPID->SetPi0MassShiftHighECell(0.005);
932  }
933  }
935 
936  return ana;
937 }
938 
942 AliAnaParticleIsolation* ConfigureIsolationAnalysis(TString particle, Int_t leading,
943  Int_t partInCone, Int_t thresType,
944  Float_t cone, Float_t pth, Bool_t multi,
945  TString col, Bool_t simulation,
946  TString calorimeter, Int_t year, Int_t tm,
947  Bool_t printSettings, Int_t debug )
948 {
950 
951  ana->SetDebug(debug);
952 
953  ana->SetMinPt(5);
954  ana->SetCalorimeter(calorimeter);
955 
957  ana->SwitchOffCellHistoFill() ;
958 
959  ana->SwitchOffLeadingOnly();
961  if( leading > 0 ) ana->SwitchOnLeadingOnly();
962  if( leading == 2 ||
963  leading == 4) ana->SwitchOnCheckNeutralClustersForLeading();
964 
965  // MC
968 
969  if(particle.Contains("Photon"))
970  {
972  ana->SetNDecayBits(5);
973  ana->SwitchOnSSHistoFill();
974  }
975  else
976  {
977  ana->SwitchOffSSHistoFill();
978  }
979 
981  ana->SetNPtTrigBins(6);
982  //ana->SetPtTrigLimits(0,8); ana->SetPtTrigLimits(1,12); ana->SetPtTrigLimits(2,16); ana->SetPtTrigLimits(3,25);
983 
985  ana->SetNBackgroundBins(11);
986  //ana->SetBackgroundLimits(0,0); ana->SetBackgroundLimits(1,0.2); ana->SetBackgroundLimits(2,3); ana->SetBackgroundLimits(3,0.4);
987 
988  ana->SetFirstSMCoveredByTRD(6);
989 
990  if(!tm) ana->SwitchOnTMHistoFill();
991  else ana->SwitchOffTMHistoFill();
992 
993  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
994 
996  ana->SwitchOnFiducialCut();
997 
998  if(calorimeter=="EMCAL")
999  {
1000  // Avoid borders of EMCal
1001  ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.60, 86, 174) ;
1002 
1003  }
1004 
1005  // Same Eta as EMCal, cut in phi if EMCAL was triggering
1006  if(particle=="Hadron" || particle.Contains("CTS"))
1007  {
1008  //if(trigger.Contains("EMC"))
1009  // ana->GetFiducialCut()->SetSimpleCTSFiducialCut (0.6, 260, 360) ;
1010  //else
1011  ana->GetFiducialCut()->SetSimpleCTSFiducialCut (0.6, 0, 360) ;
1012  }
1013 
1014  // Branch AOD settings
1015 
1016  ana->SetInputAODName(Form("%sTrigger_%s",particle.Data(),kAnaGammaHadronCorr.Data()));
1017  ana->SetAODObjArrayName(Form("IC%sTrigger_%s_R%1.1f_ThMin%1.1f",particle.Data(),kAnaGammaHadronCorr.Data(),cone,pth));
1018 
1019  //
1020  // Do settings for main isolation cut class
1021  //
1022  AliIsolationCut * ic = ana->GetIsolationCut();
1023  ic->SetDebug(debug);
1024  ic->SetParticleTypeInCone(partInCone);
1025  ic->SetICMethod(thresType);
1026  ic->SetPtFraction(0.1);
1027  ic->SetPtThreshold(0.5); // default, change in next lines
1028  ic->SetSumPtThreshold(1.0); // default, change in next lines
1029 
1030  if(cone > 0 && pth > 0)
1031  {
1032  ic->SetConeSize(cone);
1033  ic->SetPtThresholdMax(10000);
1034 
1035  if(thresType == AliIsolationCut::kPtThresIC)
1036  {
1037  printf("*** Iso *** PtThresMin = %1.1f GeV/c *** R = %1.1f ***\n",pth,cone);
1038  ic->SetPtThreshold(pth);
1039  }
1040 
1041  if(thresType == AliIsolationCut::kSumPtIC)
1042  {
1043  printf("*** Iso *** SumPtMin = %1.1f GeV/c *** R = %1.1f ***\n",pth,cone);
1044  ic->SetSumPtThreshold(pth);
1045  }
1046  }
1047  else
1048  {
1049  if(col=="pp")
1050  {
1051  ic->SetPtThreshold(0.5);
1052  ic->SetSumPtThreshold(1.0) ;
1053  ic->SetConeSize(0.4);
1054  }
1055  if(col=="PbPb")
1056  {
1057  ic->SetPtThreshold(3.);
1058  ic->SetSumPtThreshold(3.0) ;
1059  ic->SetConeSize(0.3);
1060  }
1061  }
1062 
1063 
1064  // Do or not do isolation with previously produced AODs.
1065  // No effect if use of SwitchOnSeveralIsolation()
1066  ana->SwitchOffReIsolation();
1067 
1068  // Multiple IC
1069  if(multi)
1070  {
1071  ic->SetConeSize(1.); // Take all for first iteration
1072  ic->SetPtThreshold(100);// Take all for first iteration
1073  ana->SwitchOnSeveralIsolation() ;
1074  ana->SetAODObjArrayName(Form("MultiIC%sTM%d",particle.Data(),tm));
1075 
1076  ana->SetNCones(3);
1077  ana->SetNPtThresFrac(2);
1078  ana->SetConeSizes(0,0.3); ana->SetConeSizes(1,0.4); ana->SetConeSizes(2,0.5);
1079  ana->SetPtThresholds(0, 0.5); ana->SetPtThresholds(1, 1); ana->SetPtThresholds(2, 1.5); ana->SetPtThresholds(3, 2);
1080  ana->SetPtFractions (0, 0.05) ; ana->SetPtFractions (1, 0.1); ana->SetPtFractions (2, 0.2) ; ana->SetPtFractions (3, 0.3) ;
1081  ana->SetSumPtThresholds(0, 0.5) ; ana->SetSumPtThresholds(1, 1) ; ana->SetSumPtThresholds(2, 1.5); ana->SetSumPtThresholds(3, 2) ;
1082  //ana->SetPtThresholds(0, 0.5);
1083 
1084  ana->SwitchOffTMHistoFill();
1085  ana->SwitchOffSSHistoFill();
1086  }
1087  else
1088  ana->SwitchOffSeveralIsolation() ;
1089 
1090  AliCaloPID* caloPID = ana->GetCaloPID();
1091  caloPID->SetEMCALDEtaCut(0.025);
1092  caloPID->SetEMCALDPhiCut(0.030);
1093 
1094  //Set Histograms name tag, bins and ranges
1095 
1096  if(!multi) ana->AddToHistogramsName(Form("AnaIsol%s_TM%d_",particle.Data(),tm));
1097  else ana->AddToHistogramsName(Form("AnaMultiIsol%s_TM%d_",particle.Data(),tm));
1098 
1099  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1100 
1101  if(particle=="Hadron" || particle.Contains("CTS"))
1102  {
1103  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
1104  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
1105  }
1106 
1107  if(printSettings) ic ->Print("");
1108 
1109  return ana;
1110 }
1111 
1112 
1117  Bool_t bIsolated, Float_t shshMax,
1118  Int_t partInCone, Int_t thresType,
1119  Float_t cone, Float_t pth, Bool_t mixOn,
1120  TString col, Bool_t simulation,
1121  TString calorimeter, Int_t year, Int_t tm,
1122  Bool_t printSettings, Int_t debug )
1123 {
1125 
1126  ana->SetTriggerPtRange(5,100);
1127  ana->SetAssociatedPtRange(0.2,100);
1128  ana->SetDeltaPhiCutRange (TMath::DegToRad()*120.,TMath::DegToRad()*240.);
1129 
1130  // Underlying event
1131  ana->SetUeDeltaPhiCutRange(TMath::DegToRad()*60. ,TMath::DegToRad()*120.);
1133 
1134  ana->SwitchOffAbsoluteLeading(); // Select trigger leading particle of all the selected tracks
1135  ana->SwitchOffNearSideLeading(); // Select trigger leading particle of all the particles at +-90 degrees, default
1137 
1138  if(leading > 0 && leading < 3 ) ana->SwitchOnAbsoluteLeading();
1139  if(leading > 2 ) ana->SwitchOnNearSideLeading();
1140  if(leading == 2 || leading == 4 ) ana->SwitchOnCheckNeutralClustersForLeading();
1141 
1143  ana->SwitchOffCorrelationVzBin() ;
1145 
1147 
1149  if(particle.Contains("Photon"))
1150  {
1152  ana->SetNDecayBits(5);
1153  printf("**** SET M02 limits in correlation task *** \n");
1154  ana->SetM02Cut(0.10,shshMax);
1157  }
1158 
1159  ana->SetMCGenType(0,7);
1160 
1161  ana->SwitchOffLeadHadronSelection(); // Open cuts, just fill histograms
1165  ana->SetLeadHadronPhiCut(TMath::DegToRad()*130, TMath::DegToRad()*230.);
1166  ana->SetLeadHadronPtCut(0.5, 1000);
1167 
1168  // if triggering on PHOS and EMCAL is on
1169  ana->SwitchOffNeutralCorr(); // Do only correlation with TPC
1170  //ana->SetPi0AODBranchName("Pi0EMCAL_TrigEMC7_Cl_TM1");
1171 
1173 
1175 
1176  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
1177 
1178  ana->SetNAssocPtBins(8);
1179  ana->SetAssocPtBinLimit(0, 1) ;
1180  ana->SetAssocPtBinLimit(1, 2) ;
1181  ana->SetAssocPtBinLimit(2, 3) ;
1182  ana->SetAssocPtBinLimit(3, 4) ;
1183  ana->SetAssocPtBinLimit(4, 5) ;
1184  ana->SetAssocPtBinLimit(5, 8) ;
1185  ana->SetAssocPtBinLimit(6, 10) ;
1186  ana->SetAssocPtBinLimit(7, 100);
1187 
1188  ana->SelectIsolated(bIsolated); // do correlation with isolated photons
1189 
1190  // Mixing with own pool
1191  if(mixOn)
1192  {
1193  ana->SwitchOnOwnMix();
1195 
1196  if(bIsolated)
1197  {
1198  //Do settings for main isolation cut class
1199  AliIsolationCut * ic = ana->GetIsolationCut();
1200  ic->SetDebug(debug);
1201 
1202  if(cone >0 && pth > 0)
1203  {
1204  printf("*** Correl *** PtThres = %1.1f GeV/c *** R = %1.1f ***\n",pth,cone);
1205  ic->SetPtThreshold(pth);
1206  ic->SetConeSize(cone);
1207  }
1208  else
1209  {
1210  if(col=="pp")
1211  {
1212  ic->SetPtThreshold(0.5);
1213  ic->SetConeSize(0.4);
1214  }
1215  if(col=="PbPb")
1216  {
1217  ic->SetPtThreshold(3.);
1218  //ic->SetPtThreshold(1.);
1219  ic->SetConeSize(0.3);
1220  }
1221  }
1222 
1223  ic->SetPtFraction(0.1);
1224  ic->SetSumPtThreshold(1.0) ;
1225  ic->SetParticleTypeInCone(partInCone);
1226  ic->SetICMethod(thresType);
1227  }
1228  }
1229  else
1230  ana->SwitchOffOwnMix();
1231 
1232  ana->SetNZvertBin(20);
1233 
1234  if(col=="pp")
1235  {
1236  ana->SetNMaxEvMix(100);
1237  ana->SwitchOnTrackMultBins();
1238  ana->SetNTrackMultBin(10);
1239  ana->SetNRPBin(1);
1240  }
1241  else
1242  {
1243  ana->SetNMaxEvMix(10);
1244  ana->SwitchOffTrackMultBins(); // centrality bins
1245  ana->SetNCentrBin(12);
1246  ana->SetNRPBin(3);
1247  if(kAnaGammaHadronCorr.Contains("60_90"))
1248  {
1249  printf("*** Set mixing for peripheral\n");
1250  ana->SetNMaxEvMix(50);
1251  ana->SetNCentrBin(2);
1252  }
1253  }
1254 
1255  ana->SwitchOnFiducialCut();
1256 
1257  if(calorimeter=="EMCAL")
1258  {
1259  // Avoid borders of EMCal, same as for isolation
1260  ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.6, 86, 174) ;
1261 
1262  }
1263 
1264  // Input / output delta AOD settings
1265 
1266  ana->SetInputAODName(Form("%sTrigger_%s",particle.Data(),kAnaGammaHadronCorr.Data()));
1267  ana->SetAODObjArrayName(Form("%sHadronCorrIso%dTrigger_%s",particle.Data(),bIsolated,kAnaGammaHadronCorr.Data()));
1268  //ana->SetAODNamepTInConeHisto(Form("IC%s_%s_R%1.1f_ThMin%1.1f" ,particle.Data(),kAnaGammaHadronCorr.Data(),cone,pth));
1269 
1270  //Set Histograms name tag, bins and ranges
1271 
1272  ana->AddToHistogramsName(Form("Ana%sHadronCorr_Iso%d_TM%d_",particle.Data(),bIsolated,tm));
1273 
1274  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1275 
1276  if(particle=="Hadron" || particle.Contains("CTS"))
1277  {
1278  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
1279  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
1280  }
1281 
1282  return ana;
1283 }
1284 
1288 AliAnaChargedParticles* ConfigureChargedAnalysis( Bool_t simulation, Bool_t printSettings, Int_t debug )
1289 {
1291 
1292  ana->SetDebug(debug);
1293 
1294  // selection cuts
1295 
1296  ana->SetMinPt(0.2);
1297  ana->SwitchOnFiducialCut();
1298  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ; //more restrictive cut in reader and after in isolation
1299 
1301 
1304 
1305  // Branch AOD settings
1306 
1307  ana->SetOutputAODName(Form("HadronTrigger_%s",kAnaGammaHadronCorr.Data()));
1308  ana->SetOutputAODClassName("AliAODPWG4Particle"); // use if no correlation done
1309 
1310  //Set Histograms name tag, bins and ranges
1311 
1312  ana->AddToHistogramsName("AnaHadrons_");
1313 
1314  SetAnalysisCommonParameters(ana,"CTS",2012,"pp",simulation,printSettings,debug); // see method below
1315 
1316  return ana;
1317 }
1318 
1322 AliAnaCalorimeterQA* ConfigureQAAnalysis(TString col, Bool_t simulation,
1323  TString calorimeter, Int_t year,
1324  Bool_t printSettings, Int_t debug )
1325 {
1327 
1328  ana->SetCalorimeter(calorimeter);
1329 
1330  ana->SetTimeCut(-1e10,1e10); // Open time cut
1331 
1332  ana->SwitchOnCorrelation(); // make sure you switch in the reader PHOS and EMCAL cells and clusters if option is ON
1333 
1335 
1336  ana->SwitchOffFiducialCut();
1340  ana->SwitchOffStudyBadClusters() ;
1342  ana->SwitchOffStudyWeight();
1344 
1346 
1347  ana->AddToHistogramsName("QA_"); // Begining of histograms name
1348 
1349  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1350 
1351  return ana;
1352 }
1353 
1357 AliAnaGeneratorKine* ConfigureGenKineAnalysis(Int_t thresType, Float_t cone,
1358  Float_t pth,
1359  TString col, Bool_t simulation,
1360  TString calorimeter, Int_t year,
1361  Bool_t printSettings, Int_t debug )
1362 {
1364 
1365  // Trigger detector, acceptance and pT cut
1366  ana->SetTriggerDetector(calorimeter);
1367  ana->SetMinPt(2); // Trigger photon, pi0 minimum pT
1369 
1370  // Particles associated to trigger or isolation cone acceptance and pT cut
1371  ana->SetCalorimeter(calorimeter);
1372  ana->SetMinChargedPt(0.2);
1373  ana->SetMinNeutralPt(0.3);
1374  ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.65, 81, 179);
1375  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.9, 0, 360);
1376 
1377  // Isolation paramters
1378  AliIsolationCut * ic = ana->GetIsolationCut();
1379  ic->SetDebug(debug);
1380  ic->SetPtThreshold(pth);
1381  ic->SetConeSize(cone);
1382  ic->SetSumPtThreshold(1.0) ;
1383  ic->SetICMethod(thresType);
1384 
1385  ana->AddToHistogramsName("AnaGenKine_");
1386 
1387  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1388 
1389  return ana;
1390 }
1391 
1392 
1400  TString calorimeter, Int_t year,
1401  TString col, Bool_t simulation,
1402  Bool_t printSettings, Int_t debug)
1403 {
1404  //
1405  // Histograms ranges
1406  //
1407  AliHistogramRanges* histoRanges = ana->GetHistogramRanges();
1408 
1409  histoRanges->SetHistoPtRangeAndNBins(0, 100, 200) ; // Energy and pt histograms
1410 
1411  if(calorimeter=="EMCAL")
1412  {
1413  if ( year == 2010 )
1414  {
1415  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 122*TMath::DegToRad(), 78) ;
1416  histoRanges->SetHistoXRangeAndNBins(-230,90,120); // QA
1417  histoRanges->SetHistoYRangeAndNBins(370,450,40); // QA
1418  }
1419  else if ( year < 2014 )
1420  {
1421  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 182*TMath::DegToRad(), 108) ;
1422  histoRanges->SetHistoXRangeAndNBins(-460,90,200); // QA
1423  histoRanges->SetHistoYRangeAndNBins(100,450,100); // QA }
1424  else // Run2
1425  {
1426  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 329*TMath::DegToRad(), 250) ;
1427  histoRanges->SetHistoXRangeAndNBins(-460,460,230); // QA
1428  histoRanges->SetHistoYRangeAndNBins(-450,450,225); // QA
1429  }
1430 
1431  histoRanges->SetHistoEtaRangeAndNBins(-0.72, 0.72, 144) ;
1432  }
1433  else if(calorimeter=="PHOS")
1434  {
1435  histoRanges->SetHistoPhiRangeAndNBins(250*TMath::DegToRad(), 320*TMath::DegToRad(), 70) ;
1436  histoRanges->SetHistoEtaRangeAndNBins(-0.13, 0.13, 130) ;
1437  }
1438  else if(calorimeter=="CTS")
1439  {
1440  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
1441  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
1442  }
1443  }
1444 
1445  histoRanges->SetHistoShowerShapeRangeAndNBins(-0.1, 4.9, 500);
1446 
1447  // Invariant mass histo
1448  histoRanges->SetHistoMassRangeAndNBins(0., 1., 200) ;
1449  histoRanges->SetHistoAsymmetryRangeAndNBins(0., 1. , 100) ;
1450 
1451  // check if time calibration is on
1452  //histoRanges->SetHistoTimeRangeAndNBins(-1000.,1000,1000);
1453  histoRanges->SetHistoTimeRangeAndNBins(-400.,400,400);
1454  histoRanges->SetHistoDiffTimeRangeAndNBins(-200, 200, 800);
1455 
1456  // track-cluster residuals
1457  histoRanges->SetHistoTrackResidualEtaRangeAndNBins(-0.15,0.15,300);
1458  histoRanges->SetHistoTrackResidualPhiRangeAndNBins(-0.15,0.15,300);
1459  histoRanges->SetHistodRRangeAndNBins(0.,0.15,150);//QA
1460 
1461  // QA, electron, charged
1462  histoRanges->SetHistoPOverERangeAndNBins(0,2.,200);
1463  histoRanges->SetHistodEdxRangeAndNBins(0.,200.,200);
1464 
1465  // QA
1466  histoRanges->SetHistoFinePtRangeAndNBins(0, 10, 200) ; // bining for fhAmpId
1467  histoRanges->SetHistoVertexDistRangeAndNBins(0.,500.,500);
1468  histoRanges->SetHistoZRangeAndNBins(-350,350,175);
1469  histoRanges->SetHistoRRangeAndNBins(430,460,30);
1470  histoRanges->SetHistoV0SignalRangeAndNBins(0,5000,500);
1471  histoRanges->SetHistoV0MultiplicityRangeAndNBins(0,5000,500);
1472 
1473  // QA, correlation
1474  if(col=="PbPb")
1475  {
1476  histoRanges->SetHistoNClusterCellRangeAndNBins(0,100,100);
1477  histoRanges->SetHistoNClustersRangeAndNBins(0,500,50);
1478  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,2000,200);
1479  }
1480  else
1481  {
1482  histoRanges->SetHistoNClusterCellRangeAndNBins(0,50,50);
1483  histoRanges->SetHistoNClustersRangeAndNBins(0,50,50);
1484  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,200,200);
1485  }
1486 
1487  // xE, zT
1488  histoRanges->SetHistoRatioRangeAndNBins(0.,2.,200);
1489  histoRanges->SetHistoHBPRangeAndNBins (0.,10.,200);
1490 
1491  // Isolation
1492  histoRanges->SetHistoPtInConeRangeAndNBins(0, 50 , 250);
1493  histoRanges->SetHistoPtSumRangeAndNBins (0, 100, 250);
1494 
1495  //
1496  // TRD SM
1497  //
1498  if (year == 2011) ana->SetFirstSMCoveredByTRD( 6);
1499  else if(year == 2012 ||
1500  year == 2013) ana->SetFirstSMCoveredByTRD( 4);
1501  else ana->SetFirstSMCoveredByTRD(-1);
1502 
1503  //
1504  // MC histograms?
1505  //
1506  if(simulation) ana->SwitchOnDataMC() ;//Access MC stack and fill more histograms, AOD MC not implemented yet.
1507  else ana->SwitchOffDataMC() ;
1508 
1509  //Set here generator name, default pythia
1510  //ana->GetMCAnalysisUtils()->SetMCGenerator("");
1511 
1512  //
1513  // Debug
1514  //
1515  if(printSettings) ana->Print("");
1516 
1517  ana->SetDebug(debug); // 10 for lots of messages
1518 }
1519 
1524 UInt_t SetTriggerMaskFromName(TString trigger)
1525 {
1526  if(trigger=="EMC7")
1527  {
1528  printf("CaloTrackCorr trigger EMC7\n");
1529  return AliVEvent::kEMC7;
1530  }
1531  else if (trigger=="INT7")
1532  {
1533  printf("CaloTrackCorr trigger INT7\n");
1534  return AliVEvent::kINT7;
1535  }
1536  else if(trigger=="EMC1")
1537  {
1538  printf("CaloTrackCorr trigger EMC1\n");
1539  return AliVEvent::kEMC1;
1540  }
1541  else if(trigger=="MB")
1542  {
1543  printf("CaloTrackCorr trigger MB\n");
1544  return AliVEvent::kMB;
1545  }
1546  else if(trigger=="PHOS")
1547  {
1548  printf("CaloTrackCorr trigger PHOS\n");
1549  return AliVEvent::kPHI7;
1550  }
1551  else if(trigger=="PHOSPb")
1552  {
1553  printf("CaloTrackCorr trigger PHOSPb\n");
1554  return AliVEvent::kPHOSPb;
1555  }
1556  else if(trigger=="AnyINT")
1557  {
1558  printf("CaloTrackCorr trigger AnyINT\n");
1559  return AliVEvent::kAnyINT;
1560  }
1561  else if(trigger=="INT")
1562  {
1563  printf("CaloTrackCorr trigger AnyINT\n");
1564  return AliVEvent::kAny;
1565  }
1566  else if(trigger=="EMCEGA")
1567  {
1568  printf("CaloTrackCorr trigger EMC Gamma\n");
1569  return AliVEvent::kEMCEGA;
1570  }
1571  else if(trigger=="EMCEJE")
1572  {
1573  printf("CaloTrackCorr trigger EMC Jet\n");
1574  return AliVEvent::kEMCEJE;
1575  }
1576  else if(trigger=="Central")
1577  {
1578  printf("CaloTrackCorr trigger Central\n");
1579  return AliVEvent::kCentral;
1580  }
1581  else if(trigger=="CentralEGA")
1582  {
1583  printf("CaloTrackCorr trigger Central+EMCEGA\n");
1584  return (AliVEvent::kCentral | AliVEvent::kEMCEGA);
1585  }
1586  else if(trigger=="SemiCentral")
1587  {
1588  printf("CaloTrackCorr trigger SemiCentral\n");
1589  return AliVEvent::kSemiCentral;
1590  }
1591  else if(trigger=="SemiOrCentral")
1592  {
1593  printf("CaloTrackCorr trigger SemiCentral Or Central\n");
1594  return (AliVEvent::kSemiCentral | AliVEvent::kCentral);
1595  }
1596  else return AliVEvent::kAny;
1597 }
void SetSumPtThresholds(Int_t i, Float_t pt)
void SwitchOffSelectedClusterHistoFill()
Definition: AliAnaPi0EbE.h:113
void SetPtThreshold(Float_t pt)
virtual void SwitchOnAODTrackSharedClusterSelection()
void SetHistoTrackMultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n)
virtual void SetDebug(Int_t d)
void SetNumberOfCellsFromPHOSBorder(Int_t n)
void SetTimeCut(Double_t min, Double_t max)
void ana(Int_t mode=mGRID)
Definition: ana.C:86
void SetSimpleCTSFiducialCut(Float_t abseta, Float_t phimin, Float_t phimax)
AliAnaPhoton * ConfigurePhotonAnalysis(TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
void SetHistoMassRangeAndNBins(Float_t min, Float_t max, Int_t n)
virtual void AddToHistogramsName(TString add)
void SwitchOnFillAllTrackMatchingHistogram()
void SetSplitWidthSigma(Float_t s)
Definition: AliCaloPID.h:248
virtual void SwitchOnFiducialCut()
void SetHistoXRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOnTrackMatchRejection()
Definition: AliAnaPhoton.h:111
void SetClusterSplittingM02Cut(Float_t min=0, Float_t max=100)
Definition: AliCaloPID.h:229
void SwitchOnLoadOwnEMCALGeometryMatrices()
void SwitchOnSplitShowerShapeCut()
Definition: AliCaloPID.h:225
void SwitchOnTMHistoFill()
Definition: AliAnaPhoton.h:83
void SetAssociatedPtRange(Float_t min, Float_t max)
Class with utils to perform Isolation Cuts.
virtual void SwitchOnAODHybridTrackSelection()
virtual void SetCentralityBin(Int_t min, Int_t max)
AliAnaPi0EbE * ConfigurePi0EbEAnalysis(TString particle, Int_t analysis, Bool_t useSSIso, Bool_t useAsy, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
AliEMCALRecoUtils * GetEMCALRecoUtils() const
TString kAnaGammaHadronCorr
Global name to be composed of the settings, used to set the AOD branch name.
void SetConeSize(Float_t r)
void SetPtFraction(Float_t pt)
void SwitchOnSelectPairInIsolationCone()
Definition: AliAnaPi0EbE.h:128
void SetTimeCut(Double_t min, Double_t max)
Definition: AliAnaPi0EbE.h:143
void FillNPrimaryHistograms(Int_t n)
Definition: AliAnaPhoton.h:116
void SwitchOffClusterELinearityCorrection()
void SetCTSPtMax(Float_t pt)
void SwitchOffSplitShowerShapeCut()
Definition: AliCaloPID.h:226
void SetClusterSplittingMinNCells(Int_t c)
Definition: AliCaloPID.h:232
void SetHistoPtRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetDebug(Int_t d)
void SetMinChargedPt(Float_t pt)
virtual void SetCalorimeter(TString &calo)
Set the calorimeter for the analysis. A string.
AliAnaGeneratorKine * ConfigureGenKineAnalysis(Int_t thresType, Float_t cone, Float_t pth, TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug)
virtual void SetInputAODName(TString name)
void SetM02CutForInvMass(Float_t min=0, Float_t max=10)
Definition: AliAnaPi0EbE.h:118
virtual void SetTrackComplementaryCuts(AliESDtrackCuts *)
virtual AliIsolationCut * GetIsolationCut()
void SetEMCALEMin(Float_t en)
void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3)
Definition: AliAnaPhoton.h:94
AliAnalysisTaskCaloTrackCorrelation * AddTaskGammaHadronCorrelation(TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=2011, TString col="pp", TString trigger="EMC7", Int_t rejectEMCTrig=0, TString clustersArray="", Bool_t tender=kFALSE, Bool_t nonLinOn=kFALSE, Float_t shshMax=0.27, Float_t isoCone=0.4, Float_t isoPtTh=0.5, Int_t isoMethod=AliIsolationCut::kPtThresIC, Int_t isoContent=AliIsolationCut::kNeutralAndCharged, Int_t leading=0, Bool_t tm=kTRUE, Int_t minCen=-1, Int_t maxCen=-1, Bool_t mixOn=kTRUE, Bool_t qaAn=kFALSE, Bool_t chargedAn=kFALSE, TString outputfile="", Bool_t printSettings=kFALSE, Int_t debug=0)
void SetInvMassCutRange(Double_t invmassmin, Double_t invmassmax)
void KeepNeutralMesonSelectionHistos(Bool_t keep)
void SetSimpleEMCALFiducialCut(Float_t abseta, Float_t phimin, Float_t phimax)
virtual void SetOutputAODClassName(TString name)
virtual AliNeutralMesonSelection * GetNeutralMesonSelection()
void SetSumPtThreshold(Float_t s)
void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3)
Definition: AliAnaPi0EbE.h:134
Class for the Calorimeter QA analysis.
void SetHistodRRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetLocalMaximaCutEDiff(Float_t c)
Get trigger particles/partons/jets and correlations at generator level.
void SwitchOffSplitAsymmetryCut()
Definition: AliCaloPID.h:222
void SetAnalysisType(anaTypes ana)
Definition: AliAnaPi0EbE.h:93
void SetNumberOfCellsFromEMCALBorder(Int_t n)
void SwitchOffTMHistoFill()
Definition: AliAnaPi0EbE.h:110
void SetNCellCut(Int_t n)
Definition: AliAnaPhoton.h:102
Select cluster pairs or single merged clusters with pi0 or eta invariant mass.
Definition: AliAnaPi0EbE.h:31
void SetPtFractions(Int_t i, Float_t pt)
2 calorimeter clusters invariant mass selection
Definition: AliAnaPi0EbE.h:87
const TString calorimeter
Definition: anaM.C:35
virtual void SetPtHardAndJetPtComparison(Bool_t compare)
Bool_t IsRecalibrationOn() const
AliAnaParticleHadronCorrelation * ConfigureHadronCorrelationAnalysis(TString particle, Int_t leading, Bool_t bIsolated, Float_t shshMax, Int_t partInCone, Int_t thresType, Float_t cone, Float_t pth, Bool_t mixOn, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
void SetHistoTrackResidualEtaRangeAndNBins(Float_t min, Float_t max, Int_t n)
virtual void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SetIsolationCandidateMinPt(Float_t min)
Definition: AliAnaPi0EbE.h:123
Class for event, clusters and tracks filtering and preparation for the AOD analysis.
void SetCTSPtMin(Float_t pt)
void SetPHOSRCut(Float_t rcut)
Definition: AliCaloPID.h:207
void SetEMCALDPhiCut(Float_t dcut)
Definition: AliCaloPID.h:201
void SetLeadHadronPtCut(Float_t min, Float_t max)
virtual void SetOutputAODName(TString name)
void SwitchOffRecalculateClusterTrackMatching()
void SetEventTriggerMask(UInt_t evtTrig=AliVEvent::kAny)
void SetICMethod(Int_t i)
void SwitchOffVertexBCEventSelection()
void SetR(Float_t r)
Definition: AliAnaPi0EbE.h:122
virtual void SetPtHardAndClusterPtFactor(Float_t factor)
Correlate trigger particles (photon, pi0, tracks) and charged tracks: Azimuthal correlations, xE distributions.
virtual void SetNTrackMultBin(Int_t n=1)
Number of bins in centrality.
Base class for CaloTrackCorr analysis algorithms.
void SwitchOffTrackMatchRejection()
Definition: AliAnaPhoton.h:112
void SetDeltaPhiCutRange(Double_t phimin, Double_t phimax)
void SetUeDeltaPhiCutRange(Double_t uephimin, Double_t uephimax)
1 calorimeter cluster and 1 photon conversion pair invariant mass selection
Definition: AliAnaPi0EbE.h:89
void SetHistoPtInConeRangeAndNBins(Float_t min, Float_t max, Int_t n)
virtual void SetDebug(Int_t d)
void SetHistoPOverERangeAndNBins(Float_t min, Float_t max, Int_t n)
virtual AliFiducialCut * GetFiducialCut()
virtual AliFiducialCut * GetFiducialCut()
virtual void SetCentralityOpt(Int_t opt)
void SetHistoPhiRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetSideBandCutRanges(Double_t lmin, Double_t lmax, Double_t rmin, Double_t rmax)
AliAnaCalorimeterQA * ConfigureQAAnalysis(TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug)
virtual AliHistogramRanges * GetHistogramRanges()
void SwitchOnSplitAsymmetryCut()
Definition: AliCaloPID.h:221
void SetHistoPtSumRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetAnalysisCommonParameters(AliAnaCaloTrackCorrBaseClass *ana, TString calorimeter, Int_t year, TString col, Bool_t simulation, Bool_t printSettings, Int_t debug)
void SetTrackStatus(ULong_t bit)
Bool_t IsBadChannelsRemovalSwitchedOn() const
Filter EMCal/PHOS clusters for photon analysis.
Definition: AliAnaPhoton.h:32
void SetHistoTrackResidualPhiRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetConeSizes(Int_t i, Float_t r)
AliAnaParticleIsolation * ConfigureIsolationAnalysis(TString particle, Int_t leading, Int_t partInCone, Int_t thresType, Float_t cone, Float_t pth, Bool_t multi, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
void SwitchOnSelectIsolatedDecay()
Definition: AliAnaPi0EbE.h:125
void SetM02Cut(Float_t min=0, Float_t max=10)
void SwitchOnSplitClusterDistToBad()
Definition: AliAnaPi0EbE.h:161
virtual void SetPtHardAndClusterPtComparison(Bool_t compare)
void SwitchOffTriggerClusterTimeRecal()
void SwitchOffTrackMatchRejection()
Definition: AliAnaPi0EbE.h:150
virtual void SetHistoERangeAndNBins(Float_t min, Float_t max, Int_t n)
Base class for event, clusters and tracks filtering and preparation for the analysis.
void SetInputAODGammaConvName(TString name)
Definition: AliAnaPi0EbE.h:99
void SetHistoNClusterCellRangeAndNBins(Int_t min, Int_t max, Int_t n)
void SwitchOffBadTriggerEventsRemoval()
void SetEMCALClusterListName(TString &name)
void SetMinNeutralPt(Float_t pt)
anaTypes
Analysis types.
Definition: AliAnaPi0EbE.h:85
Int_t GetNumberOfSuperModulesUsed() const
void SetParticle(TString particleName)
Set some default parameters for selection of pi0 or eta.
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SetHistoYRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetTimeCut(Double_t min, Double_t max)
Definition: AliAnaPhoton.h:97
AliCalorimeterUtils * ConfigureCaloUtils(TString col, Bool_t simulation, TString clustersArray, Bool_t tender, Bool_t nonLinOn, Int_t year, Bool_t printSettings, Int_t debug)
virtual void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
AliCaloTrackReader * ConfigureReader(TString col, Bool_t simulation, TString clustersArray, Bool_t tender, TString calorimeter, Bool_t nonLinOn, TString trigger, Bool_t rejectEMCTrig, Int_t minCen, Int_t maxCen, Bool_t mixOn, Bool_t printSettings, Int_t debug)
AliAnaChargedParticles * ConfigureChargedAnalysis(Bool_t simulation, Bool_t printSettings, Int_t debug)
void SetPtThresholdMax(Float_t pt)
virtual void SetZvertexCut(Float_t zcut=10.)
AliFiducialCut * GetFiducialCutForTrigger()
void SetEtaMassRange(Float_t min, Float_t max)
Definition: AliCaloPID.h:270
void SetNumberOfSuperModulesUsed(Int_t nSM)
void SetPi0MassRange(Float_t min, Float_t max)
Definition: AliCaloPID.h:269
Class containing more common histogram axis types.
void SetEMCALLambda0CutMax(Float_t lcut)
Definition: AliCaloPID.h:192
void SwitchOnTrackMatchRejection()
Definition: AliAnaPi0EbE.h:149
virtual void SetNCentrBin(Int_t n=1)
Number of bins in reaction plain.
virtual void SetPtHardAndJetPtFactor(Float_t factor)
Class for event, clusters and tracks filtering and preparation for the ESD analysis.
virtual void SetEventPlaneMethod(TString m)
void SetPHOSEMin(Float_t en)
virtual void SetNRPBin(Int_t n=1)
Number of bins for vertex position.
void SetHistoNClustersRangeAndNBins(Int_t min, Int_t max, Int_t n)
void SetPHOSDispersionCut(Float_t dcut)
Definition: AliCaloPID.h:210
virtual void SetTrackCuts(AliESDtrackCuts *)
void SetNLMCut(Int_t min, Int_t max)
Definition: AliAnaPi0EbE.h:101
Track selection for correlation analysis.
UInt_t SetTriggerMaskFromName(TString trigger)
void SetMCGenType(Int_t min=0, Int_t max=6)
virtual void SetCentralityClass(TString name)
void SwitchOnFillShowerShapeHistograms()
Definition: AliAnaPhoton.h:69
Select clusters/tracks with low particle environment in their vecinity, isolated within a cone...
void SwitchOnBadTriggerEventsRemoval()
void SetHistoEtaRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOnClusterELinearityCorrection()
void SwitchOffFillWeightHistograms()
Definition: AliAnaPi0EbE.h:153
void SetTrackTimeCut(Double_t a, Double_t b)
void SetEMCALTimeCut(Double_t a, Double_t b)
void SetTriggerDetector(TString &det)
Set the calorimeter for the analysis.
void SetHistoAsymmetryRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistoV0MultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n)
virtual void SetAODObjArrayName(TString name)
Main class conecting the CaloTrackCorrelations package and Analysis Frame.
void SwitchOffLoadOwnPHOSGeometryMatrices()
void SetHistoZRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistoV0SignalRangeAndNBins(Int_t min, Int_t max, Int_t n)
virtual void Print(const Option_t *) const
Print some relevant parameters set for the analysis.
Class that contains methods to select candidate cluster pairs to neutral meson.
void SetHistoTimeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistoFinePtRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetEMCALEMax(Float_t en)
void SetNAssocPtBins(Int_t n)
Set number of associated charged (neutral) hadrons pT bins.
Class for PID selection with calorimeters.
Definition: AliCaloPID.h:51
1 calorimeter cluster shower shape and split invariatn mass selection
Definition: AliAnaPi0EbE.h:88
void FillNOriginHistograms(Int_t n)
Definition: AliAnaPhoton.h:114
virtual void SetNMaxEvMix(Int_t n=20)
Number of bins in track multiplicity.
void SetNLMMinEnergy(Int_t i, Float_t min)
Definition: AliAnaPi0EbE.h:139
void SetHistoShowerShapeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetLeadHadronPhiCut(Float_t min, Float_t max)
void SetPHOSEMax(Float_t en)
void SetHistodEdxRangeAndNBins(Float_t min, Float_t max, Int_t n)
Class with utils specific to calorimeter clusters/cells.
virtual void SwitchOnConstrainTrackToVertex()
void SetMixEventTriggerMask(UInt_t evtTrig=AliVEvent::kAnyINT)
void SetInvMassCutMaxParameters(Float_t a, Float_t b, Float_t c)
void SetHistoHBPRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetEMCALLambda0CutMin(Float_t lcut)
Definition: AliCaloPID.h:195
void SetHistoRRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetParticleTypeInCone(Int_t i)
void SetHistoVertexDistRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetSubClusterEnergyMinimum(Int_t i, Float_t min)
Definition: AliCaloPID.h:238
void SetHistoDiffTimeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetEMCALDEtaCut(Float_t dcut)
Definition: AliCaloPID.h:198
void SetPhotonMassRange(Float_t min, Float_t max)
Definition: AliCaloPID.h:271
void SwitchOffUseParametrizedTimeCut()
void SetLocalMaximaCutE(Float_t cut)
void SetPtThresholds(Int_t i, Float_t pt)
void SetHistoRatioRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOffAllNLMHistoFill()
Definition: AliAnaPi0EbE.h:107
void SetNLMCut(Int_t min, Int_t max)
Definition: AliAnaPhoton.h:105
void SetAssocPtBinLimit(Int_t ibin, Float_t pt)
Set the list of pT limits for the of associated charged (neutral) hadrons.
void ConfigureEMCALRecoUtils(AliEMCALRecoUtils *reco, Bool_t bMC=kFALSE, Bool_t bExotic=kTRUE, Bool_t bNonLin=kFALSE, Bool_t bRecalE=kTRUE, Bool_t bBad=kTRUE, Bool_t bRecalT=kTRUE)
Int_t GetFirstSMCoveredByTRD() const
Time cut in ns.
Steering class of package CaloTrackCorrelartions.
void SetTriggerPtRange(Float_t min, Float_t max)