AliPhysics  2c6b7ad (2c6b7ad)
ConfigureCaloTrackCorrAnalysis.C
Go to the documentation of this file.
1 
23 // Set includes for compilation
24 
25 #if !defined(__CINT__) || defined(__MAKECINT__)
26 
27 #include <TString.h>
28 #include <TSystem.h>
29 #include <TROOT.h>
30 
31 #include "AliAnaPhoton.h"
32 #include "AliAnaElectron.h"
33 #include "AliAnaPi0.h"
34 #include "AliAnaPi0EbE.h"
35 #include "AliHistogramRanges.h"
38 #include "AliAnaChargedParticles.h"
39 #include "AliAnaCalorimeterQA.h"
41 #include "AliAnaGeneratorKine.h"
44 #endif
45 
48 
50 // Some examples of strings: "Photon_MergedPi0_DecayPi0_Isolation_Correlation_Bkg_QA_Charged_HighMult_MultiIso_PerSM_PerTCard",
52 
70  TString col, Bool_t simulation,
71  Bool_t printSettings, Int_t debug)
72 {
73  //
74  // Histograms ranges
75  //
76  AliHistogramRanges* histoRanges = ana->GetHistogramRanges();
77 
78  if ( histoString != "" )
79  ana->AddToHistogramsName(Form("%s_%s", histoString.Data(), (ana->GetAddedHistogramsStringToName()).Data()) );
80 
81  histoRanges->SetHistoPtRangeAndNBins(0, 100, 200) ; // Energy and pt histograms
82 
83  if(calorimeter=="EMCAL")
84  {
85  ana->SetFirstSMCoveredByTRD(-1);
86 
87  if ( year == 2010 )
88  {
89  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 122*TMath::DegToRad(), 78) ;
90  histoRanges->SetHistoXRangeAndNBins(-230,90,120); // QA
91  histoRanges->SetHistoYRangeAndNBins(370,450,40); // QA
92  }
93  else if ( year < 2014 )
94  {
95  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 182*TMath::DegToRad(), 104) ;
96  histoRanges->SetHistoXRangeAndNBins(-460,90,200); // QA
97  histoRanges->SetHistoYRangeAndNBins(100,450,100); // QA
98 
99  if (year == 2011) ana->SetFirstSMCoveredByTRD( 6);
100  else if(year == 2012 ||
101  year == 2013) ana->SetFirstSMCoveredByTRD( 4);
102  }
103  else // Run2
104  {
105  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 189*TMath::DegToRad(), 111) ;
106  histoRanges->SetHistoXRangeAndNBins(-460,460,230); // QA, revise
107  histoRanges->SetHistoYRangeAndNBins(-450,450,225); // QA, revise
108  }
109 
110  histoRanges->SetHistoEtaRangeAndNBins(-0.72, 0.72, 144) ;
111  }
112  else if(calorimeter=="DCAL")
113  {
114  histoRanges->SetHistoPhiRangeAndNBins(260*TMath::DegToRad(), 327*TMath::DegToRad(), 67) ;
115  histoRanges->SetHistoEtaRangeAndNBins(-0.72, 0.72, 144) ;
116  histoRanges->SetHistoXRangeAndNBins(-460,460,230); // QA, revise
117  histoRanges->SetHistoYRangeAndNBins(-450,450,225); // QA, revise
118  }
119  else if(calorimeter=="PHOS")
120  {
121  histoRanges->SetHistoPhiRangeAndNBins(250*TMath::DegToRad(), 320*TMath::DegToRad(), 70) ;
122  histoRanges->SetHistoEtaRangeAndNBins(-0.13, 0.13, 130) ;
123  }
124  else if(calorimeter=="CTS")
125  {
126  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
127  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
128  }
129 
130  histoRanges->SetHistoShowerShapeRangeAndNBins(-0.1, 2.9, 300);
131 
132  // Invariant mass histo
133  histoRanges->SetHistoMassRangeAndNBins(0., 1., 200) ;
134  histoRanges->SetHistoAsymmetryRangeAndNBins(0., 1. , 100) ;
135 
136  // check if time calibration is on
137  //histoRanges->SetHistoTimeRangeAndNBins(-1000.,1000,1000);
138  histoRanges->SetHistoTimeRangeAndNBins(-400.,400,400);
139  histoRanges->SetHistoDiffTimeRangeAndNBins(-200, 200, 800);
140 
141  // track-cluster residuals
142  histoRanges->SetHistoTrackResidualEtaRangeAndNBins(-0.06,0.06,120);
143  histoRanges->SetHistoTrackResidualPhiRangeAndNBins(-0.06,0.06,120);
144  histoRanges->SetHistodRRangeAndNBins(0.,0.06,60);//QA
145 
146  // QA, electron, charged
147  histoRanges->SetHistoEOverPRangeAndNBins(0,1.5,150);
148  histoRanges->SetHistodEdxRangeAndNBins(0.,200.,200);
149 
150  // QA
151  histoRanges->SetHistoFinePtRangeAndNBins(0, 10, 200) ; // bining for fhAmpId
152  histoRanges->SetHistoVertexDistRangeAndNBins(0.,500.,500);
153  histoRanges->SetHistoZRangeAndNBins(-350,350,175);
154  histoRanges->SetHistoRRangeAndNBins(430,460,30);
155  histoRanges->SetHistoV0SignalRangeAndNBins(0,5000,500);
156  histoRanges->SetHistoV0MultiplicityRangeAndNBins(0,5000,500);
157 
158  // QA, correlation
159  if(col=="PbPb")
160  {
161  histoRanges->SetHistoNClusterCellRangeAndNBins(0,100,100);
162  histoRanges->SetHistoNClustersRangeAndNBins(0,500,50);
163  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,2000,200);
164  }
165  else
166  {
167  histoRanges->SetHistoNClusterCellRangeAndNBins(0,50,50);
168  histoRanges->SetHistoNClustersRangeAndNBins(0,50,50);
169  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,200,200);
170  }
171 
172  // xE, zT
173  histoRanges->SetHistoRatioRangeAndNBins(0.,2.,200);
174  histoRanges->SetHistoHBPRangeAndNBins (0.,10.,200);
175 
176  // Isolation
177  histoRanges->SetHistoPtInConeRangeAndNBins(0, 50 , 250);
178  histoRanges->SetHistoPtSumRangeAndNBins (0, 100, 250);
179 
180  //
181  // MC histograms?
182  //
183  if(simulation) ana->SwitchOnDataMC() ;//Access MC stack and fill more histograms, AOD MC not implemented yet.
184  else ana->SwitchOffDataMC() ;
185 
186 
187  //
188  // Specialized histograms on multiplicity
189  //
190  if ( kAnaCutsString.Contains("HighMult") )
192  else
194 
195  //
196  // Debug
197  //
198  if(printSettings) ana->Print("");
199 
200  ana->SetDebug(debug); // 10 for lots of messages
201 }
202 
217  TString calorimeter, Int_t year, Int_t tm,
218  Bool_t printSettings, Int_t debug,
219  TString histoString )
220 {
221  AliAnaPhoton *ana = new AliAnaPhoton();
222 
223  // cluster selection cuts
224 
226 
227  ana->SwitchOnFiducialCut();
228  if ( calorimeter == "EMCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.7, 80, 187) ; // EMC
229  else if ( calorimeter == "DCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.7, 260, 327) ; // DMC
230 
231  if ( calorimeter.Contains("CAL") ) ana->GetFiducialCut()->DoEMCALFiducialCut(kTRUE);
232 
233  ana->SetCalorimeter(calorimeter);
234  if(calorimeter == "DCAL")
235  {
236  TString calo = "EMCAL";
237  ana->SetCalorimeter(calo);
238  }
239 
240  ana->SwitchOnFillShowerShapeHistograms(); // Filled before photon shower shape selection
241  if( kAnaCutsString.Contains("MultiIso") ) ana->SwitchOffFillShowerShapeHistograms();
242 
243  if ( kAnaCutsString.Contains("PerSM") )
245 
246  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
247 
248  if(tm) ana->SwitchOnTrackMatchRejection() ;
249  else ana->SwitchOffTrackMatchRejection() ;
250 
251  // Fill track matching histograms if track matching activated
252  // and only once in case of multiple analysis
253  if ( tm && !kAnaCutsString.Contains("MultiIso") )
254  {
255  ana->SwitchOnTMHistoFill() ;
256  if(tm > 1) ana->SwitchOnTMTrackPtHistoFill() ;
257  }
258 
259  if(calorimeter == "PHOS")
260  {
261  ana->SetNCellCut(2);// At least 3 cells
262  ana->SetMinPt(0.3);
263  ana->SetMinDistanceToBadChannel(2, 4, 5);
264  ana->SetTimeCut(-1e10,1e10); // open cut
265  }
266  else
267  {//EMCAL
268  ana->SetNCellCut(1);// At least 2 cells
269  ana->SetMinEnergy(0.3); // avoid mip peak at E = 260 MeV
270  ana->SetMaxEnergy(100);
271  ana->SetTimeCut(-1e10,1e10); // open cut, usual time window of [425-825] ns if time recalibration is off
272  // restrict to less than 100 ns when time calibration is on
273  ana->SetMinDistanceToBadChannel(2, 4, 6);
274 
275  // NLM cut, used in all, exclude clusters with more than 2 maxima
276  // Not needed if M02 cut is already strong or clusterizer V2
277  ana->SetNLMCut(1, 2) ;
278  }
279 
280  //PID cuts (shower shape)
281  ana->SwitchOnCaloPID(); // do PID selection, unless specified in GetCaloPID, selection not based on bayesian
282  AliCaloPID* caloPID = ana->GetCaloPID();
283  //Not used in bayesian
284 
285  // EMCAL
286 
287  //caloPID->SetEMCALLambda0CutMax(0.27);
288  caloPID->SetEMCALLambda0CutMax(10); // open, full shower shape needed for isolation studies
289  caloPID->SetEMCALLambda0CutMin(0.10);
290 
291  // Track matching
292  // tm = 1, fixed cuts
293  caloPID->SetEMCALDEtaCut(0.025);
294  caloPID->SetEMCALDPhiCut(0.030);
295 
296  // pT track dependent cuts
297  if(tm > 1) caloPID->SwitchOnEMCTrackPtDepResMatching();
298 
299  // PHOS
300  caloPID->SetPHOSDispersionCut(2.5);
301  caloPID->SetPHOSRCut(2.);
302  //if(kInputData=="AOD") caloPID->SetPHOSRCut(2000.); // Open cut since dX, dZ not stored
303 
304  // Branch AOD settings
305  ana->SetOutputAODName(Form("PhotonTrigger_%s",kAnaCaloTrackCorr.Data()));
306  ana->SetOutputAODClassName("AliCaloTrackParticleCorrelation");
307 
308  //Set Histograms name tag, bins and ranges
309  //ana->AddToHistogramsName(Form("AnaPhoton_TM%d_",tm));
310  ana->AddToHistogramsName("AnaPhoton_");
311 
312  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug) ; // see method below
313 
314  if(ana->GetFirstSMCoveredByTRD() > 0)
315  printf("ConfigurePhotonAnalysis() >>> Set first SM covered by TRD, SM=%d <<< year %d \n", ana->GetFirstSMCoveredByTRD(),year);
316 
317  // Number of particle type MC histograms
318  ana->FillNOriginHistograms (17); // 18 max
319  ana->FillNPrimaryHistograms(6); // 6 max
320 
321  return ana;
322 }
323 
337  TString calorimeter, Int_t year,
338  Bool_t printSettings, Int_t debug,
339  TString histoString)
340 {
342  ana->SetDebug(debug); //10 for lots of messages
343 
344  if ( calorimeter == "EMCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.7, 80, 187) ; // EMC
345  else if ( calorimeter == "DCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.7, 260, 327) ; // DMC
346 
347  if ( calorimeter.Contains("CAL") ) ana->GetFiducialCut()->DoEMCALFiducialCut(kTRUE);
348 
349  ana->SetCalorimeter(calorimeter);
350  if(calorimeter == "DCAL")
351  {
352  TString calo = "EMCAL";
353  ana->SetCalorimeter(calo);
354  }
355 
356  // What particles to select:
357  //ana->FillAODWithElectrons();
358  //ana->FillAODWithHadrons();
359  ana->FillAODWithAny(); // Both
360 
361  if(calorimeter == "PHOS")
362  {
363  ana->SetNCellCut(2);// At least 2 cells
364  ana->SetMinPt(0.3);
366  }
367  else
368  {// EMCAL
369  ana->SetNCellCut(1);// At least 2 cells
370  ana->SetMinPt(0.7); // no effect minium EMCAL cut.
371  ana->SetMaxPt(100);
372  //ana->SetTimeCut(400,900);// Time window of [400-900] ns
374  }
375 
376  // Electron selection cuts with tracks
377  //ana->SetM02Range(0.05, 0.35);
378  //ana->SetM20Range(-10, 0.3);
379  //ana->SetEOverP(0.9, 1.2);
380  //ana->SetNSigma(-1, 3);
381  //ana->SetNSigmaForHadron(-10, -4);
382 
383 // if (kRunNumber < 146861) ana->SetdEdxCut(72, 90);
384 // else if(kRunNumber < 154000) ana->SetdEdxCut(54, 70);
385 // else ana->SetdEdxCut(74, 90);
386 //
387 // if(simulation) ana->SetdEdxCut(80, 100);
388 
390 
392 
393  ana->SetOutputAODName(Form("Electron_%s",kAnaCaloTrackCorr.Data()));
394  ana->SetOutputAODClassName("AliCaloTrackParticleCorrelation");
395 
396  // Set Histograms name tag, bins and ranges
397 
398  //ana->AddToHistogramsName(Form("AnaElectron_TM%d_",tm));
399  ana->AddToHistogramsName("AnaElectron_");
400 
401  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug) ; // see method below
402 
403  //if(printSettings)
404  ana->Print("");
405 
406  return ana ;
407 }
408 
427  Bool_t useSSIso, Bool_t useAsy,
428  TString col, Bool_t simulation,
429  TString calorimeter, Int_t year, Int_t tm,
430  Bool_t printSettings, Int_t debug,
431  TString histoString )
432 {
433  // Configuration of pi0 event by event selection
434 
435  AliAnaPi0EbE *ana = new AliAnaPi0EbE();
436 
437  ana->SetDebug(debug);
438 
439  ana->SetAnalysisType((AliAnaPi0EbE::anaTypes)analysis);
440  TString opt = "";
441  if(analysis==AliAnaPi0EbE::kIMCaloTracks) opt = "Conv";
442  if(analysis==AliAnaPi0EbE::kSSCalo) opt = "SS";
443 
446 
448  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
449  //if(!kTime && !simulation) ana->SwitchOnFillEMCALBCHistograms();
450 
451  if(tm) ana->SwitchOnTrackMatchRejection() ;
452  else ana->SwitchOffTrackMatchRejection() ;
453 
454  if ( tm && !kAnaCutsString.Contains("Photon") && !kAnaCutsString.Contains("MultiIso") )
455  ana->SwitchOnTMHistoFill() ;
456  else
457  ana->SwitchOffTMHistoFill() ;
458 
459  ana->SetCalorimeter(calorimeter);
460  if(calorimeter == "DCAL")
461  {
462  TString calo = "EMCAL";
463  ana->SetCalorimeter(calo);
464  }
465 
466  // Branch AOD settings
467  ana->SetOutputAODName(Form("%s%sTrigger_%s",particle.Data(), opt.Data(), kAnaCaloTrackCorr.Data()));
468  printf("ConfigurePi0EbEAnalysis() *** Out branch %s***\n",ana->GetOutputAODName().Data());
469  ana->SetOutputAODClassName("AliCaloTrackParticleCorrelation");
470 
471  if(analysis == AliAnaPi0EbE::kIMCaloTracks) ana->SetInputAODGammaConvName("PhotonsCTS");
472 
473  //Set Histograms name tag, bins and ranges
474 
475  //ana->AddToHistogramsName(Form("Ana%s%sEbE_TM%d_",particle.Data(),opt.Data(),tm));
476  ana->AddToHistogramsName(Form("Ana%s%sEbE_",particle.Data(),opt.Data()));
477 
478  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug); // see method below
479 
481  if(analysis!=AliAnaPi0EbE::kSSCalo)
482  {
483  ana->SetInputAODName(Form("PhotonTrigger_%s",kAnaCaloTrackCorr.Data()));
484 
485  ana->SetM02CutForInvMass(0.1,0.35); // Loose SS cut
486 
488  ana->SetR(0.4);
490 
491  if(useSSIso)
492  {
494  //ana->AddToHistogramsName(Form("Ana%s%sEbEIsoDecay_TM%d_",particle.Data(),opt.Data(),tm));
495  ana->AddToHistogramsName(Form("Ana%s%sEbEIsoDecay_",particle.Data(),opt.Data()));
496  ana->SetOutputAODName(Form("%s%sIsoDecayTrigger_%s",particle.Data(), opt.Data(), kAnaCaloTrackCorr.Data()));
497  }
498 
499  if ( calorimeter.Contains("CAL") && !simulation ) ana->SetPairTimeCut(100);
500 
502  nms->SetParticle(particle);
503 
504  //****
505  nms->SetInvMassCutMaxParameters(0,0,0); // Overrule the setting in SetParticle for Pi0 option
506  //****
507 
508  // Tighten a bit mass cut with respect to default window
509  if(particle=="Pi0") nms->SetInvMassCutRange(0.110,0.160);
510  if(particle=="Eta") nms->SetInvMassCutRange(0.520,0.580);
511 
512  //if(!particle.Contains("SideBand")) nms->SwitchOnAngleSelection();
513  //else nms->SwitchOnAngleSelection();
514 
516 
517  if(particle.Contains("Pi0SideBand")) // For pi0, do not consider left band
518  nms->SetSideBandCutRanges(-1,0,0.190,0.240);
519 
520  if(particle.Contains("EtaSideBand")) // For pi0, do not consider left band
521  nms->SetSideBandCutRanges(0.410,0.470,0.620,0.680);
522 
524  //nms->SetAngleMaxParam(2,0.2);
525  nms->SetHistoERangeAndNBins(0, 20, 80) ;
526  //nms->SetHistoIMRangeAndNBins(0, 1, 400);
527  }
528  else
529  {
530  // cluster splitting settings
531  ana->SetMinEnergy(6);
532  ana->SetMaxEnergy(100.);
533 
534  ana->SetNLMMinEnergy(0, 10);
535  ana->SetNLMMinEnergy(1, 6);
536  ana->SetNLMMinEnergy(2, 6);
537 
538  // NLM cut, used in all, exclude clusters with more than 2 maxima
539  ana->SetNLMCut(1, 2) ;
540 
541  //
542  ana->SetMinDistanceToBadChannel(2, 4, 6);
544  ana->SetTimeCut(-1e10,1e10); // Open time cut
545 
546  AliCaloPID* caloPID = ana->GetCaloPID();
547 
548  // Track matching
549  // tm = 1, fixed cuts
550  caloPID->SetEMCALDEtaCut(0.025);
551  caloPID->SetEMCALDPhiCut(0.030);
552 
553  // pT track dependent cuts
554  if(tm > 1) caloPID->SwitchOnEMCTrackPtDepResMatching();
555 
556  caloPID->SetSplitWidthSigma(3); // cut at 3 sigma of the mean pi0 peak.
557 
558  if(!useSSIso)
559  {
560  printf("ConfigurePi0EbEAnalysis() << Do not apply SS cut on merged pi0 analysis >> \n");
561  caloPID->SwitchOffSplitShowerShapeCut() ;
562  //ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_TM%d_",particle.Data(),opt.Data(),tm));
563  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_",particle.Data(),opt.Data()));
564  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenSS",particle.Data(), opt.Data(), kAnaCaloTrackCorr.Data()));
565  caloPID->SetClusterSplittingM02Cut(0.1,10);
566  }
567  else
568  {
569  caloPID->SetClusterSplittingM02Cut(0.3,4); // Do the selection in the analysis class and not in the PID method to fill SS histograms
570  caloPID->SwitchOnSplitShowerShapeCut() ;
571  }
572 
573  if(useAsy)
574  {
575  caloPID->SwitchOnSplitAsymmetryCut() ;
577  ana->GetCaloPID()->SetSubClusterEnergyMinimum(1,0.5);
578  ana->GetCaloPID()->SetSubClusterEnergyMinimum(2,0.5);
579  }
580  else
581  {
582  caloPID->SwitchOffSplitAsymmetryCut() ;
583  if(!useSSIso)
584  {
585  //ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_OpenAsy_TM%d_",particle.Data(),opt.Data(),tm));
586  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_OpenAsy_",particle.Data(),opt.Data()));
587  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenSS_OpenAsy",particle.Data(), opt.Data(), kAnaCaloTrackCorr.Data()));
588  }
589  else
590  {
591  //ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenAsy_TM%d_",particle.Data(),opt.Data(),tm));
592  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenAsy_",particle.Data(),opt.Data()));
593  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenAsy",particle.Data(), opt.Data(), kAnaCaloTrackCorr.Data()));
594  }
595  }
596 
597  // For Pi0 only if SwitchOnSimpleSplitMassCut()
598  caloPID->SetPi0MassRange(0.10, 0.18);
599  caloPID->SetEtaMassRange(0.50, 0.60);
600  caloPID->SetPhotonMassRange(0.00, 0.08);
601 
602  caloPID->SetClusterSplittingMinNCells(6);
603 
604  //caloPID->SetSplitEnergyFractionMinimum(0, 0.95);
605  //caloPID->SetSplitEnergyFractionMinimum(1, 0.95);
606  //caloPID->SetSplitEnergyFractionMinimum(2, 0.8);
607 
608  if(col=="PbPb" || kAnaCaloTrackCorr.Contains("150"))
609  {
610  caloPID->SetClusterSplittingMinNCells(4);
611  //caloPID->SetPi0MassShiftHighECell(0.005);
612  }
613  }
615 
616  return ana;
617 }
618 
619 
635 (TString col, Bool_t simulation,
636  TString calorimeter, Bool_t bothCalo,
637  Int_t year, Bool_t mixOn,
638  Bool_t printSettings, Int_t debug,
639  TString histoString )
640 {
641  AliAnaPi0 *ana = new AliAnaPi0();
642 
643  ana->SetDebug(debug);
644 
645  // Input delta AOD settings
646  ana->SetInputAODName(Form("PhotonTrigger_%s",kAnaCaloTrackCorr.Data()));
647 
648  if(bothCalo)
649  {
651 
652  TString otherDetector = Form("PhotonTrigger_%s",kAnaCaloTrackCorr.Data());
653 
654  if ( calorimeter == "EMCAL" )
655  otherDetector.ReplaceAll("PhotonTrigger_EMCAL","PhotonTrigger_PHOS");
656  else
657  otherDetector.ReplaceAll("PhotonTrigger_PHOS","PhotonTrigger_EMCAL");
658 
659  ana->SetOtherDetectorInputName(otherDetector);
660  }
661 
662  // Calorimeter settings
663  ana->SetCalorimeter(calorimeter);
664  if(calorimeter == "DCAL")
665  {
666  TString calo = "EMCAL";
667  ana->SetCalorimeter(calo);
668  }
669 
670  // Acceptance plots
671  ana->SwitchOnFiducialCut();
672  if ( calorimeter == "EMCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.7, 80, 187) ; // EMC
673  else if ( calorimeter == "DCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.7, 260, 327) ; // DMC
674 
675  if ( calorimeter.Contains("CAL") ) ana->GetFiducialCut()->DoEMCALFiducialCut(kTRUE);
676 
678 
679  // settings for pp collision mixing
680  if(mixOn) ana->SwitchOnOwnMix();
681  else ana->SwitchOffOwnMix();
682 
683  // Cuts
684  if (calorimeter == "EMCAL" )
685  {
686  if(year < 2014) ana->SetPairTimeCut(50);
687  else ana->SetPairTimeCut(200); // REMEMBER to remove this when time calib is on
688  }
689 
690  ana->SetNPIDBits(1);
691  ana->SetNAsymCuts(1); // no asymmetry cut, previous studies showed small effect.
692  // In EMCAL assymetry cut prevents combination of assymetric decays which is the main source of pi0 at high E.
693 
694  if (col == "pp" )
695  {
696  printf("ConfigureInvariantMassAnalysis() - Set pp configuration\n");
697  ana->SetNCentrBin(1);
698  ana->SwitchOffTrackMultBins();
699  ana->SetNZvertBin(10);
700  ana->SetNRPBin(1);
701  ana->SetNMaxEvMix(100);
702  ana->SetMinPt(0.7);
703  }
704  else if(col == "PbPb")
705  {
706  printf("ConfigureInvariantMassAnalysis() - Set PbPb configuration\n");
707  ana->SetNCentrBin(10);
708  ana->SetNZvertBin(10);
709  ana->SetNRPBin(4);
710  ana->SetNMaxEvMix(10);
711  ana->SetMinPt(1.5);
712  }
713  else if(col =="pPb")
714  {
715  printf("ConfigureInvariantMassAnalysis() - Set pPb configuration\n");
716  ana->SetNCentrBin(1);
717  ana->SetNZvertBin(10);
718  ana->SetNRPBin(4);
719  ana->SetNMaxEvMix(100);
720  ana->SetMinPt(0.7);
721  }
722 
723  // Angle cut, avoid pairs with too large angle
724  ana->SwitchOnAngleSelection();
725  ana->SetAngleMaxCut(TMath::DegToRad()*80.); // EMCal: 4 SM in phi, 2 full SMs in eta
726  ana->SetAngleCut(0.017); // Minimum angle open, cell size
727 
728  if ( kAnaCutsString.Contains("PerSM") ) //&& !bothCalo )
729  ana->SwitchOnSMCombinations();
730 
732  ana->SwitchOnFillAngleHisto();
733  ana->SwitchOnFillOriginHisto(); // MC
734 
735  // Set Histograms name tag, bins and ranges
736  if(!bothCalo) ana->AddToHistogramsName(Form("AnaPi0_"));
737  else ana->AddToHistogramsName(Form("AnaPi0_2Det_"));
738 
739  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug); // see method below
740  if(printSettings) ana->Print("");
741 
742  return ana;
743 }
744 
745 
767  Int_t partInCone, Int_t thresType,
768  Float_t cone, Float_t coneMin,
769  Float_t pth, Bool_t multi,
770  TString col, Bool_t simulation,
771  TString calorimeter, Int_t year, Int_t tm,
772  Bool_t printSettings, Int_t debug,
773  TString histoString )
774 {
776 
777  ana->SetDebug(debug);
778 
779  ana->SetMinPt(5);
780  ana->SetCalorimeter(calorimeter);
781  if(calorimeter == "DCAL")
782  {
783  TString calo = "EMCAL";
784  ana->SetCalorimeter(calo);
785  }
786 
788  ana->SwitchOffCellHistoFill() ;
789 
790  ana->SwitchOffLeadingOnly();
792  if( leading > 0 ) ana->SwitchOnLeadingOnly();
793  if( leading == 2 ||
794  leading == 4) ana->SwitchOnCheckNeutralClustersForLeading();
795 
796  // MC
799 
800  ana->SwitchOffSSHistoFill();
801 
802  if(particle.Contains("Photon"))
803  {
804  ana->SwitchOnSSHistoFill();
805 
806  if(kAnaCutsString.Contains("Decay"))
807  {
809  ana->SetNDecayBits(5);
810  }
811  }
812 
813  if ( kAnaCutsString.Contains("PerSM") )
814  {
816  ana->SwitchOnStudyNCellsCut();
817  }
818 
819  if ( kAnaCutsString.Contains("PerTCard") )
821 
822  if(kAnaCutsString.Contains("Bkg"))
823  {
824  printf("ConfigureIsolationAnalysis() *** Activate analysis on PtTrig and Bkg bins >> \n");
826  ana->SetNPtTrigBins(6);
827  //ana->SetPtTrigLimits(0,8); ana->SetPtTrigLimits(1,12); ana->SetPtTrigLimits(2,16); ana->SetPtTrigLimits(3,25);
828 
830  ana->SetNBackgroundBins(11);
831  //ana->SetBackgroundLimits(0,0); ana->SetBackgroundLimits(1,0.2); ana->SetBackgroundLimits(2,3); ana->SetBackgroundLimits(3,0.4);
832  }
833 
834  if(!tm) ana->SwitchOnTMHistoFill();
835  else ana->SwitchOffTMHistoFill();
836 
837  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
838 
839  // Avoid borders of calorimeter
841  ana->SwitchOnFiducialCut();
842  if ( calorimeter == "EMCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.60, 86, 174) ;
843  else if ( calorimeter == "DCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.60, 266, 314) ;
844  else if ( calorimeter == "PHOS" ) ana->GetFiducialCut()->SetSimplePHOSFiducialCut (0.10, 266, 314) ;
845 
846  // Same Eta as EMCal, cut in phi if EMCAL was triggering
847  if(particle=="Hadron" || particle.Contains("CTS"))
848  {
849  //if(trigger.Contains("EMC"))
850  // ana->GetFiducialCut()->SetSimpleCTSFiducialCut (0.6, 260, 360) ;
851  //else
852  ana->GetFiducialCut()->SetSimpleCTSFiducialCut (0.6, 0, 360) ;
853  }
854 
855  // Branch AOD settings
856 
857  ana->SetInputAODName(Form("%sTrigger_%s",particle.Data(),kAnaCaloTrackCorr.Data()));
858  ana->SetAODObjArrayName(Form("IC%sTrigger_%s_R%1.1f_ThMin%1.1f",particle.Data(),kAnaCaloTrackCorr.Data(),cone,pth));
859 
860  //
861  // Do settings for main isolation cut class
862  //
863  AliIsolationCut * ic = ana->GetIsolationCut();
864  ic->SetDebug(debug);
865  ic->SetParticleTypeInCone(partInCone);
866  ic->SetICMethod(thresType);
867  ic->SetPtFraction(0.1);
868  ic->SetPtThreshold(0.5); // default, change in next lines
869  ic->SetSumPtThreshold(1.0); // default, change in next lines
870 
871  if(cone > 0 && pth > 0)
872  {
873  ic->SetConeSize(cone);
874  ic->SetMinDistToTrigger(coneMin);
875  ic->SetPtThresholdMax(10000);
876 
877  if(thresType == AliIsolationCut::kPtThresIC)
878  {
879  printf("ConfigureIsolationAnalysis() *** Iso *** PtThresMin = %1.1f GeV/c *** R = %1.2f *** R min %1.2f\n",pth,cone,coneMin);
880  ic->SetPtThreshold(pth);
881  }
882 
883  if(thresType == AliIsolationCut::kSumPtIC)
884  {
885  printf("ConfigureIsolationAnalysis() *** Iso *** SumPtMin = %1.1f GeV/c *** R = %1.1f *** R min %1.2f\n",pth,cone,coneMin);
886  ic->SetSumPtThreshold(pth);
887  }
888  }
889  else
890  {
891  if(col=="pp")
892  {
893  ic->SetPtThreshold(0.5);
894  ic->SetSumPtThreshold(1.0) ;
895  ic->SetConeSize(0.4);
896  ic->SetMinDistToTrigger(-1);
897  }
898  if(col=="PbPb")
899  {
900  ic->SetPtThreshold(3.);
901  ic->SetSumPtThreshold(3.0) ;
902  ic->SetConeSize(0.3);
903  ic->SetMinDistToTrigger(-1);
904  }
905  }
906 
907 
908  // Do or not do isolation with previously produced AODs.
909  // No effect if use of SwitchOnSeveralIsolation()
910  ana->SwitchOffReIsolation();
911 
912  // Multiple IC
913  if(multi)
914  {
915  ic->SetConeSize(1.); // Take all for first iteration
916  ic->SetPtThreshold(100);// Take all for first iteration
917  ic->SetMinDistToTrigger(-1);
918 
919  ana->SwitchOnSeveralIsolation() ;
920  //ana->SetAODObjArrayName(Form("MultiIC%sTM%d",particle.Data(),tm));
921  ana->SetAODObjArrayName(Form("MultiIC%s",particle.Data()));
922 
923  ana->SetNCones(3);
924  ana->SetNPtThresFrac(2);
925  ana->SetConeSizes(0,0.3); ana->SetConeSizes(1,0.4); ana->SetConeSizes(2,0.5);
926  ana->SetPtThresholds(0, 0.5); ana->SetPtThresholds(1, 1); ana->SetPtThresholds(2, 1.5); ana->SetPtThresholds(3, 2);
927  ana->SetPtFractions (0, 0.05) ; ana->SetPtFractions (1, 0.1); ana->SetPtFractions (2, 0.2) ; ana->SetPtFractions (3, 0.3) ;
928  ana->SetSumPtThresholds(0, 0.5) ; ana->SetSumPtThresholds(1, 1) ; ana->SetSumPtThresholds(2, 1.5); ana->SetSumPtThresholds(3, 2) ;
929  //ana->SetPtThresholds(0, 0.5);
930 
931  ana->SwitchOffTMHistoFill();
932  ana->SwitchOffSSHistoFill();
933  }
934  else
936 
937  AliCaloPID* caloPID = ana->GetCaloPID();
938 
939  // Track matching
940  // tm = 1, fixed cuts
941  caloPID->SetEMCALDEtaCut(0.025);
942  caloPID->SetEMCALDPhiCut(0.030);
943 
944  // pT track dependent cuts
945  if(tm > 1) caloPID->SwitchOnEMCTrackPtDepResMatching();
946 
947  //Set Histograms name tag, bins and ranges
948 
949 // if(!multi) ana->AddToHistogramsName(Form("AnaIsol%s_TM%d_" ,particle.Data(),tm));
950 // else ana->AddToHistogramsName(Form("AnaMultiIsol%s_TM%d_",particle.Data(),tm));
951  if(!multi) ana->AddToHistogramsName(Form("AnaIsol%s_" ,particle.Data()));
952  else ana->AddToHistogramsName(Form("AnaMultiIsol%s_",particle.Data()));
953 
954  SetAnalysisCommonParameters(ana,histoString, calorimeter,year,col,simulation,printSettings,debug); // see method below
955 
956  if(particle=="Hadron" || particle.Contains("CTS"))
957  {
958  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
959  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
960  }
961 
962  if(printSettings) ic ->Print("");
963 
964  return ana;
965 }
966 
989  Bool_t bIsolated, Float_t shshMax,
990  Int_t partInCone, Int_t thresType,
991  Float_t cone, Float_t coneMin,
992  Float_t pth, Bool_t mixOn,
993  TString col, Bool_t simulation,
994  TString calorimeter, Int_t year, Int_t tm,
995  Bool_t printSettings, Int_t debug,
996  TString histoString )
997 {
999 
1000  ana->SetTriggerPtRange(5,100);
1001  ana->SetAssociatedPtRange(0.2,100);
1002  ana->SetDeltaPhiCutRange (TMath::DegToRad()*120.,TMath::DegToRad()*240.);
1003 
1004  // Underlying event
1005  ana->SetUeDeltaPhiCutRange(TMath::DegToRad()*60. ,TMath::DegToRad()*120.);
1007 
1008  ana->SwitchOffAbsoluteLeading(); // Select trigger leading particle of all the selected tracks
1009  ana->SwitchOffNearSideLeading(); // Select trigger leading particle of all the particles at +-90 degrees, default
1011 
1012  if(leading > 0 && leading < 3 ) ana->SwitchOnAbsoluteLeading();
1013  if(leading > 2 ) ana->SwitchOnNearSideLeading();
1014  if(leading == 2 || leading == 4 ) ana->SwitchOnCheckNeutralClustersForLeading();
1015 
1017  ana->SwitchOffCorrelationVzBin() ;
1019 
1021 
1022  if(particle.Contains("Photon"))
1023  {
1024  if(kAnaCutsString.Contains("Decay"))
1025  {
1026  printf("ConfigureHadronCorrelationAnalysis() *** Activate analysis on Tagged clusters as Decay product >> \n");
1028  ana->SetNDecayBits(5);
1030  if ( kAnaCutsString.Contains("Bkg") && !bIsolated )
1032  }
1033 
1034  //printf("ConfigureHadronCorrelationAnalysis() *** SET M02 limits in correlation task *** \n");
1035  ana->SetM02Cut(0.10,shshMax);
1036  }
1037 
1038  if ( kAnaCutsString.Contains("PerSM") )
1040 
1041  if ( kAnaCutsString.Contains("PerTCard") )
1043 
1044  ana->SetMCGenType(0,7); // Change to higher to include Tagged decays
1045 
1046  ana->SwitchOffLeadHadronSelection(); // Open cuts, just fill histograms
1048 
1049  if ( kAnaCutsString.Contains("Bkg") && !bIsolated )
1050  {
1051  printf("ConfigureHadronCorrelationAnalysis() *** Activate analysis on PtTrig and Bkg bins,\n"
1052  " \t make sure isolation runs first even if not used to select trigger >> \n");
1054  }
1055 
1056  ana->SetLeadHadronPhiCut(TMath::DegToRad()*130, TMath::DegToRad()*230.);
1057  ana->SetLeadHadronPtCut(0.5, 1000);
1058 
1059  // if triggering on PHOS and EMCAL is on
1060  ana->SwitchOffNeutralCorr(); // Do only correlation with TPC
1061  //ana->SetPi0AODBranchName("Pi0EMCAL_TrigEMC7_Cl_TM1");
1062 
1064 
1066 
1067  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
1068 
1070 
1071  ana->SetNAssocPtBins(16); // set last bin [20,30] GeV/c
1072  // See AliAnaParticleCorrelation::InitParameters();
1073  // Default bins{0.2,0.5,1,2,3,4,5,6,7,8,9,10,12,14,16,20,30,40,50,100} GeV/c
1074  // If you want to change it:
1075  // ana->SetAssocPtBinLimit(0, 1) ;
1076  // ana->SetAssocPtBinLimit(1, 2) ;
1077  // ana->SetAssocPtBinLimit(2, 3) ;
1078  // ana->SetAssocPtBinLimit(3, 4) ;
1079  // ana->SetAssocPtBinLimit(4, 5) ;
1080  // ana->SetAssocPtBinLimit(5, 8) ;
1081  // ana->SetAssocPtBinLimit(6, 10) ;
1082  // ana->SetAssocPtBinLimit(7, 100);
1083 
1084  ana->SetNTriggerPtBins(5); // set last bin [25,30] GeV/c
1085  // See AliAnaParticleCorrelation::InitParameters();
1086  // Default bins{10,12,16,20,25,30,40,50,75,100} GeV/c
1087  // If you want to change it:
1088  // ana->SetTriggerPtBinLimit(0, 5) ;
1089  // ana->SetTriggerPtBinLimit(1, 10) ;
1090 
1091  ana->SelectIsolated(bIsolated); // do correlation with isolated photons
1092 
1093  // Mixing with own pool
1094  if(mixOn)
1095  {
1096  ana->SwitchOnOwnMix();
1098 
1099  if(bIsolated)
1100  {
1101  //Do settings for main isolation cut class
1102  AliIsolationCut * ic = ana->GetIsolationCut();
1103  ic->SetDebug(debug);
1104 
1105  if(cone >0 && pth > 0)
1106  {
1107  //printf("ConfigureHadronCorrelationAnalysis() *** PtThres = %1.1f GeV/c *** R = %1.1f *** R min = %1.2f\n",pth,cone,coneMin);
1108  ic->SetPtThreshold(pth);
1109  ic->SetConeSize(cone);
1110  ic->SetMinDistToTrigger(coneMin);
1111  }
1112  else
1113  {
1114  if(col=="pp")
1115  {
1116  ic->SetPtThreshold(0.5);
1117  ic->SetConeSize(0.4);
1118  ic->SetMinDistToTrigger(-1);
1119  }
1120  if(col=="PbPb")
1121  {
1122  ic->SetPtThreshold(3.);
1123  //ic->SetPtThreshold(1.);
1124  ic->SetConeSize(0.3);
1125  ic->SetMinDistToTrigger(-1);
1126  }
1127  }
1128 
1129  ic->SetPtFraction(0.1);
1130  ic->SetSumPtThreshold(1.0) ;
1131  ic->SetParticleTypeInCone(partInCone);
1132  ic->SetICMethod(thresType);
1133  }
1134  }
1135  else
1136  ana->SwitchOffOwnMix();
1137 
1138  ana->SetNZvertBin(20);
1139 
1140  if(col=="pp")
1141  {
1142  ana->SetNMaxEvMix(100);
1143  ana->SwitchOnTrackMultBins();
1144  ana->SetNTrackMultBin(10);
1145  ana->SetNRPBin(1);
1146  }
1147  else
1148  {
1149  ana->SetNMaxEvMix(10);
1150  ana->SwitchOffTrackMultBins(); // centrality bins
1151  ana->SetNCentrBin(12);
1152  ana->SetNRPBin(3);
1153  if(kAnaCaloTrackCorr.Contains("60_90"))
1154  {
1155  //printf("ConfigureHadronCorrelationAnalysis() *** Set mixing for peripheral ***\n");
1156  ana->SetNMaxEvMix(50);
1157  ana->SetNCentrBin(2);
1158  }
1159  }
1160 
1161  // Avoid borders of calorimeter, same as for isolation
1162  //
1163  ana->SwitchOnFiducialCut();
1164  if ( calorimeter == "EMCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.60, 86, 174) ;
1165  else if ( calorimeter == "DCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.60, 266, 314) ;
1166  else if ( calorimeter == "PHOS" ) ana->GetFiducialCut()->SetSimplePHOSFiducialCut (0.10, 266, 314) ;
1167 
1168  // Track matching, in case of mixing and specially in isolation case
1169  //
1170  AliCaloPID* caloPID = ana->GetCaloPID();
1171  // tm = 1, fixed cuts
1172  caloPID->SetEMCALDEtaCut(0.025);
1173  caloPID->SetEMCALDPhiCut(0.030);
1174 
1175  // pT track dependent cuts
1176  if(tm > 1) caloPID->SwitchOnEMCTrackPtDepResMatching();
1177 
1178  // Input / output delta AOD settings
1179  //
1180  ana->SetInputAODName(Form("%sTrigger_%s",particle.Data(),kAnaCaloTrackCorr.Data()));
1181  ana->SetAODObjArrayName(Form("%sHadronCorrIso%dTrigger_%s",particle.Data(),bIsolated,kAnaCaloTrackCorr.Data()));
1182  //ana->SetAODNamepTInConeHisto(Form("IC%s_%s_R%1.1f_ThMin%1.1f" ,particle.Data(),kAnaCaloTrackCorr.Data(),cone,pth));
1183 
1184  //Set Histograms name tag, bins and ranges
1185  //
1186  //ana->AddToHistogramsName(Form("Ana%sHadronCorr_Iso%d_TM%d_",particle.Data(),bIsolated,tm));
1187  ana->AddToHistogramsName(Form("Ana%sHadronCorr_Iso%d_",particle.Data(),bIsolated));
1188 
1189  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug); // see method below
1190 
1191  if(particle=="Hadron" || particle.Contains("CTS"))
1192  {
1193  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
1194  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
1195  }
1196 
1197  return ana;
1198 }
1199 
1209 ( Bool_t simulation, Bool_t printSettings, Int_t debug, TString histoString )
1210 {
1212 
1213  ana->SetDebug(debug);
1214 
1215  // selection cuts
1216 
1217  ana->SetMinPt(0.2);
1218  ana->SwitchOnFiducialCut();
1219  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ; //more restrictive cut in reader and after in isolation
1220 
1222 
1225 
1226  // Branch AOD settings
1227 
1228  ana->SetOutputAODName(Form("HadronTrigger_%s",kAnaCaloTrackCorr.Data()));
1229  ana->SetOutputAODClassName("AliCaloTrackParticle"); // use if no correlation done
1230 
1231  //Set Histograms name tag, bins and ranges
1232 
1233  ana->AddToHistogramsName("AnaHadrons_");
1234 
1235  SetAnalysisCommonParameters(ana,histoString,"CTS",2012,"pp",simulation,printSettings,debug); // see method below
1236 
1237  return ana;
1238 }
1239 
1253 (Int_t tm, TString col , Bool_t simulation,
1254  TString calorimeter, Int_t year,
1255  Bool_t printSettings, Int_t debug, TString histoString )
1256 {
1258 
1259  ana->SetM02Min(-1);
1260  ana->SetNCellsPerClusterMin(-1);
1261 
1262  ana->SetCalorimeter(calorimeter);
1263  if(calorimeter == "DCAL")
1264  {
1265  TString calo = "EMCAL";
1266  ana->SetCalorimeter(calo);
1267  }
1268 
1269  if(simulation) ana->SetConstantTimeShift(615);
1270 
1271  ana->SwitchOffFiducialCut();
1272 
1274 
1276 
1278 
1280 
1281  ana->SwitchOffStudyMatchedPID() ;
1282 
1283  ana->SwitchOffStudyWeight();
1284 
1285  ana->SetNCellBinLimits(3); // set to -1 for no analysis on predefined bins in nCell
1286  ana->SetDistToBadMin(2);
1287 
1289  ana->SwitchOffStudyExotic();
1291  ana->SwitchOffStudyCellTime() ;
1292 
1293  // PID cuts (Track-matching)
1294  ana->SwitchOnCaloPID(); // do PID selection, unless specified in GetCaloPID, selection not based on bayesian
1295  AliCaloPID* caloPID = ana->GetCaloPID();
1296 
1297  if(tm > 1)
1298  {
1299  // track pT dependent cut
1301 
1302  // Begining of histograms name
1303  ana->AddToHistogramsName("Shape_TMDep_");
1304  }
1305  else if ( tm )
1306  {
1307  // Fix
1309  caloPID->SetEMCALDEtaCut(0.025);
1310  caloPID->SetEMCALDPhiCut(0.030);
1311 
1312  // Begining of histograms name
1313  ana->AddToHistogramsName("Shape_TMFix_");
1314  }
1315 
1316  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug); // see method below
1317 
1318  AliHistogramRanges* histoRanges = ana->GetHistogramRanges();
1319  histoRanges->SetHistoPtRangeAndNBins(0, 50, 100) ; // Reduce a bit size
1320 
1321  return ana;
1322 }
1323 
1336  TString calorimeter, Int_t year,
1337  Bool_t printSettings, Int_t debug,
1338  TString histoString )
1339 {
1341 
1342  ana->SetCalorimeter(calorimeter);
1343  if(calorimeter == "DCAL")
1344  {
1345  TString calo = "EMCAL";
1346  ana->SetCalorimeter(calo);
1347  }
1348 
1349  ana->SetTimeCut(-1e10,1e10); // Open time cut
1350 
1351  ana->SwitchOffCorrelation(); // make sure you switch in the reader PHOS and EMCAL cells and clusters if option is ON
1352 
1354 
1355  ana->SwitchOffFiducialCut();
1359  ana->SwitchOffStudyBadClusters() ;
1361 
1363 
1364  ana->AddToHistogramsName("QA_"); // Begining of histograms name
1365 
1366  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug); // see method below
1367 
1368  return ana;
1369 }
1370 
1387  Float_t cone, Float_t coneMin,
1388  TString col, Bool_t simulation,
1389  TString calorimeter, Int_t year,
1390  Bool_t printSettings, Int_t debug,
1391  TString histoString )
1392 {
1394 
1395  // Trigger detector, acceptance and pT cut
1396  ana->SetTriggerDetector(calorimeter);
1397  if(calorimeter == "DCAL")
1398  {
1399  TString calo = "EMCAL";
1400  ana->SetTriggerDetector(calo);
1401  }
1402 
1403  ana->SetMinPt(2); // Trigger photon, pi0 minimum pT
1404  if ( calorimeter == "EMCAL" ) ana->GetFiducialCutForTrigger()->SetSimpleEMCALFiducialCut(0.60, 86, 174) ;
1405  else if ( calorimeter == "DCAL" ) ana->GetFiducialCutForTrigger()->SetSimpleEMCALFiducialCut(0.60, 266, 314) ;
1406  else if ( calorimeter == "PHOS" ) ana->GetFiducialCutForTrigger()->SetSimplePHOSFiducialCut (0.10, 266, 314) ;
1407 
1408  // Particles associated to trigger or isolation cone acceptance and pT cut
1409  ana->SetCalorimeter(calorimeter);
1410  if(calorimeter == "DCAL")
1411  {
1412  TString calo = "EMCAL";
1413  ana->SetCalorimeter(calo);
1414  }
1415 
1416  ana->SetMinChargedPt(0.2);
1417  ana->SetMinNeutralPt(0.3);
1418 
1419  if ( calorimeter == "EMCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.70, 80, 174) ;
1420  else if ( calorimeter == "DCAL" ) ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.70, 260, 327) ;
1421  else if ( calorimeter == "PHOS" ) ana->GetFiducialCut()->SetSimplePHOSFiducialCut (0.12, 250, 320) ;
1422  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.9, 0, 360);
1423 
1424  // Isolation paramters
1425  AliIsolationCut * ic = ana->GetIsolationCut();
1426  ic->SetDebug(debug);
1427  ic->SetPtThreshold(pth);
1428  ic->SetConeSize(cone);
1429  ic->SetMinDistToTrigger(coneMin);
1430  ic->SetSumPtThreshold(1.0) ;
1431  ic->SetICMethod(thresType);
1432 
1433  ana->AddToHistogramsName("AnaGenKine_");
1434 
1435  SetAnalysisCommonParameters(ana,histoString,calorimeter,year,col,simulation,printSettings,debug); // see method below
1436 
1437  return ana;
1438 }
1439 
1466  TList* anaList = 0x0,
1467  TString calorimeter = "EMCAL", // "DCAL", "PHOS"
1468  Bool_t simulation = kFALSE,
1469  Int_t year = 2011,
1470  TString col = "pp",
1471  TString analysisString= "Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged",
1472  TString histoString = "",
1473  Float_t shshMax = 0.27,
1474  Float_t isoCone = 0.4,
1475  Float_t isoConeMin = -1,
1476  Float_t isoPtTh = 2,
1477  Int_t isoMethod = AliIsolationCut::kSumPtIC,
1479  Int_t leading = 0,
1480  Int_t tm = 2,
1481  Bool_t mixOn = kTRUE,
1482  Bool_t printSettings = kFALSE,
1483  Int_t debug = 0
1484 )
1485 {
1486  if ( !anaList )
1487  {
1488  printf("ConfigureCaloTrackCorrAnalysis() << No analysis list passed. Stop >>\n");
1489  return;
1490  }
1491 
1492  // Check the passed variables
1493  //
1494  printf("ConfigureCaloTrackCorrAnalysis() << Settings: Base string <%s>, Analysis string <%s>, "
1495  "\n calorimeter <%s>, simulation <%d>, year <%d>, col <%s>, "
1496  "\n shshMax <%2.2f>, R <%1.2f>, Rmin <%1.2f>, isoPtTh <%2.2f>, isoMethod <%d>,isoContent <%d>,"
1497  "\n leading <%d>, tm <%d>, mixOn <%d>, printSettings <%d>, debug <%d>\n",
1498  anaList->GetName(), analysisString.Data(),
1499  calorimeter.Data(), simulation, year, col.Data(),
1500  shshMax,isoCone,isoConeMin,isoPtTh,isoMethod,isoContent,
1501  leading,tm,mixOn,printSettings,debug);
1502 
1503  kAnaCutsString = analysisString;
1504 
1505  kAnaCaloTrackCorr = Form("%s",anaList->GetName());
1506 
1507  if ( analysisString.Contains("Isolation") )
1508  kAnaCaloTrackCorr+= Form("_Iso_Meth%d_Part%d_Pt%1.2f_R%1.2f",isoMethod,isoContent,isoPtTh,isoCone);
1509  if ( analysisString.Contains("Corr") && analysisString.Contains("Photon") && shshMax > 0)
1510  kAnaCaloTrackCorr+= Form("_CorrM02_%1.2f",shshMax);
1511 
1512  if ( isoConeMin > 0 ) kAnaCaloTrackCorr+=Form("_Rmin%1.2f",isoConeMin);
1513  if ( leading > 0 ) kAnaCaloTrackCorr+=Form("_Lead%d" ,leading);
1514  if ( tm > 0 ) kAnaCaloTrackCorr+=Form("_TM%d" ,tm);
1515 
1516  printf("ConfigureCaloTrackCorrAnalysis() <<<< TMP branch internal NAME: %s >>>>>\n",kAnaCaloTrackCorr.Data());
1517 
1518  // #### Configure analysis ####
1519 
1520 
1521  Int_t n = anaList->GetEntries();//Analysis number, order is important
1522 
1523  //
1524  // Photon analysis
1525  //
1526  if ( analysisString.Contains("Photon") )
1527  {
1528  anaList->AddAt(ConfigurePhotonAnalysis
1529  (col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Photon cluster selection
1530 
1531  if ( analysisString.Contains("InvMass") )
1532  anaList->AddAt(ConfigureInvariantMassAnalysis
1533  (col,simulation,calorimeter,/*bothCalo*/kFALSE,
1534  year,/*mix*/kTRUE,printSettings,debug,histoString), n++);
1535 
1536  if ( analysisString.Contains("DecayPi0") )
1537  {
1538  anaList->AddAt(ConfigurePi0EbEAnalysis
1539  ("Pi0" , AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
1540  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Pi0 event by event selection, invariant mass and photon tagging from decay
1541 
1542  anaList->AddAt(ConfigurePi0EbEAnalysis
1543  ("Eta" , AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
1544  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Eta event by event selection, invariant mass and photon tagging from decay
1545 
1546  anaList->AddAt(ConfigurePi0EbEAnalysis
1547  ("Pi0SideBand", AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
1548  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Pi0 out of peak event by event selection, and photon tagging from decay
1549 
1550  anaList->AddAt(ConfigurePi0EbEAnalysis
1551  ("EtaSideBand", AliAnaPi0EbE::kIMCalo,kFALSE,kFALSE,
1552  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Eta out of peak event by event selection, and photon tagging from decay
1553  }
1554 
1555  if ( analysisString.Contains("Isolation") )
1556  {
1557  anaList->AddAt(ConfigureIsolationAnalysis
1558  ("Photon", leading, isoContent,isoMethod,isoCone,isoConeMin,isoPtTh, kFALSE,
1559  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Photon isolation
1560 
1561  }
1562 
1563  if( analysisString.Contains("Correlation") )
1564  {
1565  if ( !analysisString.Contains("MultiIso") )
1566  {
1567  anaList->AddAt(ConfigureHadronCorrelationAnalysis
1568  ("Photon", leading, kFALSE, shshMax, isoContent,isoMethod,isoCone,isoConeMin,isoPtTh, mixOn,
1569  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Gamma-hadron correlation
1570  }
1571 
1572  if ( analysisString.Contains("Isolation") )
1573  {
1574  anaList->AddAt(ConfigureHadronCorrelationAnalysis
1575  ("Photon", leading, kTRUE, shshMax, isoContent,isoMethod,isoCone,isoConeMin,isoPtTh, mixOn,
1576  col,simulation,calorimeter,year,tm,printSettings,debug,histoString) , n++); // Isolated gamma hadron correlation
1577  }
1578  } // correlation
1579  }
1580 
1581  //
1582  // Merged pi0 analysis
1583  //
1584  if ( analysisString.Contains("MergedPi0") )
1585  {
1586  anaList->AddAt(ConfigurePi0EbEAnalysis
1587  ("Pi0", AliAnaPi0EbE::kSSCalo,kTRUE,kTRUE,
1588  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Pi0 event by event selection, cluster splitting
1589  if ( analysisString.Contains("Isolation") )
1590  {
1591  anaList->AddAt(ConfigureIsolationAnalysis
1592  ("Pi0SS", leading, isoContent,isoMethod,isoCone,isoConeMin,isoPtTh, kFALSE,
1593  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Pi0 isolation, cluster splits
1594 
1595  }
1596 
1597  if( analysisString.Contains("Correlation") )
1598  {
1599  if ( !analysisString.Contains("MultiIso") )
1600  {
1601  anaList->AddAt(ConfigureHadronCorrelationAnalysis
1602  ("Pi0SS", leading, kFALSE, shshMax, isoContent,isoMethod,isoCone,isoConeMin,isoPtTh, mixOn,
1603  col,simulation,calorimeter,year,tm,printSettings,debug,histoString), n++); // Pi0-hadron correlation
1604  }
1605 
1606  if ( analysisString.Contains("Isolation") )
1607  {
1608  anaList->AddAt(ConfigureHadronCorrelationAnalysis
1609  ("Pi0SS", leading, kTRUE, shshMax, isoContent,isoMethod,isoCone,isoConeMin,isoPtTh, mixOn,
1610  col,simulation,calorimeter,year,tm,printSettings,debug,histoString) , n++); // Isolated pi0-hadron correlation
1611  }
1612  } // correlation
1613  }
1614 
1615  // Check the generated kinematics
1616  if(simulation && analysisString.Contains("Generator"))
1617  {
1618  anaList->AddAt(ConfigureGenKineAnalysis
1619  (isoMethod,isoPtTh,isoCone,isoConeMin,
1620  col,simulation,calorimeter,year,printSettings,debug,histoString), n++);
1621  }
1622 
1623  // Charged analysis
1624  if ( analysisString.Contains("Charged") )
1625  {
1626  anaList->AddAt(ConfigureChargedAnalysis(simulation,printSettings,debug,histoString), n++); // track selection checks
1627  }
1628 
1629  // Charged analysis
1630  if ( analysisString.Contains("Electron") )
1631  {
1632  anaList->AddAt(ConfigureElectronAnalysis
1633  (col,simulation,calorimeter,year,printSettings,debug,histoString), n++); // electron/hadron selection checks
1634  }
1635 
1636  // Cluster Shape studies
1637  if ( analysisString.Contains("ClusterShape") )
1638  {
1639  anaList->AddAt(ConfigureClusterShape(tm,col,simulation,calorimeter,year,printSettings,debug,histoString) , n++);
1640  }
1641 
1642  // Calo QA
1643  if ( analysisString.Contains("QA") )
1644  {
1645  anaList->AddAt(ConfigureQAAnalysis(col,simulation,calorimeter,year,printSettings,debug,histoString) , n++);
1646  }
1647 
1648  printf("ConfigureCaloTrackCorrAnalysis() << End configuration for %s with total analysis %d>>\n",
1649  kAnaCaloTrackCorr.Data(), n);
1650 }
1651 
1652 
1653 
void SetSumPtThresholds(Int_t i, Float_t pt)
void SwitchOffSelectedClusterHistoFill()
Definition: AliAnaPi0EbE.h:112
void SetPtThreshold(Float_t pt)
void ConfigureCaloTrackCorrAnalysis(TList *anaList=0x0, TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=2011, TString col="pp", TString analysisString="Photon_MergedPi0_DecayPi0_Isolation_Correlation_QA_Charged", TString histoString="", Float_t shshMax=0.27, Float_t isoCone=0.4, Float_t isoConeMin=-1, Float_t isoPtTh=2, Int_t isoMethod=AliIsolationCut::kSumPtIC, Int_t isoContent=AliIsolationCut::kNeutralAndCharged, Int_t leading=0, Int_t tm=2, Bool_t mixOn=kTRUE, Bool_t printSettings=kFALSE, Int_t debug=0)
void SetHistoTrackMultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n)
TString kAnaCaloTrackCorr
Global name to be composed of the settings, used to set the AOD branch name.
void SetAngleCut(Float_t a)
Definition: AliAnaPi0.h:77
void SwitchOnPairWithOtherDetector()
Definition: AliAnaPi0.h:155
void SwitchOnFillOriginHisto()
Definition: AliAnaPi0.h:139
void SetTimeCut(Double_t min, Double_t max)
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)
TString kAnaCutsString
Global name to be composed of the analysis components chain and some internal settings.
void SwitchOnFillAllTrackMatchingHistogram()
void SetSplitWidthSigma(Float_t s)
Definition: AliCaloPID.h:283
void SwitchOnTrackMatchRejection()
Definition: AliAnaPhoton.h:134
void SetHistoXRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetClusterSplittingM02Cut(Float_t min=0, Float_t max=100)
Definition: AliCaloPID.h:264
void SwitchOnSplitShowerShapeCut()
Definition: AliCaloPID.h:260
void SwitchOnTMHistoFill()
Definition: AliAnaPhoton.h:96
void SetAssociatedPtRange(Float_t min, Float_t max)
Class with utils to perform Isolation Cuts.
AliAnaGeneratorKine * ConfigureGenKineAnalysis(Int_t thresType, Float_t pth, Float_t cone, Float_t coneMin, TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug, TString histoString)
void SetNPIDBits(Int_t s)
Definition: AliAnaPi0.h:123
void SwitchOnFillShowerShapeHistograms()
void SetConeSize(Float_t r)
void SetPtFraction(Float_t pt)
void SwitchOnSelectPairInIsolationCone()
Definition: AliAnaPi0EbE.h:127
void SetTimeCut(Double_t min, Double_t max)
Definition: AliAnaPi0EbE.h:142
void SetMinDistanceToBadChannel(Float_t m)
void FillNPrimaryHistograms(Int_t n)
Definition: AliAnaPhoton.h:145
void SwitchOffSplitShowerShapeCut()
Definition: AliCaloPID.h:261
void SetClusterSplittingMinNCells(Int_t c)
Definition: AliCaloPID.h:267
void SetHistoPtRangeAndNBins(Float_t min, Float_t max, Int_t n)
Selected photon clusters invariant mass analysis.
Definition: AliAnaPi0.h:39
void SetDebug(Int_t d)
void SetMinChargedPt(Float_t pt)
virtual void SetInputAODName(TString name)
void SetM02CutForInvMass(Float_t min=0, Float_t max=10)
Definition: AliAnaPi0EbE.h:117
virtual AliIsolationCut * GetIsolationCut()
void SwitchOnSMCombinations()
Definition: AliAnaPi0.h:94
void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3)
Definition: AliAnaPhoton.h:117
void SetInvMassCutRange(Double_t invmassmin, Double_t invmassmax)
void KeepNeutralMesonSelectionHistos(Bool_t keep)
void SetTriggerDetector(TString det)
Set the calorimeter for the analysis.
void SetSimpleEMCALFiducialCut(Float_t abseta, Float_t phimin, Float_t phimax)
AliAnaElectron * ConfigureElectronAnalysis(TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug, TString histoString)
void SwitchOnAngleSelection()
Definition: AliAnaPi0.h:71
virtual void SetOutputAODClassName(TString name)
void SwitchOnTMTrackPtHistoFill()
Definition: AliAnaPhoton.h:99
void SwitchOffFillShowerShapeHistograms()
Definition: AliAnaPhoton.h:74
virtual AliNeutralMesonSelection * GetNeutralMesonSelection()
void SetSumPtThreshold(Float_t s)
void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3)
Definition: AliAnaPi0EbE.h:133
void SwitchOffMultipleCutAnalysis()
Definition: AliAnaPi0.h:115
Class for the Calorimeter QA analysis.
void SwitchOnFillShowerShapeHistogramsPerSM()
Definition: AliAnaPhoton.h:79
void SetHistodRRangeAndNBins(Float_t min, Float_t max, Int_t n)
Get trigger particles/partons/jets and correlations at generator level.
void SwitchOffSplitAsymmetryCut()
Definition: AliCaloPID.h:257
void SetAnalysisType(anaTypes ana)
Definition: AliAnaPi0EbE.h:92
void SwitchOffFillWeightHistograms()
void SwitchOffTMHistoFill()
Definition: AliAnaPi0EbE.h:109
AliAnaCalorimeterQA * ConfigureQAAnalysis(TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug, TString histoString)
void SetNCellCut(Int_t n)
Definition: AliAnaPhoton.h:125
AliAnaPi0 * ConfigureInvariantMassAnalysis(TString col, Bool_t simulation, TString calorimeter, Bool_t bothCalo, Int_t year, Bool_t mixOn, Bool_t printSettings, Int_t debug, TString histoString)
Select cluster pairs or single merged clusters with pi0 or eta invariant mass.
Definition: AliAnaPi0EbE.h:30
AliAnaPhoton * ConfigurePhotonAnalysis(TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug, TString histoString)
void SetSimplePHOSFiducialCut(Float_t abseta, Float_t phimin, Float_t phimax)
AliAnaChargedParticles * ConfigureChargedAnalysis(Bool_t simulation, Bool_t printSettings, Int_t debug, TString histoString)
void SetPtFractions(Int_t i, Float_t pt)
void SetAngleMaxCut(Float_t a)
Definition: AliAnaPi0.h:78
2 calorimeter clusters invariant mass selection
Definition: AliAnaPi0EbE.h:86
Selection of electron clusters in calorimeter.
const TString calorimeter
Definition: anaM.C:36
void SetHistoTrackResidualEtaRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetIsolationCandidateMinPt(Float_t min)
Definition: AliAnaPi0EbE.h:122
void SetAnalysisCommonParameters(AliAnaCaloTrackCorrBaseClass *ana, TString histoString, TString calorimeter, Int_t year, TString col, Bool_t simulation, Bool_t printSettings, Int_t debug)
void SetPHOSRCut(Float_t rcut)
Definition: AliCaloPID.h:213
void SetEMCALDPhiCut(Float_t dcut)
Definition: AliCaloPID.h:221
void SetLeadHadronPtCut(Float_t min, Float_t max)
virtual void SetOutputAODName(TString name)
void SetICMethod(Int_t i)
void SwitchOnFillAngleHisto()
Definition: AliAnaPi0.h:80
void SetR(Float_t r)
Definition: AliAnaPi0EbE.h:121
virtual void SetCalorimeter(TString calo)
Set the calorimeter for the analysis. A string.
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 DoEMCALFiducialCut(Bool_t b)
Base class for CaloTrackCorr analysis algorithms.
void SwitchOffTrackMatchRejection()
Definition: AliAnaPhoton.h:135
void SetDeltaPhiCutRange(Double_t phimin, Double_t phimax)
void SetUeDeltaPhiCutRange(Double_t uephimin, Double_t uephimax)
1 calorimeter cluster and 1 photon conversion pair invariant mass selection
Definition: AliAnaPi0EbE.h:88
void SetHistoPtInConeRangeAndNBins(Float_t min, Float_t max, Int_t n)
virtual AliFiducialCut * GetFiducialCut()
void SetHistoPhiRangeAndNBins(Float_t min, Float_t max, Int_t n)
int Int_t
Definition: External.C:63
void SetSideBandCutRanges(Double_t lmin, Double_t lmax, Double_t rmin, Double_t rmax)
virtual AliHistogramRanges * GetHistogramRanges()
void SwitchOnSplitAsymmetryCut()
Definition: AliCaloPID.h:256
void SetHistoPtSumRangeAndNBins(Float_t min, Float_t max, Int_t n)
float Float_t
Definition: External.C:68
Filter EMCal/PHOS clusters for photon analysis.
Definition: AliAnaPhoton.h:33
void SetHistoTrackResidualPhiRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetConeSizes(Int_t i, Float_t r)
Class for cluster shape, cell T-Card correlation and exoticity.
void SwitchOnSelectIsolatedDecay()
Definition: AliAnaPi0EbE.h:124
void SwitchOnUEBandSubtractionHistoFill(Int_t lev=1)
void SetM02Cut(Float_t min=0, Float_t max=10)
void SetHistoEOverPRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOnSplitClusterDistToBad()
Definition: AliAnaPi0EbE.h:160
void SwitchOffTrackMatchRejection()
Definition: AliAnaPi0EbE.h:149
virtual void SetHistoERangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetInputAODGammaConvName(TString name)
Definition: AliAnaPi0EbE.h:98
void SetHistoNClusterCellRangeAndNBins(Int_t min, Int_t max, Int_t n)
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
Definition: AliAnaPi0.cxx:2615
void SetMinNeutralPt(Float_t pt)
anaTypes
Analysis types.
Definition: AliAnaPi0EbE.h:84
void SetParticle(TString particleName)
Set some default parameters for selection of pi0 or eta.
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SetHistoYRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetTimeCut(Double_t min, Double_t max)
Definition: AliAnaPhoton.h:120
AliAnaParticleIsolation * ConfigureIsolationAnalysis(TString particle, Int_t leading, Int_t partInCone, Int_t thresType, Float_t cone, Float_t coneMin, Float_t pth, Bool_t multi, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug, TString histoString)
AliAnaClusterShapeCorrelStudies * ConfigureClusterShape(Int_t tm, TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug, TString histoString)
virtual TString GetAddedHistogramsStringToName() const
void SetPtThresholdMax(Float_t pt)
AliFiducialCut * GetFiducialCutForTrigger()
void SetEtaMassRange(Float_t min, Float_t max)
Definition: AliCaloPID.h:305
void SwitchOnTMHistoFill()
Definition: AliAnaPi0EbE.h:108
Bool_t Data(TH1F *h, Double_t *rangefit, Bool_t writefit, Double_t &sgn, Double_t &errsgn, Double_t &bkg, Double_t &errbkg, Double_t &sgnf, Double_t &errsgnf, Double_t &sigmafit, Int_t &status)
void SetPi0MassRange(Float_t min, Float_t max)
Definition: AliCaloPID.h:304
Class containing more common histogram axis types.
void SetEMCALLambda0CutMax(Float_t lcut)
Definition: AliCaloPID.h:202
void SwitchOnTrackMatchRejection()
Definition: AliAnaPi0EbE.h:148
virtual void SetNCentrBin(Int_t n=1)
Number of bins in reaction plain.
AliAnaPi0EbE * ConfigurePi0EbEAnalysis(TString particle, Int_t analysis, Bool_t useSSIso, Bool_t useAsy, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug, TString histoString)
void SetNAsymCuts(Int_t s)
Definition: AliAnaPi0.h:121
virtual void SetNRPBin(Int_t n=1)
Number of bins for vertex position.
void SetPHOSDispersionCut(Float_t dcut)
Definition: AliCaloPID.h:208
void SetHistoNClustersRangeAndNBins(Int_t min, Int_t max, Int_t n)
void SetNLMCut(Int_t min, Int_t max)
Definition: AliAnaPi0EbE.h:100
Track selection for correlation analysis.
void SetMCGenType(Int_t min=0, Int_t max=6)
void SwitchOnFillShowerShapeHistograms()
Definition: AliAnaPhoton.h:73
Select clusters/tracks with low particle environment in their vecinity, isolated within a cone...
void SetHistoEtaRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOffFillWeightHistograms()
Definition: AliAnaPi0EbE.h:152
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SetHistoAsymmetryRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistoV0MultiplicityRangeAndNBins(Int_t min, Int_t max, Int_t n)
void SwitchOnEMCTrackPtDepResMatching()
Definition: AliCaloPID.h:228
virtual void SetAODObjArrayName(TString name)
void SetNTriggerPtBins(Int_t n)
Set number of associated charged (neutral) hadrons pT bins.
AliAnaParticleHadronCorrelation * ConfigureHadronCorrelationAnalysis(TString particle, Int_t leading, Bool_t bIsolated, Float_t shshMax, Int_t partInCone, Int_t thresType, Float_t cone, Float_t coneMin, Float_t pth, Bool_t mixOn, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug, TString histoString)
void SetHistoZRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistoV0SignalRangeAndNBins(Int_t min, Int_t max, Int_t n)
virtual void Print(const Option_t *) const
Print some relevant parameters set for the analysis.
Class that contains methods to select candidate cluster pairs to neutral meson.
void SetHistoTimeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetHistoFinePtRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetOtherDetectorInputName(TString name)
Definition: AliAnaPi0.h:157
void SetNAssocPtBins(Int_t n)
Set number of associated charged (neutral) hadrons pT bins.
Class for PID selection with calorimeters.
Definition: AliCaloPID.h:53
1 calorimeter cluster shower shape and split invariatn mass selection
Definition: AliAnaPi0EbE.h:87
void FillNOriginHistograms(Int_t n)
Definition: AliAnaPhoton.h:143
virtual void SetNMaxEvMix(Int_t n=20)
Number of bins in track multiplicity.
void SetNCellCut(Int_t n)
void SetNLMMinEnergy(Int_t i, Float_t min)
Definition: AliAnaPi0EbE.h:138
void SetHistoShowerShapeRangeAndNBins(Float_t min, Float_t max, Int_t n)
bool Bool_t
Definition: External.C:53
void SetLeadHadronPhiCut(Float_t min, Float_t max)
void SetHistodEdxRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOffEMCTrackPtDepResMatching()
Definition: AliCaloPID.h:229
void ana(anaModes mode=mGRID)
Definition: ana.C:1037
void SetInvMassCutMaxParameters(Float_t a, Float_t b, Float_t c)
void SetHistoHBPRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetEMCALLambda0CutMin(Float_t lcut)
Definition: AliCaloPID.h:205
void SetHistoRRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetParticleTypeInCone(Int_t i)
void SetHistoVertexDistRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetSubClusterEnergyMinimum(Int_t i, Float_t min)
Definition: AliCaloPID.h:273
void SetHistoDiffTimeRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SetEMCALDEtaCut(Float_t dcut)
Definition: AliCaloPID.h:218
void SetPhotonMassRange(Float_t min, Float_t max)
Definition: AliCaloPID.h:306
void SetPtThresholds(Int_t i, Float_t pt)
void SetHistoRatioRangeAndNBins(Float_t min, Float_t max, Int_t n)
void SwitchOffAllNLMHistoFill()
Definition: AliAnaPi0EbE.h:106
void SetNLMCut(Int_t min, Int_t max)
Definition: AliAnaPhoton.h:128
void SetMinDistToTrigger(Float_t md)
Int_t GetFirstSMCoveredByTRD() const
Time cut in ns.
void SetTriggerPtRange(Float_t min, Float_t max)