AliPhysics  vAN-20150822 (d56cf94)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AddTaskPi0IMGammaCorrQA.C
Go to the documentation of this file.
1 
16 
36  const Bool_t simulation = kFALSE,
37  const TString collision = "pp",
38  const TString suffix = "default",
39  const Bool_t qaan = kFALSE,
40  const Bool_t hadronan = kFALSE,
41  const Bool_t calibrate = kTRUE,
42  const Int_t minTime = -1000,
43  const Int_t maxTime = 1000,
44  const Int_t minCen = -1,
45  const Int_t maxCen = -1,
46  const Int_t debugLevel = -1,
47  const Int_t year = 2015
48  )
49 {
50  if(simulation && !suffix.Contains("default"))
51  {
52  printf("AddTaskPi0IMGammaCorrQA - CAREFUL : Triggered events not checked in simulation!! \n");
53  return 0x0;
54  }
55 
56  // Get the pointer to the existing analysis manager via the static access method.
57 
58  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
59  if (!mgr)
60  {
61  ::Error("AddTaskPi0IMGammaCorrQA", "No analysis manager to connect to.");
62  return NULL;
63  }
64 
65  // Check the analysis type using the event handlers connected to the analysis manager.
66 
67  if (!mgr->GetInputEventHandler())
68  {
69  ::Error("AddTaskPi0IMGammaCorrQA", "This task requires an input event handler");
70  return NULL;
71  }
72 
73  // Make sure the B field is enabled for track selection, some cuts need it
74  ((AliInputEventHandler*)mgr->GetInputEventHandler())->SetNeedField(kTRUE);
75 
76  TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
77 
78  // Name for containers
79 
80  TString containerName = Form("%s_%s",calorimeter.Data(), suffix.Data());
81 
82  if(collision!="pp" && maxCen>=0) containerName+=Form("Cen%d_%d",minCen,maxCen);
83 
84  printf("AddTaskPi0IMGammaCorrQA - Container NAME: %s \n",containerName.Data());
85 
86  // #### Configure analysis ####
87 
89 
90  // General frame setting and configuration
91  maker->SetReader ( ConfigureReader (inputDataType,collision,calibrate,minTime,maxTime,minCen,maxCen,simulation,year,debugLevel) );
92  maker->SetCaloUtils( ConfigureCaloUtils(calorimeter,simulation,calibrate,year,debugLevel) );
93 
94  // Analysis tasks setting and configuration
95  Int_t n = 0;//Analysis number, order is important
96 
97  // Photon analysis
98  maker->AddAnalysis(ConfigurePhotonAnalysis(calorimeter,collision,containerName,simulation,year ,debugLevel), n++); // Photon cluster selection
99  maker->AddAnalysis(ConfigurePi0Analysis (calorimeter,collision,containerName,simulation,year,qaan,debugLevel) ,n++); // Previous photon invariant mass
100 
101  if(hadronan)
102  {
103  maker->GetReader()->SwitchOnCTS();
104  maker->AddAnalysis(ConfigureChargedAnalysis(collision,containerName,simulation,year,debugLevel), n++); // charged tracks plots
105  maker->AddAnalysis(ConfigureHadronCorrelationAnalysis("Photon",calorimeter,collision,containerName,simulation,year,debugLevel), n++); // Gamma hadron correlation
106  }
107 
108  if(qaan) maker->AddAnalysis(ConfigureQAAnalysis(calorimeter,collision,simulation,year,debugLevel),n++);
109 
110  maker->SetAnaDebug(debugLevel) ;
111  maker->SwitchOnHistogramsMaker() ;
112  maker->SwitchOnAODsMaker() ;
113  maker->SwitchOffDataControlHistograms();
114  if(suffix.Contains("EMC"))
115  maker->SwitchOnDataControlHistograms();
116 
117  if(debugLevel > 0) maker->Print("");
118 
119  // Create task
120 
121  TString taskName =Form("Pi0IM_GammaTrackCorr_%s",containerName.Data());
122 
124  task->SetConfigFileName(""); //Don't configure the analysis via configuration file.
125  task->SetDebugLevel(debugLevel);
126  //task->SetBranches("ESD:AliESDRun.,AliESDHeader");
127  //task->SetBranches("AOD:header,tracks,vertices,emcalCells,caloClusters");
128  task->SetAnalysisMaker(maker);
129  mgr->AddTask(task);
130 
131  //Create containers
132 
133  TString outputfile = AliAnalysisManager::GetCommonFileName();
134 
135  AliAnalysisDataContainer *cout_pc = mgr->CreateContainer(taskName, TList::Class(),
136  AliAnalysisManager::kOutputContainer,
137  Form("%s:%s",outputfile.Data(),taskName.Data()));
138 
139  AliAnalysisDataContainer *cout_cuts = mgr->CreateContainer(Form("Param_%s",taskName.Data()), TList::Class(),
140  AliAnalysisManager::kParamContainer,
141  Form("%s_Parameters.root",taskName.Data()));
142 
143  // Create ONLY the output containers for the data produced by the task.
144  // Get and connect other common input/output containers via the manager as below
145  //==============================================================================
146  mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
147  mgr->ConnectOutput (task, 1, cout_pc);
148  mgr->ConnectOutput (task, 2, cout_cuts);
149 
150  return task;
151 }
152 
156 AliCaloTrackReader * ConfigureReader(TString inputDataType, TString collision, Bool_t calibrate,
157  Int_t minTime, Int_t maxTime,
158  Int_t minCen, Int_t maxCen,
159  Bool_t simulation, Int_t year, Int_t debugLevel)
160 {
161  AliCaloTrackReader * reader = 0;
162  if (inputDataType=="AOD")
163  reader = new AliCaloTrackAODReader();
164  else if(inputDataType=="ESD")
165  reader = new AliCaloTrackESDReader();
166  else
167  printf("AliCaloTrackReader::ConfigureReader() - Data combination not known input Data=%s\n",
168  inputDataType.Data());
169 
170  reader->SetDebug(debugLevel);//10 for lots of messages
171 
172  // MC settings
173  if(simulation)
174  {
175  if(inputDataType == "ESD")
176  {
177  reader->SwitchOnStack();
178  reader->SwitchOffAODMCParticles();
179  }
180  else if(inputDataType == "AOD")
181  {
182  reader->SwitchOffStack();
183  reader->SwitchOnAODMCParticles();
184  }
185  }
186 
187  //------------------------
188  // Detector input filling
189  //------------------------
190 
191  //Min cluster/track E
192  reader->SetEMCALEMin(0.3);
193  reader->SetEMCALEMax(1000);
194  reader->SetPHOSEMin(0.3);
195  reader->SetPHOSEMax(1000);
196  reader->SetCTSPtMin(0.2);
197  reader->SetCTSPtMax(1000);
198 
199  // Time cut
201  reader->SwitchOnUseEMCALTimeCut() ;
202  reader->SetEMCALTimeCut(minTime,maxTime);
203 
204  reader->SwitchOffUseTrackTimeCut();
205  reader->SetTrackTimeCut(-1e10,1e10);
206 
207  reader->SwitchOffFiducialCut();
208 
209  // Tracks
210  reader->SwitchOffCTS();
214  reader->SwitchOffUseTrackDCACut();
215  //reader->SetTrackDCACut(0,0.0105);
216  //reader->SetTrackDCACut(1,0.035);
217  //reader->SetTrackDCACut(2,1.1);
218 
219  if(inputDataType=="ESD")
220  {
221  gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/CreateTrackCutsPWGJE.C");
222  if(year > 2010)
223  {
224  //Hybrids 2011
225  AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10001008);
226  reader->SetTrackCuts(esdTrackCuts);
227  AliESDtrackCuts * esdTrackCuts2 = CreateTrackCutsPWGJE(10011008);
228  reader->SetTrackComplementaryCuts(esdTrackCuts2);
229  }
230  else
231  {
232  //Hybrids 2010
233  AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10001006);
234  reader->SetTrackCuts(esdTrackCuts);
235  AliESDtrackCuts * esdTrackCuts2 = CreateTrackCutsPWGJE(10041006);
236  reader->SetTrackComplementaryCuts(esdTrackCuts2);
237  }
238  }
239  else if(inputDataType=="AOD")
240  {
241  reader->SwitchOnAODHybridTrackSelection(); // Check that the AODs have Hybrids!!!!
242  reader->SetTrackStatus(AliVTrack::kITSrefit);
243  }
244 
245  // Calorimeter
246 
247  reader->SetEMCALClusterListName("");
248 
249  if(calibrate && !simulation) reader->SwitchOnClusterRecalculation();
250  else reader->SwitchOffClusterRecalculation();
251 
252  reader->SwitchOnEMCALCells();
253  reader->SwitchOnEMCAL();
254 
255  reader->SwitchOnPHOSCells();
256  reader->SwitchOnPHOS();
257 
258  //-----------------
259  // Event selection
260  //-----------------
261 
262  reader->SwitchOnEventTriggerAtSE();
263 
264  reader->SetZvertexCut(10.);
265  reader->SwitchOnPrimaryVertexSelection(); // and besides primary vertex
266  reader->SwitchOffPileUpEventRejection(); // remove pileup
267  reader->SwitchOffV0ANDSelection() ; // and besides v0 AND
268 
269  if(collision=="PbPb")
270  {
271  reader->SetCentralityBin(minCen,maxCen); // Accept all events, if not select range
272  reader->SetCentralityOpt(100); // 10 (c= 0-10, 10-20 ...), 20 (c= 0-5, 5-10 ...) or 100 (c= 1, 2, 3 ..)
273  }
274 
275  if(debugLevel > 0) reader->Print("");
276 
277  return reader;
278 }
279 
283 AliCalorimeterUtils* ConfigureCaloUtils(TString calorimeter, Bool_t simulation, Bool_t calibrate,
284  Int_t year, Int_t debugLevel)
285 {
287  cu->SetDebug(debugLevel);
288 
289  // Remove clusters close to borders, at least max energy cell is 1 cell away
292 
293  // Search of local maxima in cluster
294  cu->SetLocalMaximaCutE(0.1);
295  cu->SetLocalMaximaCutEDiff(0.03);
296 
297  cu->SwitchOffClusterPlot();
299 
301 
302  //EMCAL settings
303 
304  if(!simulation)
306 
307  AliEMCALRecoUtils * recou = cu->GetEMCALRecoUtils();
308  cu->SwitchOffRecalibration(); // Check the reader if it is taken into account during filtering
310 
312 
313  Bool_t bExotic = kTRUE;
314  Bool_t bNonLin = kTRUE;
315  Bool_t bBadMap = kTRUE;
316 
317  Bool_t bEnCalib = kFALSE;
318  Bool_t bTiCalib = kFALSE;
319 
320  if(calibrate && !simulation)
321  {
322  cu->SwitchOnRecalibration(); // Check the reader if it is taken into account during filtering
325 
326  bEnCalib = kTRUE;
327  bTiCalib = kTRUE;
328  }
329 
330  gROOT->LoadMacro("$ALICE_PHYSICS/PWGPP/EMCAL/macros/ConfigureEMCALRecoUtils.C");
332  simulation,
333  bExotic,
334  bNonLin,
335  bEnCalib,
336  bBadMap,
337  bTiCalib);
338  recou->SetExoticCellDiffTimeCut(50.);
339 
340  if(calorimeter=="PHOS")
341  {
343  }
344  else
345  {
346  if (year == 2010) cu->SetNumberOfSuperModulesUsed(4); // EMCAL first year
347  else if (year < 2014) cu->SetNumberOfSuperModulesUsed(10);
348  else cu->SetNumberOfSuperModulesUsed(20);
349  }
350 
351  // PHOS
353 
354  if(debugLevel > 0) cu->Print("");
355 
356  return cu;
357 }
358 
364  TString containerName, Bool_t simulation,
365  Int_t year, Int_t debugLevel)
366 {
367  AliAnaPhoton *ana = new AliAnaPhoton();
368  ana->SetDebug(debugLevel); //10 for lots of messages
369 
370  // cluster selection cuts
371 
372  ana->SwitchOffFiducialCut();
373 
374  ana->SetCalorimeter(calorimeter);
375 
376  if(calorimeter == "PHOS")
377  {
378  ana->SetNCellCut(2);// At least 3 cells
379  ana->SetMinPt(0.3);
380  ana->SetMinDistanceToBadChannel(2, 4, 5);
381  ana->SetTimeCut(-1e10,1e10); // open cut
382  }
383  else
384  {//EMCAL
385  ana->SetNCellCut(1);// At least 2 cells
386  ana->SetMinEnergy(0.3); // avoid mip peak at E = 260 MeV
387  ana->SetMaxEnergy(1000);
388  ana->SetTimeCut(-1e10,1e10); // open cut, usual time window of [425-825] ns if time recalibration is off
389  // restrict to less than 100 ns when time calibration is on
390  ana->SetMinDistanceToBadChannel(2, 4, 6);
391  // Not useful if M02 cut is already strong
392  ana->SetNLMCut(1, 2) ;
393  }
394 
396  ana->SwitchOffTMHistoFill() ;
397 
398 
399  //PID cuts (shower shape)
400  ana->SwitchOnCaloPID(); // do PID selection, unless specified in GetCaloPID, selection not based on bayesian
401  AliCaloPID* caloPID = ana->GetCaloPID();
402  //Not used in bayesian
403 
404  //EMCAL
405  caloPID->SetEMCALLambda0CutMax(0.4); // Rather open
406  caloPID->SetEMCALLambda0CutMin(0.10);
407 
408  caloPID->SetEMCALDEtaCut(0.025);
409  caloPID->SetEMCALDPhiCut(0.030);
410 
411  //PHOS
412  caloPID->SetPHOSDispersionCut(2.5);
413  caloPID->SetPHOSRCut(2.);
414 
415  ana->SwitchOnFillShowerShapeHistograms(); // Filled before photon shower shape selection
416  //if(!simulation)ana->SwitchOnFillPileUpHistograms();
417 
418  // Input / output delta AOD settings
419  ana->SetOutputAODName(Form("Photon%s",containerName.Data()));
420  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
421  ana->SetInputAODName (Form("Photon%s",containerName.Data()));
422 
423  //Set Histograms name tag, bins and ranges
424 
425  ana->AddToHistogramsName("AnaPhoton_");
426  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter,collision,year); // see method below
427 
428  // Number of particle type MC histograms
429  ana->FillNOriginHistograms(7);
430  ana->FillNPrimaryHistograms(4);
431 
432  if(simulation) ana->SwitchOnDataMC();
433 
434  if(debugLevel > 0 ) ana->Print("");
435 
436  return ana;
437 }
438 
442 AliAnaPi0* ConfigurePi0Analysis(TString calorimeter, TString collision,
443  TString containerName, Bool_t simulation, Int_t year,
444  Bool_t qaan, Int_t debugLevel)
445 {
446  AliAnaPi0 *ana = new AliAnaPi0();
447 
448  ana->SetDebug(debugLevel);//10 for lots of messages
449 
450  // Input delta AOD settings
451  ana->SetInputAODName(Form("Photon%s",containerName.Data()));
452 
453  // Calorimeter settings
454  ana->SetCalorimeter(calorimeter);
455 
456  //settings for pp collision mixing
457  ana->SwitchOnOwnMix(); //Off when mixing done with general mixing frame
458 
459  // Cuts
460  if(calorimeter=="EMCAL") ana->SetPairTimeCut(70);
461 
462  ana->SetNPIDBits(1);
463  ana->SetNAsymCuts(1); // no asymmetry cut, previous studies showed small effect.
464  // In EMCAL assymetry cut prevents combination of assymetric decays which is the main source of pi0 at high E.
465 
466  if (collision == "pp" )
467  {
468  ana->SetNCentrBin(1);
469  ana->SetNZvertBin(10);
470  ana->SetNRPBin(1);
471  ana->SetNMaxEvMix(100);
472  ana->SetMinPt(0.5);
473  }
474  else if(collision =="PbPb")
475  {
476  ana->SetNCentrBin(10);
477  ana->SetNZvertBin(10);
478  ana->SetNRPBin(4);
479  ana->SetNMaxEvMix(10);
480  ana->SetMinPt(1.5);
481  }
482  else if(collision =="pPb")
483  {
484  ana->SetNCentrBin(1);
485  ana->SetNZvertBin(10);
486  ana->SetNRPBin(4);
487  ana->SetNMaxEvMix(100);
488  ana->SetMinPt(0.5);
489  }
490 
492  ana->SwitchOnSMCombinations();
495 
496  //Set Histograms name tag, bins and ranges
497 
498  ana->AddToHistogramsName("AnaPi0_");
499  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter,collision,year); // see method below
500 
501  if(simulation) ana->SwitchOnDataMC();
502 
503  if(debugLevel > 0) ana->Print("");
504 
505  return ana;
506 }
507 
511 AliAnaChargedParticles* ConfigureChargedAnalysis(TString collision,TString containerName,
512  Bool_t simulation, Int_t year, Int_t debugLevel)
513 {
515  ana->SetDebug(debugLevel); //10 for lots of messages
516 
517  // selection cuts
518 
519  ana->SetMinPt(0.5);
520  ana->SwitchOnFiducialCut();
521  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ; //more restrictive cut in reader and after in isolation
522 
524  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
525 
526  // Input / output delta AOD settings
527 
528  ana->SetOutputAODName(Form("Hadron%s",containerName.Data()));
529  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
530  ana->SetInputAODName(Form("Hadron%s",containerName.Data()));
531 
532  //Set Histograms name tag, bins and ranges
533 
534  ana->AddToHistogramsName("AnaHadrons_");
535  SetHistoRangeAndNBins(ana->GetHistogramRanges(),"",collision,year); // see method below
536 
537  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
538  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
539 
540  if(debugLevel > 0) ana->Print("");
541 
542  return ana;
543 }
544 
549  TString collision, TString containerName,
550  Bool_t simulation, Int_t year, Int_t debugLevel)
551 {
553  ana->SetDebug(debugLevel);
554 
555  ana->SetTriggerPtRange(5,100);
556  ana->SetAssociatedPtRange(0.2,100);
557  //ana->SetDeltaPhiCutRange( TMath::Pi()/2,3*TMath::Pi()/2 ); //[90 deg, 270 deg]
558  ana->SetDeltaPhiCutRange (TMath::DegToRad()*120.,TMath::DegToRad()*240.);
559  ana->SetUeDeltaPhiCutRange(TMath::DegToRad()*60. ,TMath::DegToRad()*120.);
561 
562  ana->SetNAssocPtBins(4);
563  ana->SetAssocPtBinLimit(0, 0.5) ;
564  ana->SetAssocPtBinLimit(1, 2) ;
565  ana->SetAssocPtBinLimit(2, 5) ;
566  ana->SetAssocPtBinLimit(3, 10) ;
567  ana->SetAssocPtBinLimit(4, 20) ;
568 
569  ana->SelectIsolated(kFALSE); // do correlation with isolated photons
570 
571  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
572 
573  ana->SwitchOnAbsoluteLeading(); // Select trigger leading particle of all the selected tracks
574  ana->SwitchOffNearSideLeading(); // Select trigger leading particle of all the particles at +-90 degrees, default
575 
576  //ana->SwitchOnLeadHadronSelection();
577  //ana->SetLeadHadronPhiCut(TMath::DegToRad()*100., TMath::DegToRad()*260.);
578  //ana->SetLeadHadronPtCut(0.5, 100);
579 
580 
581  // Mixing with own pool
582  ana->SwitchOffOwnMix();
583 
584  ana->SetNZvertBin(20);
587 
588  if(collision=="pp")
589  {
590  ana->SetNMaxEvMix(100);
591  ana->SwitchOnTrackMultBins();
592  ana->SetNTrackMultBin(10); // same as SetNCentrBin(10);
593  ana->SetNRPBin(1);
594  }
595  else
596  {
597  ana->SetNMaxEvMix(10);
598  ana->SwitchOffTrackMultBins(); // centrality bins
599  ana->SetNCentrBin(10);
600  ana->SetNRPBin(3);
601  }
602 
603  // Input / output delta AOD settings
604 
605  ana->SetInputAODName(Form("%s%s",particle.Data(),containerName.Data()));
606  ana->SetAODObjArrayName(Form("%sHadronCorr_%s",particle.Data(),containerName.Data()));
607 
610  ana->SwitchOffNeutralCorr(); // Do only correlation with TPC
613 
614  // Underlying event
616  ana->SetUeDeltaPhiCutRange(TMath::Pi()/3, 2*TMath::Pi()/3);
617 
618  //Set Histograms name tag, bins and ranges
619 
620  ana->AddToHistogramsName(Form("Ana%sHadronCorr_",particle.Data()));
621  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter, collision,year); // see method below
622 
623  if(simulation) ana->SwitchOnDataMC();
624 
625  if(debugLevel > 0) ana->Print("");
626 
627  return ana;
628 }
629 
634  Bool_t simulation, Int_t year, Int_t debugLevel)
635 {
637  ana->SetDebug(debugLevel); //10 for lots of messages
638  ana->SetCalorimeter(calorimeter);
639 
640  ana->SetTimeCut(-1e10,1e10); // Open time cut
641  ana->SwitchOnCorrelation();
643  ana->SwitchOffFiducialCut();
649  ana->SwitchOffStudyWeight();
652 
653  ana->AddToHistogramsName("QA_"); //Begining of histograms name
654  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter, collision,year); // see method below
655 
656  if(simulation) ana->SwitchOnDataMC();
657 
658  if(debugLevel > 0) ana->Print("");
659 
660  return ana;
661 }
662 
663 
668  TString collision, Int_t year)
669 {
670  histoRanges->SetHistoPtRangeAndNBins(0, 100, 200) ; // Energy and pt histograms
671 
672  if(calorimeter=="EMCAL")
673  {
674  if ( year == 2010 )
675  {
676  histoRanges->SetHistoPhiRangeAndNBins(79*TMath::DegToRad(), 121*TMath::DegToRad(), 42) ;
677  histoRanges->SetHistoXRangeAndNBins(-230,90,120); // QA
678  histoRanges->SetHistoYRangeAndNBins(370,450,40); // QA
679  }
680  else if ( year < 2014 )
681  {
682  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 182*TMath::DegToRad(), 108) ;
683  histoRanges->SetHistoXRangeAndNBins(-460,90,200); // QA
684  histoRanges->SetHistoYRangeAndNBins(100,450,100); // QA
685  }
686  else // Run2
687  {
688  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 329*TMath::DegToRad(), 250) ;
689  histoRanges->SetHistoXRangeAndNBins(-460,460,230); // QA
690  histoRanges->SetHistoYRangeAndNBins(-450,450,225); // QA
691  }
692 
693  histoRanges->SetHistoEtaRangeAndNBins(-0.72, 0.72, 144) ;
694  }
695  else
696  {
697  histoRanges->SetHistoPhiRangeAndNBins(250*TMath::DegToRad(), 320*TMath::DegToRad(), 70) ;
698  histoRanges->SetHistoEtaRangeAndNBins(-0.13, 0.13, 130) ;
699  }
700 
701  histoRanges->SetHistoShowerShapeRangeAndNBins(-0.1, 4.9, 500);
702 
703  // Invariant mass histoRangeslysis
704  histoRanges->SetHistoMassRangeAndNBins(0., 1., 200) ;
705  histoRanges->SetHistoAsymmetryRangeAndNBins(0., 1. , 100) ;
706 
707  // check if time calibration is on
708  histoRanges->SetHistoTimeRangeAndNBins(-1000.,1000,500);
709  //histoRanges->SetHistoTimeRangeAndNBins(-400.,400,400);
710  histoRanges->SetHistoDiffTimeRangeAndNBins(-200, 200, 800);
711 
712  // track-cluster residuals
713  histoRanges->SetHistoTrackResidualEtaRangeAndNBins(-0.15,0.15,300);
714  histoRanges->SetHistoTrackResidualPhiRangeAndNBins(-0.15,0.15,300);
715  histoRanges->SetHistodRRangeAndNBins(0.,0.15,150);//QA
716 
717  // QA, electron, charged
718  histoRanges->SetHistoPOverERangeAndNBins(0, 2. ,200);
719  histoRanges->SetHistodEdxRangeAndNBins (0.,200.0,200);
720 
721  // QA
722  histoRanges->SetHistoFinePtRangeAndNBins(0, 10, 200) ; // bining for fhAmpId
723  histoRanges->SetHistoVertexDistRangeAndNBins(0.,500.,500);
724  histoRanges->SetHistoZRangeAndNBins(-350,350,175);
725  histoRanges->SetHistoRRangeAndNBins(430,460,30);
726  histoRanges->SetHistoV0SignalRangeAndNBins(0,5000,500);
727  histoRanges->SetHistoV0MultiplicityRangeAndNBins(0,5000,500);
728 
729  // QA, correlation
730  if(collision=="PbPb")
731  {
732  histoRanges->SetHistoNClusterCellRangeAndNBins(0,100,100);
733  histoRanges->SetHistoNClustersRangeAndNBins(0,500,50);
734  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,2000,200);
735  }
736  else
737  {
738  histoRanges->SetHistoNClusterCellRangeAndNBins(0,50,50);
739  histoRanges->SetHistoNClustersRangeAndNBins(0,50,50);
740  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,200,200);
741  }
742 
743  // xE, zT
744  histoRanges->SetHistoRatioRangeAndNBins(0.,2.,200);
745  histoRanges->SetHistoHBPRangeAndNBins (0.,10.,200);
746 
747  // Isolation
748  histoRanges->SetHistoPtInConeRangeAndNBins(0, 50 , 250);
749  histoRanges->SetHistoPtSumRangeAndNBins (0, 100, 250);
750 
751 }
752 
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)
void SetHistoMassRangeAndNBins(Float_t min, Float_t max, Int_t n)
virtual void AddToHistogramsName(TString add)
void SwitchOnFillAllTrackMatchingHistogram()
void SetHistoXRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOnTrackMatchRejection()
Definition: AliAnaPhoton.h:102
void SwitchOnLoadOwnEMCALGeometryMatrices()
void SetAssociatedPtRange(Float_t min, Float_t max)
void SetNPIDBits(Int_t s)
Definition: AliAnaPi0.h:115
virtual void SwitchOnAODHybridTrackSelection()
virtual void SetCentralityBin(Int_t min, Int_t max)
AliEMCALRecoUtils * GetEMCALRecoUtils() const
void FillNPrimaryHistograms(Int_t n)
Definition: AliAnaPhoton.h:107
void SetCTSPtMax(Float_t pt)
void SetHistoPtRangeAndNBins(Float_t min, Float_t max, Int_t n)
Selected photon clusters invariant mass analysis.
Definition: AliAnaPi0.h:38
virtual void SetCalorimeter(TString &calo)
Set the calorimeter for the analysis. A string.
virtual void SetInputAODName(TString name)
virtual void SetTrackComplementaryCuts(AliESDtrackCuts *)
void SwitchOnSMCombinations()
Definition: AliAnaPi0.h:89
void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3)
Definition: AliAnaPhoton.h:85
void SetHistoRangeAndNBins(AliHistogramRanges *histoRanges, TString calorimeter, TString collision, Int_t year)
void SwitchOffTMHistoFill()
Definition: AliAnaPhoton.h:77
virtual void SetOutputAODClassName(TString name)
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SwitchOffMultipleCutAnalysis()
Definition: AliAnaPi0.h:110
Class for the Calorimeter QA analysis.
AliCaloTrackReader * ConfigureReader(TString inputDataType, TString collision, Bool_t calibrate, Int_t minTime, Int_t maxTime, Int_t minCen, Int_t maxCen, Bool_t simulation, Int_t year, Int_t debugLevel)
void SetHistodRRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetLocalMaximaCutEDiff(Float_t c)
void SetPHOSEMax(Float_t e)
void SetNumberOfCellsFromEMCALBorder(Int_t n)
void SetEMCALEMin(Float_t e)
void SetNCellCut(Int_t n)
Definition: AliAnaPhoton.h:93
AliAnalysisTaskCaloTrackCorrelation * AddTaskPi0IMGammaCorrQA(const TString calorimeter="EMCAL", const Bool_t simulation=kFALSE, const TString collision="pp", const TString suffix="default", const Bool_t qaan=kFALSE, const Bool_t hadronan=kFALSE, const Bool_t calibrate=kTRUE, const Int_t minTime=-1000, const Int_t maxTime=1000, const Int_t minCen=-1, const Int_t maxCen=-1, const Int_t debugLevel=-1, const Int_t year=2015)
const TString calorimeter
Definition: anaM.C:35
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.
Class for event, clusters and tracks filtering and preparation for the AOD analysis.
void SetCTSPtMin(Float_t pt)
AliAnaParticleHadronCorrelation * ConfigureHadronCorrelationAnalysis(TString particle, TString calorimeter, TString collision, TString containerName, Bool_t simulation, Int_t year, Int_t debugLevel)
void SetPHOSRCut(Float_t rcut)
Definition: AliCaloPID.h:207
void SetEMCALDPhiCut(Float_t dcut)
Definition: AliCaloPID.h:201
virtual void SetOutputAODName(TString name)
void SwitchOffRecalculateClusterTrackMatching()
AliAnaCalorimeterQA * ConfigureQAAnalysis(TString calorimeter, TString collision, Bool_t simulation, Int_t year, Int_t debugLevel)
void SwitchOffVertexBCEventSelection()
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.
void SetDeltaPhiCutRange(Double_t phimin, Double_t phimax)
void SetUeDeltaPhiCutRange(Double_t uephimin, Double_t uephimax)
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()
void SwitchOffFillAngleHisto()
Definition: AliAnaPi0.h:80
virtual void SetCentralityOpt(Int_t opt)
void SetHistoPhiRangeAndNBins(Float_t min, Float_t max, Int_t n)
virtual AliHistogramRanges * GetHistogramRanges()
AliCalorimeterUtils * ConfigureCaloUtils(TString calorimeter, Bool_t simulation, Bool_t calibrate, Int_t year, Int_t debugLevel)
void SetHistoPtSumRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetTrackStatus(ULong_t bit)
Filter EMCal/PHOS clusters for photon analysis.
Definition: AliAnaPhoton.h:32
void SetHistoTrackResidualPhiRangeAndNBins(Float_t min, Float_t max, Int_t n)
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
AliAnaPhoton * ConfigurePhotonAnalysis(TString calorimeter, TString collision, TString containerName, Bool_t simulation, Int_t year, Int_t debugLevel)
Base class for event, clusters and tracks filtering and preparation for the analysis.
void SetHistoNClusterCellRangeAndNBins(Int_t min, Int_t max, Int_t n)
void SetEMCALClusterListName(TString &name)
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
Definition: AliAnaPi0.cxx:1269
AliAnaPi0 * ConfigurePi0Analysis(TString calorimeter, TString collision, TString containerName, Bool_t simulation, Int_t year, Bool_t qaan, Int_t debugLevel)
void SetHistoYRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetTimeCut(Double_t min, Double_t max)
Definition: AliAnaPhoton.h:88
virtual void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
virtual void SetZvertexCut(Float_t zcut=10.)
void SetNumberOfSuperModulesUsed(Int_t nSM)
Class containing more common histogram axis types.
void SetEMCALLambda0CutMax(Float_t lcut)
Definition: AliCaloPID.h:192
virtual void SetNCentrBin(Int_t n=1)
Number of bins in reaction plain.
Class for event, clusters and tracks filtering and preparation for the ESD analysis.
void SetNAsymCuts(Int_t s)
Definition: AliAnaPi0.h:113
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 *)
Track selection for correlation analysis.
virtual void SwitchOffFiducialCut()
void SwitchOnFillShowerShapeHistograms()
Definition: AliAnaPhoton.h:68
void SetHistoEtaRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetTrackTimeCut(Double_t a, Double_t b)
void SetEMCALTimeCut(Double_t a, Double_t b)
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)
void SetHistoTimeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistoFinePtRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetNAssocPtBins(Int_t n)
Set number of associated charged (neutral) hadrons pT bins.
Class for PID selection with calorimeters.
Definition: AliCaloPID.h:51
void FillNOriginHistograms(Int_t n)
Definition: AliAnaPhoton.h:105
virtual void SetNMaxEvMix(Int_t n=20)
Number of bins in track multiplicity.
void SetPHOSEMin(Float_t e)
void SetHistoShowerShapeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistodEdxRangeAndNBins(Float_t min, Float_t max, Int_t n)
Class with utils specific to calorimeter clusters/cells.
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 SetHistoVertexDistRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetEMCALEMax(Float_t e)
void SetHistoDiffTimeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetEMCALDEtaCut(Float_t dcut)
Definition: AliCaloPID.h:198
void SwitchOffUseParametrizedTimeCut()
void SwitchOffFillOriginHisto()
Definition: AliAnaPi0.h:129
void SetLocalMaximaCutE(Float_t cut)
void SetHistoRatioRangeAndNBins(Float_t min, Float_t max, Int_t n)
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SetNLMCut(Int_t min, Int_t max)
Definition: AliAnaPhoton.h:96
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)
Steering class of package CaloTrackCorrelartions.
AliAnaChargedParticles * ConfigureChargedAnalysis(TString collision, TString containerName, Bool_t simulation, Int_t year, Int_t debugLevel)
void SetTriggerPtRange(Float_t min, Float_t max)