AliPhysics  f05a842 (f05a842)
 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 
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 
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  // Acceptance plots
474  // ana->SwitchOnFiducialCut(); // Needed to fill acceptance plots with predefined calorimeter acceptances
475  // ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.7, 100, 180) ;
476  // ana->GetFiducialCut()->DoEMCALFiducialCut(kTRUE);
477 
478  ana->SwitchOffFiducialCut();
480 
481  // Settings for pp collision mixing
482  ana->SwitchOnOwnMix(); //Off when mixing done with general mixing frame
483 
484  // Cuts
485  if(calorimeter=="EMCAL") ana->SetPairTimeCut(70);
486 
487  ana->SetNPIDBits(1);
488  ana->SetNAsymCuts(1); // no asymmetry cut, previous studies showed small effect.
489  // In EMCAL assymetry cut prevents combination of assymetric decays which is the main source of pi0 at high E.
490 
491  if (collision == "pp" )
492  {
493  ana->SetNCentrBin(1);
494  ana->SetNZvertBin(10);
495  ana->SetNRPBin(1);
496  ana->SetNMaxEvMix(100);
497  ana->SetMinPt(0.5);
498  }
499  else if(collision =="PbPb")
500  {
501  ana->SetNCentrBin(10);
502  ana->SetNZvertBin(10);
503  ana->SetNRPBin(4);
504  ana->SetNMaxEvMix(10);
505  ana->SetMinPt(1.5);
506  }
507  else if(collision =="pPb")
508  {
509  ana->SetNCentrBin(1);
510  ana->SetNZvertBin(10);
511  ana->SetNRPBin(4);
512  ana->SetNMaxEvMix(100);
513  ana->SetMinPt(0.5);
514  }
515 
517  ana->SwitchOnSMCombinations();
520 
521  //Set Histograms name tag, bins and ranges
522 
523  ana->AddToHistogramsName("AnaPi0_");
524  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter,collision,year); // see method below
525 
526  if(simulation) ana->SwitchOnDataMC();
527 
528  if(debugLevel > 0) ana->Print("");
529 
530  return ana;
531 }
532 
537  Bool_t simulation, Int_t year, Int_t debugLevel)
538 {
540  ana->SetDebug(debugLevel); //10 for lots of messages
541 
542  // selection cuts
543 
544  ana->SetMinPt(0.5);
545  ana->SwitchOnFiducialCut();
546  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ; //more restrictive cut in reader and after in isolation
547 
549  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
550 
551  // Input / output delta AOD settings
552 
553  ana->SetOutputAODName(Form("Hadron%s",containerName.Data()));
554  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
555  ana->SetInputAODName(Form("Hadron%s",containerName.Data()));
556 
557  //Set Histograms name tag, bins and ranges
558 
559  ana->AddToHistogramsName("AnaHadrons_");
560  SetHistoRangeAndNBins(ana->GetHistogramRanges(),"",collision,year); // see method below
561 
562  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
563  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
564 
565  if(debugLevel > 0) ana->Print("");
566 
567  return ana;
568 }
569 
574  TString collision, TString containerName,
575  Bool_t simulation, Int_t year, Int_t debugLevel)
576 {
578  ana->SetDebug(debugLevel);
579 
580  ana->SetTriggerPtRange(5,100);
581  ana->SetAssociatedPtRange(0.2,100);
582  //ana->SetDeltaPhiCutRange( TMath::Pi()/2,3*TMath::Pi()/2 ); //[90 deg, 270 deg]
583  ana->SetDeltaPhiCutRange (TMath::DegToRad()*120.,TMath::DegToRad()*240.);
584  ana->SetUeDeltaPhiCutRange(TMath::DegToRad()*60. ,TMath::DegToRad()*120.);
586 
587  ana->SetNAssocPtBins(4);
588  ana->SetAssocPtBinLimit(0, 0.5) ;
589  ana->SetAssocPtBinLimit(1, 2) ;
590  ana->SetAssocPtBinLimit(2, 5) ;
591  ana->SetAssocPtBinLimit(3, 10) ;
592  ana->SetAssocPtBinLimit(4, 20) ;
593 
594  ana->SelectIsolated(kFALSE); // do correlation with isolated photons
595 
596  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
597 
598  ana->SwitchOnAbsoluteLeading(); // Select trigger leading particle of all the selected tracks
599  ana->SwitchOffNearSideLeading(); // Select trigger leading particle of all the particles at +-90 degrees, default
600 
601  //ana->SwitchOnLeadHadronSelection();
602  //ana->SetLeadHadronPhiCut(TMath::DegToRad()*100., TMath::DegToRad()*260.);
603  //ana->SetLeadHadronPtCut(0.5, 100);
604 
605 
606  // Mixing with own pool
607  ana->SwitchOffOwnMix();
608 
609  ana->SetNZvertBin(20);
612 
613  if(collision=="pp")
614  {
615  ana->SetNMaxEvMix(100);
616  ana->SwitchOnTrackMultBins();
617  ana->SetNTrackMultBin(10); // same as SetNCentrBin(10);
618  ana->SetNRPBin(1);
619  }
620  else
621  {
622  ana->SetNMaxEvMix(10);
623  ana->SwitchOffTrackMultBins(); // centrality bins
624  ana->SetNCentrBin(10);
625  ana->SetNRPBin(3);
626  }
627 
628  // Input / output delta AOD settings
629 
630  ana->SetInputAODName(Form("%s%s",particle.Data(),containerName.Data()));
631  ana->SetAODObjArrayName(Form("%sHadronCorr_%s",particle.Data(),containerName.Data()));
632 
635  ana->SwitchOffNeutralCorr(); // Do only correlation with TPC
638 
639  // Underlying event
641  ana->SetUeDeltaPhiCutRange(TMath::Pi()/3, 2*TMath::Pi()/3);
642 
643  //Set Histograms name tag, bins and ranges
644 
645  ana->AddToHistogramsName(Form("Ana%sHadronCorr_",particle.Data()));
646  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter, collision,year); // see method below
647 
648  if(simulation) ana->SwitchOnDataMC();
649 
650  if(debugLevel > 0) ana->Print("");
651 
652  return ana;
653 }
654 
659  Bool_t simulation, Int_t year, Int_t debugLevel)
660 {
662  ana->SetDebug(debugLevel); //10 for lots of messages
663  ana->SetCalorimeter(calorimeter);
664 
665  ana->SetTimeCut(-1e10,1e10); // Open time cut
666  ana->SwitchOnCorrelation();
668  ana->SwitchOffFiducialCut();
674  ana->SwitchOffStudyWeight();
677 
678  ana->AddToHistogramsName("QA_"); //Begining of histograms name
679  SetHistoRangeAndNBins(ana->GetHistogramRanges(),calorimeter, collision,year); // see method below
680 
681  if(simulation) ana->SwitchOnDataMC();
682 
683  if(debugLevel > 0) ana->Print("");
684 
685  return ana;
686 }
687 
688 
693  TString collision, Int_t year)
694 {
695  histoRanges->SetHistoPtRangeAndNBins(0, 100, 200) ; // Energy and pt histograms
696 
697  if(calorimeter=="EMCAL")
698  {
699  if ( year == 2010 )
700  {
701  histoRanges->SetHistoPhiRangeAndNBins(79*TMath::DegToRad(), 121*TMath::DegToRad(), 42) ;
702  histoRanges->SetHistoXRangeAndNBins(-230,90,120); // QA
703  histoRanges->SetHistoYRangeAndNBins(370,450,40); // QA
704  }
705  else if ( year < 2014 )
706  {
707  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 182*TMath::DegToRad(), 108) ;
708  histoRanges->SetHistoXRangeAndNBins(-460,90,200); // QA
709  histoRanges->SetHistoYRangeAndNBins(100,450,100); // QA
710  }
711  else // Run2
712  {
713  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 329*TMath::DegToRad(), 250) ;
714  histoRanges->SetHistoXRangeAndNBins(-460,460,230); // QA
715  histoRanges->SetHistoYRangeAndNBins(-450,450,225); // QA
716  }
717 
718  histoRanges->SetHistoEtaRangeAndNBins(-0.72, 0.72, 144) ;
719  }
720  else
721  {
722  histoRanges->SetHistoPhiRangeAndNBins(250*TMath::DegToRad(), 320*TMath::DegToRad(), 70) ;
723  histoRanges->SetHistoEtaRangeAndNBins(-0.13, 0.13, 130) ;
724  }
725 
726  histoRanges->SetHistoShowerShapeRangeAndNBins(-0.1, 4.9, 500);
727 
728  // Invariant mass histoRangeslysis
729  histoRanges->SetHistoMassRangeAndNBins(0., 1., 200) ;
730  histoRanges->SetHistoAsymmetryRangeAndNBins(0., 1. , 100) ;
731 
732  // check if time calibration is on
733  histoRanges->SetHistoTimeRangeAndNBins(-1000.,1000,500);
734  //histoRanges->SetHistoTimeRangeAndNBins(-400.,400,400);
735  histoRanges->SetHistoDiffTimeRangeAndNBins(-200, 200, 800);
736 
737  // track-cluster residuals
738  histoRanges->SetHistoTrackResidualEtaRangeAndNBins(-0.15,0.15,300);
739  histoRanges->SetHistoTrackResidualPhiRangeAndNBins(-0.15,0.15,300);
740  histoRanges->SetHistodRRangeAndNBins(0.,0.15,150);//QA
741 
742  // QA, electron, charged
743  histoRanges->SetHistoPOverERangeAndNBins(0, 2. ,200);
744  histoRanges->SetHistodEdxRangeAndNBins (0.,200.0,200);
745 
746  // QA
747  histoRanges->SetHistoFinePtRangeAndNBins(0, 10, 200) ; // bining for fhAmpId
748  histoRanges->SetHistoVertexDistRangeAndNBins(0.,500.,500);
749  histoRanges->SetHistoZRangeAndNBins(-350,350,175);
750  histoRanges->SetHistoRRangeAndNBins(430,460,30);
751  histoRanges->SetHistoV0SignalRangeAndNBins(0,5000,500);
752  histoRanges->SetHistoV0MultiplicityRangeAndNBins(0,5000,500);
753 
754  // QA, correlation
755  if(collision=="PbPb")
756  {
757  histoRanges->SetHistoNClusterCellRangeAndNBins(0,100,100);
758  histoRanges->SetHistoNClustersRangeAndNBins(0,500,50);
759  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,2000,200);
760  }
761  else
762  {
763  histoRanges->SetHistoNClusterCellRangeAndNBins(0,50,50);
764  histoRanges->SetHistoNClustersRangeAndNBins(0,50,50);
765  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,200,200);
766  }
767 
768  // xE, zT
769  histoRanges->SetHistoRatioRangeAndNBins(0.,2.,200);
770  histoRanges->SetHistoHBPRangeAndNBins (0.,10.,200);
771 
772  // Isolation
773  histoRanges->SetHistoPtInConeRangeAndNBins(0, 50 , 250);
774  histoRanges->SetHistoPtSumRangeAndNBins (0, 100, 250);
775 
776 }
777 
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:118
virtual void SwitchOnAODHybridTrackSelection()
virtual void SetCentralityBin(Int_t min, Int_t max)
AliEMCALRecoUtils * GetEMCALRecoUtils() const
void FillNPrimaryHistograms(Int_t n)
Definition: AliAnaPhoton.h:122
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)
int Int_t
Definition: External.C:63
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:1866
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:116
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:120
virtual void SetNMaxEvMix(Int_t n=20)
Number of bins in track multiplicity.
void SetHistoShowerShapeRangeAndNBins(Float_t min, Float_t max, Int_t n)
bool Bool_t
Definition: External.C:53
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:135
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)