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