AliPhysics  2797316 (2797316)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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(simulation)
118  {
119  // Calculate the cross section weights, apply them to all histograms
120  // and fill xsec and trial histo. Sumw2 must be activated.
121  //maker->GetReader()->GetWeightUtils()->SwitchOnMCCrossSectionCalculation();
122  //maker->SwitchOnSumw2Histograms();
123 
124  // For recent productions where the cross sections and trials are not stored in separate file
125  //maker->GetReader()->GetWeightUtils()->SwitchOnMCCrossSectionFromEventHeader() ;
126 
127  // Just fill cross section and trials histograms.
128  maker->GetReader()->GetWeightUtils()->SwitchOnMCCrossSectionHistoFill();
129 
130  // Add control histogram with pT hard to control aplication of weights
131  maker->SwitchOnPtHardHistogram();
132  }
133 
134  if(debugLevel > 0) maker->Print("");
135 
136  // Create task
137 
138  TString taskName =Form("Pi0IM_GammaTrackCorr_%s",containerName.Data());
139 
141  task->SetConfigFileName(""); //Don't configure the analysis via configuration file.
142  task->SetDebugLevel(debugLevel);
143  //task->SetBranches("ESD:AliESDRun.,AliESDHeader");
144  //task->SetBranches("AOD:header,tracks,vertices,emcalCells,caloClusters");
145  task->SetAnalysisMaker(maker);
146  mgr->AddTask(task);
147 
148  //Create containers
149 
150  TString outputfile = AliAnalysisManager::GetCommonFileName();
151 
152  AliAnalysisDataContainer *cout_pc = mgr->CreateContainer(taskName, TList::Class(),
153  AliAnalysisManager::kOutputContainer,
154  Form("%s:%s",outputfile.Data(),taskName.Data()));
155 
156  AliAnalysisDataContainer *cout_cuts = mgr->CreateContainer(Form("Param_%s",taskName.Data()), TList::Class(),
157  AliAnalysisManager::kParamContainer,
158  Form("%s_Parameters.root",taskName.Data()));
159 
160  // Create ONLY the output containers for the data produced by the task.
161  // Get and connect other common input/output containers via the manager as below
162  //==============================================================================
163  mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
164  mgr->ConnectOutput (task, 1, cout_pc);
165  mgr->ConnectOutput (task, 2, cout_cuts);
166 
167  return task;
168 }
169 
173 AliCaloTrackReader * ConfigureReader(TString inputDataType, TString collision, Bool_t calibrate,
174  Int_t minTime, Int_t maxTime,
175  Int_t minCen, Int_t maxCen,
176  Bool_t simulation, Int_t year, Int_t debugLevel)
177 {
178  AliCaloTrackReader * reader = 0;
179  if (inputDataType=="AOD")
180  reader = new AliCaloTrackAODReader();
181  else if(inputDataType=="ESD")
182  reader = new AliCaloTrackESDReader();
183  else
184  printf("AliCaloTrackReader::ConfigureReader() - Data combination not known input Data=%s\n",
185  inputDataType.Data());
186 
187  reader->SetDebug(debugLevel);//10 for lots of messages
188 
189  // MC settings
190  if(simulation)
191  {
192  if(inputDataType == "ESD")
193  {
194  reader->SwitchOnStack();
195  reader->SwitchOffAODMCParticles();
196  }
197  else if(inputDataType == "AOD")
198  {
199  reader->SwitchOffStack();
200  reader->SwitchOnAODMCParticles();
201  }
202  }
203 
204  //------------------------
205  // Detector input filling
206  //------------------------
207 
208  //Min cluster/track E
209  reader->SetEMCALEMin(0.3);
210  reader->SetEMCALEMax(1000);
211  reader->SetPHOSEMin(0.3);
212  reader->SetPHOSEMax(1000);
213  reader->SetCTSPtMin(0.2);
214  reader->SetCTSPtMax(1000);
215 
216  // Time cut
218  reader->SwitchOnUseEMCALTimeCut() ;
219  reader->SetEMCALTimeCut(minTime,maxTime);
220 
221  reader->SwitchOffUseTrackTimeCut();
222  reader->SetTrackTimeCut(-1e10,1e10);
223 
224  reader->SwitchOffFiducialCut();
225 
226  // Tracks
227  reader->SwitchOffCTS();
231  reader->SwitchOffUseTrackDCACut();
232  //reader->SetTrackDCACut(0,0.0105);
233  //reader->SetTrackDCACut(1,0.035);
234  //reader->SetTrackDCACut(2,1.1);
235 
236  if(inputDataType=="ESD")
237  {
238  gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/CreateTrackCutsPWGJE.C");
239  if(year > 2010)
240  {
241  //Hybrids 2011
242  AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10001008);
243  reader->SetTrackCuts(esdTrackCuts);
244  AliESDtrackCuts * esdTrackCuts2 = CreateTrackCutsPWGJE(10011008);
245  reader->SetTrackComplementaryCuts(esdTrackCuts2);
246  }
247  else
248  {
249  //Hybrids 2010
250  AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10001006);
251  reader->SetTrackCuts(esdTrackCuts);
252  AliESDtrackCuts * esdTrackCuts2 = CreateTrackCutsPWGJE(10041006);
253  reader->SetTrackComplementaryCuts(esdTrackCuts2);
254  }
255  }
256  else if(inputDataType=="AOD")
257  {
258  reader->SwitchOnAODHybridTrackSelection(); // Check that the AODs have Hybrids!!!!
259  reader->SetTrackStatus(AliVTrack::kITSrefit);
260  }
261 
262  // Calorimeter
263 
264  reader->SetEMCALClusterListName("");
265 
266  if(calibrate && !simulation) reader->SwitchOnClusterRecalculation();
267  else reader->SwitchOffClusterRecalculation();
268 
269  reader->SwitchOnEMCALCells();
270  reader->SwitchOnEMCAL();
271 
272  reader->SwitchOnPHOSCells();
273  reader->SwitchOnPHOS();
274 
275  //-----------------
276  // Event selection
277  //-----------------
278 
279  reader->SwitchOnEventTriggerAtSE();
280 
281  reader->SetZvertexCut(10.);
282  reader->SwitchOnPrimaryVertexSelection(); // and besides primary vertex
283  reader->SwitchOffPileUpEventRejection(); // remove pileup
284  reader->SwitchOffV0ANDSelection() ; // and besides v0 AND
285 
286  if(collision=="PbPb")
287  {
288  reader->SetCentralityBin(minCen,maxCen); // Accept all events, if not select range
289  reader->SetCentralityOpt(100); // 10 (c= 0-10, 10-20 ...), 20 (c= 0-5, 5-10 ...) or 100 (c= 1, 2, 3 ..)
290  }
291 
292  if(debugLevel > 0) reader->Print("");
293 
294  return reader;
295 }
296 
300 AliCalorimeterUtils* ConfigureCaloUtils(TString calorimeter, Bool_t simulation, Bool_t calibrate,
301  Int_t year, Int_t debugLevel)
302 {
304  cu->SetDebug(debugLevel);
305 
306  // Remove clusters close to borders, at least max energy cell is 1 cell away
309 
310  // Search of local maxima in cluster
311  cu->SetLocalMaximaCutE(0.1);
312  cu->SetLocalMaximaCutEDiff(0.03);
313 
314  cu->SwitchOffClusterPlot();
316 
318 
319  //EMCAL settings
320 
321  if(!simulation)
323 
324  AliEMCALRecoUtils * recou = cu->GetEMCALRecoUtils();
325  cu->SwitchOffRecalibration(); // Check the reader if it is taken into account during filtering
327 
329 
330  Bool_t bExotic = kTRUE;
331  Bool_t bNonLin = kTRUE;
332  Bool_t bBadMap = kTRUE;
333 
334  Bool_t bEnCalib = kFALSE;
335  Bool_t bTiCalib = kFALSE;
336 
337  if(calibrate && !simulation)
338  {
339  cu->SwitchOnRecalibration(); // Check the reader if it is taken into account during filtering
342 
343  bEnCalib = kTRUE;
344  bTiCalib = kTRUE;
345  }
346 
347  gROOT->LoadMacro("$ALICE_PHYSICS/PWGPP/EMCAL/macros/ConfigureEMCALRecoUtils.C");
349  simulation,
350  bExotic,
351  bNonLin,
352  bEnCalib,
353  bBadMap,
354  bTiCalib);
355  recou->SetExoticCellDiffTimeCut(50.);
356 
357  if(calorimeter=="PHOS")
358  {
360  }
361  else
362  {
363  if (year == 2010) cu->SetNumberOfSuperModulesUsed(4); // EMCAL first year
364  else if (year < 2014) cu->SetNumberOfSuperModulesUsed(10);
365  else cu->SetNumberOfSuperModulesUsed(20);
366  }
367 
368  // PHOS
370 
371  if(debugLevel > 0) cu->Print("");
372 
373  return cu;
374 }
375 
381  TString containerName, Bool_t simulation,
382  Int_t year, Int_t debugLevel)
383 {
384  AliAnaPhoton *ana = new AliAnaPhoton();
385  ana->SetDebug(debugLevel); //10 for lots of messages
386 
387  // cluster selection cuts
388 
389  ana->SwitchOffFiducialCut();
390 
391  ana->SetCalorimeter(calorimeter);
392 
393  if(calorimeter == "PHOS")
394  {
395  ana->SetNCellCut(2);// At least 3 cells
396  ana->SetMinPt(0.3);
397  ana->SetMinDistanceToBadChannel(2, 4, 5);
398  ana->SetTimeCut(-1e10,1e10); // open cut
399  }
400  else
401  {//EMCAL
402  ana->SetNCellCut(1);// At least 2 cells
403  ana->SetMinEnergy(0.3); // avoid mip peak at E = 260 MeV
404  ana->SetMaxEnergy(1000);
405  ana->SetTimeCut(-1e10,1e10); // open cut, usual time window of [425-825] ns if time recalibration is off
406  // restrict to less than 100 ns when time calibration is on
407  ana->SetMinDistanceToBadChannel(2, 4, 6);
408  // Not useful if M02 cut is already strong
409  ana->SetNLMCut(1, 2) ;
410  }
411 
413  ana->SwitchOffTMHistoFill() ;
414 
415 
416  //PID cuts (shower shape)
417  ana->SwitchOnCaloPID(); // do PID selection, unless specified in GetCaloPID, selection not based on bayesian
418  AliCaloPID* caloPID = ana->GetCaloPID();
419  //Not used in bayesian
420 
421  //EMCAL
422  caloPID->SetEMCALLambda0CutMax(0.4); // Rather open
423  caloPID->SetEMCALLambda0CutMin(0.10);
424 
425  caloPID->SetEMCALDEtaCut(0.025);
426  caloPID->SetEMCALDPhiCut(0.030);
427 
428  //PHOS
429  caloPID->SetPHOSDispersionCut(2.5);
430  caloPID->SetPHOSRCut(2.);
431 
432  ana->SwitchOnFillShowerShapeHistograms(); // Filled before photon shower shape selection
433  //if(!simulation)ana->SwitchOnFillPileUpHistograms();
434 
435  // Input / output delta AOD settings
436  ana->SetOutputAODName(Form("Photon%s",containerName.Data()));
437  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
438  ana->SetInputAODName (Form("Photon%s",containerName.Data()));
439 
440  //Set Histograms name tag, bins and ranges
441 
442  ana->AddToHistogramsName("AnaPhoton_");
443  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter,collision,year); // see method below
444 
445  // Number of particle type MC histograms
446  ana->FillNOriginHistograms(7);
447  ana->FillNPrimaryHistograms(4);
448 
449  if(simulation) ana->SwitchOnDataMC();
450 
451  if(debugLevel > 0 ) ana->Print("");
452 
453  return ana;
454 }
455 
459 AliAnaPi0* ConfigurePi0Analysis(TString calorimeter, TString collision,
460  TString containerName, Bool_t simulation, Int_t year,
461  Bool_t qaan, Int_t debugLevel)
462 {
463  AliAnaPi0 *ana = new AliAnaPi0();
464 
465  ana->SetDebug(debugLevel);//10 for lots of messages
466 
467  // Input delta AOD settings
468  ana->SetInputAODName(Form("Photon%s",containerName.Data()));
469 
470  // Calorimeter settings
471  ana->SetCalorimeter(calorimeter);
472 
473  //settings for pp collision mixing
474  ana->SwitchOnOwnMix(); //Off when mixing done with general mixing frame
475 
476  // Cuts
477  if(calorimeter=="EMCAL") ana->SetPairTimeCut(70);
478 
479  ana->SetNPIDBits(1);
480  ana->SetNAsymCuts(1); // no asymmetry cut, previous studies showed small effect.
481  // In EMCAL assymetry cut prevents combination of assymetric decays which is the main source of pi0 at high E.
482 
483  if (collision == "pp" )
484  {
485  ana->SetNCentrBin(1);
486  ana->SetNZvertBin(10);
487  ana->SetNRPBin(1);
488  ana->SetNMaxEvMix(100);
489  ana->SetMinPt(0.5);
490  }
491  else if(collision =="PbPb")
492  {
493  ana->SetNCentrBin(10);
494  ana->SetNZvertBin(10);
495  ana->SetNRPBin(4);
496  ana->SetNMaxEvMix(10);
497  ana->SetMinPt(1.5);
498  }
499  else if(collision =="pPb")
500  {
501  ana->SetNCentrBin(1);
502  ana->SetNZvertBin(10);
503  ana->SetNRPBin(4);
504  ana->SetNMaxEvMix(100);
505  ana->SetMinPt(0.5);
506  }
507 
509  ana->SwitchOnSMCombinations();
512 
513  //Set Histograms name tag, bins and ranges
514 
515  ana->AddToHistogramsName("AnaPi0_");
516  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter,collision,year); // see method below
517 
518  if(simulation) ana->SwitchOnDataMC();
519 
520  if(debugLevel > 0) ana->Print("");
521 
522  return ana;
523 }
524 
528 AliAnaChargedParticles* ConfigureChargedAnalysis(TString collision,TString containerName,
529  Bool_t simulation, Int_t year, Int_t debugLevel)
530 {
532  ana->SetDebug(debugLevel); //10 for lots of messages
533 
534  // selection cuts
535 
536  ana->SetMinPt(0.5);
537  ana->SwitchOnFiducialCut();
538  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ; //more restrictive cut in reader and after in isolation
539 
541  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
542 
543  // Input / output delta AOD settings
544 
545  ana->SetOutputAODName(Form("Hadron%s",containerName.Data()));
546  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
547  ana->SetInputAODName(Form("Hadron%s",containerName.Data()));
548 
549  //Set Histograms name tag, bins and ranges
550 
551  ana->AddToHistogramsName("AnaHadrons_");
552  SetHistoRangeAndNBins(ana->GetHistogramRanges(),"",collision,year); // see method below
553 
554  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
555  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
556 
557  if(debugLevel > 0) ana->Print("");
558 
559  return ana;
560 }
561 
566  TString collision, TString containerName,
567  Bool_t simulation, Int_t year, Int_t debugLevel)
568 {
570  ana->SetDebug(debugLevel);
571 
572  ana->SetTriggerPtRange(5,100);
573  ana->SetAssociatedPtRange(0.2,100);
574  //ana->SetDeltaPhiCutRange( TMath::Pi()/2,3*TMath::Pi()/2 ); //[90 deg, 270 deg]
575  ana->SetDeltaPhiCutRange (TMath::DegToRad()*120.,TMath::DegToRad()*240.);
576  ana->SetUeDeltaPhiCutRange(TMath::DegToRad()*60. ,TMath::DegToRad()*120.);
578 
579  ana->SetNAssocPtBins(4);
580  ana->SetAssocPtBinLimit(0, 0.5) ;
581  ana->SetAssocPtBinLimit(1, 2) ;
582  ana->SetAssocPtBinLimit(2, 5) ;
583  ana->SetAssocPtBinLimit(3, 10) ;
584  ana->SetAssocPtBinLimit(4, 20) ;
585 
586  ana->SelectIsolated(kFALSE); // do correlation with isolated photons
587 
588  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
589 
590  ana->SwitchOnAbsoluteLeading(); // Select trigger leading particle of all the selected tracks
591  ana->SwitchOffNearSideLeading(); // Select trigger leading particle of all the particles at +-90 degrees, default
592 
593  //ana->SwitchOnLeadHadronSelection();
594  //ana->SetLeadHadronPhiCut(TMath::DegToRad()*100., TMath::DegToRad()*260.);
595  //ana->SetLeadHadronPtCut(0.5, 100);
596 
597 
598  // Mixing with own pool
599  ana->SwitchOffOwnMix();
600 
601  ana->SetNZvertBin(20);
604 
605  if(collision=="pp")
606  {
607  ana->SetNMaxEvMix(100);
608  ana->SwitchOnTrackMultBins();
609  ana->SetNTrackMultBin(10); // same as SetNCentrBin(10);
610  ana->SetNRPBin(1);
611  }
612  else
613  {
614  ana->SetNMaxEvMix(10);
615  ana->SwitchOffTrackMultBins(); // centrality bins
616  ana->SetNCentrBin(10);
617  ana->SetNRPBin(3);
618  }
619 
620  // Input / output delta AOD settings
621 
622  ana->SetInputAODName(Form("%s%s",particle.Data(),containerName.Data()));
623  ana->SetAODObjArrayName(Form("%sHadronCorr_%s",particle.Data(),containerName.Data()));
624 
627  ana->SwitchOffNeutralCorr(); // Do only correlation with TPC
630 
631  // Underlying event
633  ana->SetUeDeltaPhiCutRange(TMath::Pi()/3, 2*TMath::Pi()/3);
634 
635  //Set Histograms name tag, bins and ranges
636 
637  ana->AddToHistogramsName(Form("Ana%sHadronCorr_",particle.Data()));
638  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter, collision,year); // see method below
639 
640  if(simulation) ana->SwitchOnDataMC();
641 
642  if(debugLevel > 0) ana->Print("");
643 
644  return ana;
645 }
646 
651  Bool_t simulation, Int_t year, Int_t debugLevel)
652 {
654  ana->SetDebug(debugLevel); //10 for lots of messages
655  ana->SetCalorimeter(calorimeter);
656 
657  ana->SetTimeCut(-1e10,1e10); // Open time cut
658  ana->SwitchOnCorrelation();
660  ana->SwitchOffFiducialCut();
666  ana->SwitchOffStudyWeight();
669 
670  ana->AddToHistogramsName("QA_"); //Begining of histograms name
671  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter, collision,year); // see method below
672 
673  if(simulation) ana->SwitchOnDataMC();
674 
675  if(debugLevel > 0) ana->Print("");
676 
677  return ana;
678 }
679 
680 
685  TString collision, Int_t year)
686 {
687  histoRanges->SetHistoPtRangeAndNBins(0, 100, 200) ; // Energy and pt histograms
688 
689  if(calorimeter=="EMCAL")
690  {
691  if ( year == 2010 )
692  {
693  histoRanges->SetHistoPhiRangeAndNBins(79*TMath::DegToRad(), 121*TMath::DegToRad(), 42) ;
694  histoRanges->SetHistoXRangeAndNBins(-230,90,120); // QA
695  histoRanges->SetHistoYRangeAndNBins(370,450,40); // QA
696  }
697  else if ( year < 2014 )
698  {
699  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 182*TMath::DegToRad(), 108) ;
700  histoRanges->SetHistoXRangeAndNBins(-460,90,200); // QA
701  histoRanges->SetHistoYRangeAndNBins(100,450,100); // QA
702  }
703  else // Run2
704  {
705  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 329*TMath::DegToRad(), 250) ;
706  histoRanges->SetHistoXRangeAndNBins(-460,460,230); // QA
707  histoRanges->SetHistoYRangeAndNBins(-450,450,225); // QA
708  }
709 
710  histoRanges->SetHistoEtaRangeAndNBins(-0.72, 0.72, 144) ;
711  }
712  else
713  {
714  histoRanges->SetHistoPhiRangeAndNBins(250*TMath::DegToRad(), 320*TMath::DegToRad(), 70) ;
715  histoRanges->SetHistoEtaRangeAndNBins(-0.13, 0.13, 130) ;
716  }
717 
718  histoRanges->SetHistoShowerShapeRangeAndNBins(-0.1, 4.9, 500);
719 
720  // Invariant mass histoRangeslysis
721  histoRanges->SetHistoMassRangeAndNBins(0., 1., 200) ;
722  histoRanges->SetHistoAsymmetryRangeAndNBins(0., 1. , 100) ;
723 
724  // check if time calibration is on
725  histoRanges->SetHistoTimeRangeAndNBins(-1000.,1000,500);
726  //histoRanges->SetHistoTimeRangeAndNBins(-400.,400,400);
727  histoRanges->SetHistoDiffTimeRangeAndNBins(-200, 200, 800);
728 
729  // track-cluster residuals
730  histoRanges->SetHistoTrackResidualEtaRangeAndNBins(-0.15,0.15,300);
731  histoRanges->SetHistoTrackResidualPhiRangeAndNBins(-0.15,0.15,300);
732  histoRanges->SetHistodRRangeAndNBins(0.,0.15,150);//QA
733 
734  // QA, electron, charged
735  histoRanges->SetHistoPOverERangeAndNBins(0, 2. ,200);
736  histoRanges->SetHistodEdxRangeAndNBins (0.,200.0,200);
737 
738  // QA
739  histoRanges->SetHistoFinePtRangeAndNBins(0, 10, 200) ; // bining for fhAmpId
740  histoRanges->SetHistoVertexDistRangeAndNBins(0.,500.,500);
741  histoRanges->SetHistoZRangeAndNBins(-350,350,175);
742  histoRanges->SetHistoRRangeAndNBins(430,460,30);
743  histoRanges->SetHistoV0SignalRangeAndNBins(0,5000,500);
744  histoRanges->SetHistoV0MultiplicityRangeAndNBins(0,5000,500);
745 
746  // QA, correlation
747  if(collision=="PbPb")
748  {
749  histoRanges->SetHistoNClusterCellRangeAndNBins(0,100,100);
750  histoRanges->SetHistoNClustersRangeAndNBins(0,500,50);
751  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,2000,200);
752  }
753  else
754  {
755  histoRanges->SetHistoNClusterCellRangeAndNBins(0,50,50);
756  histoRanges->SetHistoNClustersRangeAndNBins(0,50,50);
757  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,200,200);
758  }
759 
760  // xE, zT
761  histoRanges->SetHistoRatioRangeAndNBins(0.,2.,200);
762  histoRanges->SetHistoHBPRangeAndNBins (0.,10.,200);
763 
764  // Isolation
765  histoRanges->SetHistoPtInConeRangeAndNBins(0, 50 , 250);
766  histoRanges->SetHistoPtSumRangeAndNBins (0, 100, 250);
767 
768 }
769 
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:111
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:116
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 SetEMCALEMin(Float_t en)
void SwitchOnSMCombinations()
Definition: AliAnaPi0.h:89
void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3)
Definition: AliAnaPhoton.h:94
void SetHistoRangeAndNBins(AliHistogramRanges *histoRanges, TString calorimeter, TString collision, Int_t year)
void SwitchOffTMHistoFill()
Definition: AliAnaPhoton.h:84
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 SetNumberOfCellsFromEMCALBorder(Int_t n)
void SetNCellCut(Int_t n)
Definition: AliAnaPhoton.h:102
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:1384
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:97
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
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 *)
Track selection for correlation analysis.
virtual void SwitchOffFiducialCut()
void SwitchOnFillShowerShapeHistograms()
Definition: AliAnaPhoton.h:69
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 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
void FillNOriginHistograms(Int_t n)
Definition: AliAnaPhoton.h:114
virtual void SetNMaxEvMix(Int_t n=20)
Number of bins in track multiplicity.
void SetHistoShowerShapeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetPHOSEMax(Float_t en)
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 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: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)
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)