AliPhysics  6f1d526 (6f1d526)
 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  if(useKinematics)
368  {
369  if(inputDataType == "ESD")
370  {
371  reader->SwitchOnStack();
372  reader->SwitchOffAODMCParticles();
373  }
374  else if(inputDataType == "AOD")
375  {
376  reader->SwitchOffStack();
377  reader->SwitchOnAODMCParticles();
378  }
379  }
380 
381  // In case of Pythia pt Hard bin simulations (jet-jet, gamma-jet)
382  // reject some special events that bother the cross section
383  if(simulation)
384  {
385  // Event rejection cuts for jet-jet simulations, do not use in other
386  reader->SetPtHardAndJetPtComparison(kTRUE);
387  reader->SetPtHardAndJetPtFactor(4);
388 
389  reader->SetPtHardAndClusterPtComparison(kTRUE);
390  reader->SetPtHardAndClusterPtFactor(1.5);
391  }
392 
393  //------------------------
394  // Detector input filling
395  //------------------------
396 
397  //Min cluster/track E
398  reader->SetEMCALEMin(0.3);
399  reader->SetEMCALEMax(1000);
400  reader->SetPHOSEMin(0.3);
401  reader->SetPHOSEMax(1000);
402  reader->SetCTSPtMin(0.2);
403  reader->SetCTSPtMax(1000);
404 
407 
408  // Shower shape smearing
409  // Set it in the train configuration page not here for the moment
410  // if(simulation)
411  // {
412  // reader->SwitchOffShowerShapeSmearing(); // Active only on MC, off by default
413  // reader->SetShowerShapeSmearWidth(0.005);
414  // }
415 
416  //
417  // Tracks
418  //
419  reader->SwitchOnCTS();
420 
421  reader->SwitchOffUseTrackTimeCut();
422  reader->SetTrackTimeCut(0,50);
423 
424  reader->SwitchOnFiducialCut();
425  reader->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ;
426 
427  reader->SwitchOffUseTrackDCACut();
428  //reader->SetTrackDCACut(0,0.0105);
429  //reader->SetTrackDCACut(1,0.035);
430  //reader->SetTrackDCACut(2,1.1);
431 
432  if(inputDataType=="ESD")
433  {
434  gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/CreateTrackCutsPWGJE.C");
435 
436  //AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10041004);
437  //reader->SetTrackCuts(esdTrackCuts);
438 
439  AliESDtrackCuts * esdTrackCuts = CreateTrackCutsPWGJE(10001008);
440  reader->SetTrackCuts(esdTrackCuts);
441  AliESDtrackCuts * esdTrackCuts2 = CreateTrackCutsPWGJE(10011008);
442  reader->SetTrackComplementaryCuts(esdTrackCuts2);
443 
445  }
446  else if(inputDataType=="AOD")
447  {
448  reader->SwitchOnAODHybridTrackSelection(); // Check that the AODs have Hybrids!!!!
450  reader->SetTrackStatus(AliVTrack::kITSrefit);
451 
452  //reader->SwitchOnAODPrimaryTrackSelection(); // Used in preliminary results of QM from Nicolas and Xiangrong?
453  //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
454  //reader->SetTrackFilterMask(128); // Filter bit, not mask, use if off hybrid, TPC only
455  }
456 
457  //
458  // Calorimeter
459  //
460  if(clustersArray == "" && !tender)
461  {
462  printf("**************** Standard EMCAL clusters branch analysis **************** \n");
464  // Check in ConfigureCaloUtils that the recalibration and bad map are ON
465  }
466  else
467  {
468  printf("**************** Input for analysis is Clusterizer %s **************** \n", clustersArray.Data());
469  reader->SetEMCALClusterListName(clustersArray);
471  }
472 
473  // Time cuts
475  if(simulation)
476  {
477  reader->SwitchOffUseEMCALTimeCut();
478  reader->SetEMCALTimeCut(-1e10,1e10); // Open time cut
479  }
480  else
481  {
482  reader->SwitchOnUseEMCALTimeCut();
483  reader->SetEMCALTimeCut(-25,20);
484  }
485 
486  // CAREFUL
487  if(nonLinOn) reader->SwitchOnClusterELinearityCorrection();
489 
490  if(calorimeter == "EMCAL")
491  {
492  reader->SwitchOnEMCALCells();
493  reader->SwitchOnEMCAL();
494  }
495 
496  if(calorimeter == "PHOS")
497  { // Should be on if QA is activated with correlation on
498  reader->SwitchOnPHOSCells();
499  reader->SwitchOnPHOS();
500  }
501 
502  //-----------------
503  // Event selection
504  //-----------------
505 
506  //if(!simulation) reader->SetFiredTriggerClassName("CEMC7EGA-B-NOPF-CENTNOTRD"); // L1 Gamma
507 
508  // Event triggered by EMCal selection settings
511 
512  if( rejectEMCTrig > 0 && !simulation && (trigger.Contains("EMC") || trigger.Contains("L")))
513  {
514  printf("=== Remove bad triggers === \n");
517 
518  // reader->SetTriggerPatchTimeWindow(8,9); // default values
519  // if (kRunNumber < 146861) reader->SetEventTriggerL0Threshold(3.);
520  // else if(kRunNumber < 154000) reader->SetEventTriggerL0Threshold(4.);
521  // else if(kRunNumber < 165000) reader->SetEventTriggerL0Threshold(5.5);
522  // //redefine for other periods, triggers
523  //
524  // if(kRunNumber < 172000)
525  // {
526  // reader->SetEventTriggerL1Bit(4,5); // current LHC11 data
527  // printf("\t Old L1 Trigger data format!\n");
528  // }
529  // else
530  // {
531  // reader->SetEventTriggerL1Bit(6,8); // LHC12-13 data
532  // printf("\t Current L1 Trigger data format!\n");
533  // }
534 
535  if(clustersArray != "" || tender)
536  {
537  printf("Trigger cluster calibration OFF\n");
539  }
540 
541  }
542 
543  //reader->RejectFastClusterEvents() ;
544 
545  // For mixing with AliAnaParticleHadronCorrelation switch it off
546  reader->SwitchOnEventTriggerAtSE(); // on is default case
547  if(mixOn)
548  {
549  reader->SwitchOffEventTriggerAtSE();
550  UInt_t mask = SetTriggerMaskFromName(trigger);
551  reader->SetEventTriggerMask(mask); // Only for mixing and SwitchOffEventTriggerAtSE();
552  //reader->SetMixEventTriggerMask(AliVEvent::kMB); // Careful, not all productions work with kMB, try kINT7, kINT1, kAnyINT
553  reader->SetMixEventTriggerMask(AliVEvent::kINT7); // Careful, not all productions work with kMB, try kINT7, kINT1, kAnyINT
554 
555  printf("---Trigger selection done in AliCaloTrackReader!!!\n");
556  }
557 
558  reader->SetZvertexCut(10.); // Open cut
559  reader->SwitchOnPrimaryVertexSelection(); // and besides primary vertex
560  reader->SwitchOnRejectNoTrackEvents();
561 
562  reader->SwitchOffV0ANDSelection() ; // and besides v0 AND
563  reader->SwitchOffPileUpEventRejection(); // remove pileup by default off, apply it only for MB not for trigger
564 
565  if(col=="PbPb")
566  {
567  // Centrality
568  reader->SetCentralityClass("V0M");
569  reader->SetCentralityOpt(100); // 10 (c= 0-10, 10-20 ...), 20 (c= 0-5, 5-10 ...) or 100 (c= 1, 2, 3 ..)
570  reader->SetCentralityBin(minCen,maxCen); // Accept all events, if not select range
571  reader->SwitchOnAcceptOnlyHIJINGLabels();
572  // Event plane (only used in Maker and mixing for AliAnaPi0/AliAnaHadronCorrelation for the moment)
573  reader->SetEventPlaneMethod("V0");
574  }
575 
576  if(printSettings) reader->Print("");
577 
578  return reader;
579 }
580 
585  TString clustersArray, Bool_t tender,
586  Bool_t nonLinOn, Int_t year,
587  Bool_t printSettings, Int_t debug)
588 {
590 
591  cu->SetDebug(debug);
592 
593  // Remove clusters close to borders, at least max energy cell is 1 cell away
596 
598 
599  if (year == 2010) cu->SetNumberOfSuperModulesUsed(4);
600  else if(year <= 2013) cu->SetNumberOfSuperModulesUsed(10);
601  else if(year > 2013) cu->SetNumberOfSuperModulesUsed(20);
602  else cu->SetNumberOfSuperModulesUsed(10);
603 
604  printf("xxx Number of SM set to <%d> xxx\n",cu->GetNumberOfSuperModulesUsed());
605 
606  // Search of local maxima in cluster
607  if(col=="pp")
608  {
609  cu->SetLocalMaximaCutE(0.1);
610  cu->SetLocalMaximaCutEDiff(0.03);
611  }
612  else
613  {
614  cu->SetLocalMaximaCutE(0.2);
615  cu->SetLocalMaximaCutEDiff(0.03);
616  }
617 
619 
621 
622  // EMCAL settings
623 
624  if(!simulation)
626 
627  AliEMCALRecoUtils * recou = cu->GetEMCALRecoUtils();
628 
629  // calibrations
630  Bool_t calibEner = kFALSE;
631  Bool_t calibTime = kFALSE;
634 
635  if( !tender )
636  {
637  cu->SwitchOnRecalibration(); // Check the reader if it is taken into account during filtering
639 
640  calibEner = kTRUE;
641  calibTime = kTRUE;
642  }
643 
644  if( simulation )
645  {
646  calibEner = kFALSE;
647  calibTime = kFALSE;
648 
649  cu->SwitchOffRecalibration(); // Check the reader if it is taken into account during filtering
651  }
652 
653  gROOT->LoadMacro("$ALICE_PHYSICS/PWGPP/EMCAL/macros/ConfigureEMCALRecoUtils.C");
655  simulation,
656  kTRUE, // exotic
657  nonLinOn, // Non linearity
658  calibEner, // E calib
659  kTRUE, // bad map
660  calibTime); // time calib
661 
662  if( calibTime ) recou->SetExoticCellDiffTimeCut(50);
663 
664  if( nonLinOn ) cu->SwitchOnCorrectClusterLinearity();
665 
666  printf("ConfigureCaloUtils() - EMCAL Recalibration ON? %d %d\n",recou->IsRecalibrationOn(), cu->IsRecalibrationOn());
667  printf("ConfigureCaloUtils() - EMCAL BadMap ON? %d %d\n",recou->IsBadChannelsRemovalSwitchedOn(), cu->IsBadChannelsRemovalSwitchedOn());
668 
669  // PHOS
671 
672  if(printSettings) cu->Print("");
673 
674  return cu;
675 }
676 
682  TString calorimeter, Int_t year, Int_t tm,
683  Bool_t printSettings, Int_t debug)
684 {
685  AliAnaPhoton *ana = new AliAnaPhoton();
686 
687  // cluster selection cuts
688 
690 
691  ana->SwitchOffFiducialCut();
692 
693  ana->SetCalorimeter(calorimeter);
694 
695  ana->SetFirstSMCoveredByTRD(6);
696 
697  ana->SwitchOnFillShowerShapeHistograms(); // Filled before photon shower shape selection
698 
699  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
700 
701  if(tm) ana->SwitchOnTrackMatchRejection() ;
702  else ana->SwitchOffTrackMatchRejection() ;
703 
704  ana->SwitchOnTMHistoFill() ;
705 
706  if(calorimeter == "PHOS")
707  {
708  ana->SetNCellCut(2);// At least 3 cells
709  ana->SetMinPt(0.3);
710  ana->SetMinDistanceToBadChannel(2, 4, 5);
711  ana->SetTimeCut(-1e10,1e10); // open cut
712  }
713  else
714  {//EMCAL
715  ana->SetNCellCut(1);// At least 2 cells
716  ana->SetMinEnergy(0.3); // avoid mip peak at E = 260 MeV
717  ana->SetMaxEnergy(100);
718  ana->SetTimeCut(-1e10,1e10); // open cut, usual time window of [425-825] ns if time recalibration is off
719  // restrict to less than 100 ns when time calibration is on
720  ana->SetMinDistanceToBadChannel(2, 4, 6);
721 
722  // NLM cut, used in all, exclude clusters with more than 2 maxima
723  // Not needed if M02 cut is already strong or clusterizer V2
724  ana->SetNLMCut(1, 2) ;
725  }
726 
727  //PID cuts (shower shape)
728  ana->SwitchOnCaloPID(); // do PID selection, unless specified in GetCaloPID, selection not based on bayesian
729  AliCaloPID* caloPID = ana->GetCaloPID();
730  //Not used in bayesian
731 
732  // EMCAL
733 
734  //caloPID->SetEMCALLambda0CutMax(0.27);
735  caloPID->SetEMCALLambda0CutMax(10); // open, full shower shape needed for isolation studies
736  caloPID->SetEMCALLambda0CutMin(0.10);
737 
738  // Track matching
739  // tm = 1, fixed cuts
740  caloPID->SetEMCALDEtaCut(0.025);
741  caloPID->SetEMCALDPhiCut(0.030);
742 
743  // pT track dependent cuts
744  if(tm > 1) caloPID->SwitchOnEMCTrackPtDepResMatching();
745 
746  // PHOS
747  caloPID->SetPHOSDispersionCut(2.5);
748  caloPID->SetPHOSRCut(2.);
749  //if(kInputData=="AOD") caloPID->SetPHOSRCut(2000.); // Open cut since dX, dZ not stored
750 
751  // Branch AOD settings
752  ana->SetOutputAODName(Form("PhotonTrigger_%s",kAnaGammaHadronCorr.Data()));
753  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
754 
755  //Set Histograms name tag, bins and ranges
756  ana->AddToHistogramsName(Form("AnaPhoton_TM%d_",tm));
757 
758  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug) ; // see method below
759 
760  if(ana->GetFirstSMCoveredByTRD() > 0)
761  printf(">>> Set first SM covered by TRD, SM=%d <<< year %d \n", ana->GetFirstSMCoveredByTRD(),year);
762 
763  // Number of particle type MC histograms
764  ana->FillNOriginHistograms (17); // 18 max
765  ana->FillNPrimaryHistograms(6); // 6 max
766 
767  return ana;
768 }
769 
775  Bool_t useSSIso, Bool_t useAsy,
776  TString col, Bool_t simulation,
777  TString calorimeter, Int_t year, Int_t tm,
778  Bool_t printSettings, Int_t debug )
779 {
780  // Configuration of pi0 event by event selection
781 
782  AliAnaPi0EbE *ana = new AliAnaPi0EbE();
783 
784  ana->SetDebug(debug);
785 
786  ana->SetAnalysisType((AliAnaPi0EbE::anaTypes)analysis);
787  TString opt = "";
788  if(analysis==AliAnaPi0EbE::kIMCaloTracks) opt = "Conv";
789  if(analysis==AliAnaPi0EbE::kSSCalo) opt = "SS";
790 
792  ana->SetFirstSMCoveredByTRD(6);
794 
796  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
797  //if(!kTime && !simulation) ana->SwitchOnFillEMCALBCHistograms();
798 
799  if(tm) ana->SwitchOnTrackMatchRejection() ;
800  else ana->SwitchOffTrackMatchRejection() ;
801  ana->SwitchOffTMHistoFill() ;
802 
803  ana->SetCalorimeter(calorimeter);
804 
805  // Branch AOD settings
806  ana->SetOutputAODName(Form("%s%sTrigger_%s",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
807  printf("***Out branch %s***\n",ana->GetOutputAODName().Data());
808  ana->SetOutputAODClassName("AliAODPWG4ParticleCorrelation");
809 
810  if(analysis == AliAnaPi0EbE::kIMCaloTracks) ana->SetInputAODGammaConvName("PhotonsCTS");
811 
812  //Set Histograms name tag, bins and ranges
813 
814  ana->AddToHistogramsName(Form("Ana%s%sEbE_TM%d_",particle.Data(),opt.Data(),tm));
815 
816  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
817 
819  if(analysis!=AliAnaPi0EbE::kSSCalo)
820  {
821  ana->SetInputAODName(Form("PhotonTrigger_%s",kAnaGammaHadronCorr.Data()));
822 
823  ana->SetM02CutForInvMass(0.1,0.35); // Loose SS cut
824 
826  ana->SetR(0.4);
828 
829  if(useSSIso)
830  {
832  ana->AddToHistogramsName(Form("Ana%s%sEbEIsoDecay_TM%d_",particle.Data(),opt.Data(),tm));
833  ana->SetOutputAODName(Form("%s%sIsoDecayTrigger_%s",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
834  }
835 
836  if(calorimeter=="EMCAL" && !simulation) ana->SetPairTimeCut(100);
837 
839  nms->SetParticle(particle);
840 
841  //****
842  nms->SetInvMassCutMaxParameters(0,0,0); // Overrule the setting in SetParticle for Pi0 option
843  //****
844 
845  // Tighten a bit mass cut with respect to default window
846  if(particle=="Pi0") nms->SetInvMassCutRange(0.110,0.160);
847  if(particle=="Eta") nms->SetInvMassCutRange(0.520,0.580);
848 
849  //if(!particle.Contains("SideBand")) nms->SwitchOnAngleSelection();
850  //else nms->SwitchOnAngleSelection();
851 
853 
854  if(particle.Contains("Pi0SideBand")) // For pi0, do not consider left band
855  nms->SetSideBandCutRanges(-1,0,0.190,0.240);
856 
857  if(particle.Contains("EtaSideBand")) // For pi0, do not consider left band
858  nms->SetSideBandCutRanges(0.410,0.470,0.620,0.680);
859 
861  //nms->SetAngleMaxParam(2,0.2);
862  nms->SetHistoERangeAndNBins(0, 20, 80) ;
863  //nms->SetHistoIMRangeAndNBins(0, 1, 400);
864  }
865  else
866  {
867  // cluster splitting settings
868  ana->SetMinEnergy(6);
869  ana->SetMaxEnergy(100.);
870 
871  ana->SetNLMMinEnergy(0, 10);
872  ana->SetNLMMinEnergy(1, 6);
873  ana->SetNLMMinEnergy(2, 6);
874 
875  // NLM cut, used in all, exclude clusters with more than 2 maxima
876  ana->SetNLMCut(1, 2) ;
877 
878  //
879  ana->SetMinDistanceToBadChannel(2, 4, 6);
881  ana->SetTimeCut(-1e10,1e10); // Open time cut
882 
883  AliCaloPID* caloPID = ana->GetCaloPID();
884 
885  // Track matching
886  // tm = 1, fixed cuts
887  caloPID->SetEMCALDEtaCut(0.025);
888  caloPID->SetEMCALDPhiCut(0.030);
889 
890  // pT track dependent cuts
891  if(tm > 1) caloPID->SwitchOnEMCTrackPtDepResMatching();
892 
893  caloPID->SetSplitWidthSigma(3); // cut at 3 sigma of the mean pi0 peak.
894 
895  if(!useSSIso)
896  {
897  printf("Do not apply SS cut on merged pi0 analysis \n");
898  caloPID->SwitchOffSplitShowerShapeCut() ;
899  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_TM%d_",particle.Data(),opt.Data(),tm));
900  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenSS",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
901  caloPID->SetClusterSplittingM02Cut(0.1,10);
902  }
903  else
904  {
905  caloPID->SetClusterSplittingM02Cut(0.3,4); // Do the selection in the analysis class and not in the PID method to fill SS histograms
906  caloPID->SwitchOnSplitShowerShapeCut() ;
907  }
908 
909  if(useAsy)
910  {
911  caloPID->SwitchOnSplitAsymmetryCut() ;
913  ana->GetCaloPID()->SetSubClusterEnergyMinimum(1,0.5);
914  ana->GetCaloPID()->SetSubClusterEnergyMinimum(2,0.5);
915  }
916  else
917  {
918  caloPID->SwitchOffSplitAsymmetryCut() ;
919  if(!useSSIso)
920  {
921  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenSS_OpenAsy_TM%d_",particle.Data(),opt.Data(),tm));
922  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenSS_OpenAsy",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
923  }
924  else
925  {
926  ana->AddToHistogramsName(Form("Ana%s%sEbE_OpenAsy_TM%d_",particle.Data(),opt.Data(),tm));
927  ana->SetOutputAODName(Form("%s%sTrigger_%s_OpenAsy",particle.Data(), opt.Data(), kAnaGammaHadronCorr.Data()));
928  }
929  }
930 
931  // For Pi0 only if SwitchOnSimpleSplitMassCut()
932  caloPID->SetPi0MassRange(0.10, 0.18);
933  caloPID->SetEtaMassRange(0.50, 0.60);
934  caloPID->SetPhotonMassRange(0.00, 0.08);
935 
936  caloPID->SetClusterSplittingMinNCells(6);
937 
938  //caloPID->SetSplitEnergyFractionMinimum(0, 0.95);
939  //caloPID->SetSplitEnergyFractionMinimum(1, 0.95);
940  //caloPID->SetSplitEnergyFractionMinimum(2, 0.8);
941 
942  if(col=="PbPb" || kAnaGammaHadronCorr.Contains("150"))
943  {
944  caloPID->SetClusterSplittingMinNCells(4);
945  //caloPID->SetPi0MassShiftHighECell(0.005);
946  }
947  }
949 
950  return ana;
951 }
952 
957  Int_t partInCone, Int_t thresType,
958  Float_t cone, Float_t pth, Bool_t multi,
959  TString col, Bool_t simulation,
960  TString calorimeter, Int_t year, Int_t tm,
961  Bool_t printSettings, Int_t debug )
962 {
964 
965  ana->SetDebug(debug);
966 
967  ana->SetMinPt(5);
968  ana->SetCalorimeter(calorimeter);
969 
971  ana->SwitchOffCellHistoFill() ;
972 
973  ana->SwitchOffLeadingOnly();
975  if( leading > 0 ) ana->SwitchOnLeadingOnly();
976  if( leading == 2 ||
977  leading == 4) ana->SwitchOnCheckNeutralClustersForLeading();
978 
979  // MC
982 
983  if(particle.Contains("Photon"))
984  {
986  ana->SetNDecayBits(5);
987  ana->SwitchOnSSHistoFill();
988  }
989  else
990  {
991  ana->SwitchOffSSHistoFill();
992  }
993 
995  ana->SetNPtTrigBins(6);
996  //ana->SetPtTrigLimits(0,8); ana->SetPtTrigLimits(1,12); ana->SetPtTrigLimits(2,16); ana->SetPtTrigLimits(3,25);
997 
999  ana->SetNBackgroundBins(11);
1000  //ana->SetBackgroundLimits(0,0); ana->SetBackgroundLimits(1,0.2); ana->SetBackgroundLimits(2,3); ana->SetBackgroundLimits(3,0.4);
1001 
1002  ana->SetFirstSMCoveredByTRD(6);
1003 
1004  if(!tm) ana->SwitchOnTMHistoFill();
1005  else ana->SwitchOffTMHistoFill();
1006 
1007  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
1008 
1010  ana->SwitchOnFiducialCut();
1011 
1012  if(calorimeter=="EMCAL")
1013  {
1014  // Avoid borders of EMCal
1015  ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.60, 86, 174) ;
1016 
1017  }
1018 
1019  // Same Eta as EMCal, cut in phi if EMCAL was triggering
1020  if(particle=="Hadron" || particle.Contains("CTS"))
1021  {
1022  //if(trigger.Contains("EMC"))
1023  // ana->GetFiducialCut()->SetSimpleCTSFiducialCut (0.6, 260, 360) ;
1024  //else
1025  ana->GetFiducialCut()->SetSimpleCTSFiducialCut (0.6, 0, 360) ;
1026  }
1027 
1028  // Branch AOD settings
1029 
1030  ana->SetInputAODName(Form("%sTrigger_%s",particle.Data(),kAnaGammaHadronCorr.Data()));
1031  ana->SetAODObjArrayName(Form("IC%sTrigger_%s_R%1.1f_ThMin%1.1f",particle.Data(),kAnaGammaHadronCorr.Data(),cone,pth));
1032 
1033  //
1034  // Do settings for main isolation cut class
1035  //
1036  AliIsolationCut * ic = ana->GetIsolationCut();
1037  ic->SetDebug(debug);
1038  ic->SetParticleTypeInCone(partInCone);
1039  ic->SetICMethod(thresType);
1040  ic->SetPtFraction(0.1);
1041  ic->SetPtThreshold(0.5); // default, change in next lines
1042  ic->SetSumPtThreshold(1.0); // default, change in next lines
1043 
1044  if(cone > 0 && pth > 0)
1045  {
1046  ic->SetConeSize(cone);
1047  ic->SetPtThresholdMax(10000);
1048 
1049  if(thresType == AliIsolationCut::kPtThresIC)
1050  {
1051  printf("*** Iso *** PtThresMin = %1.1f GeV/c *** R = %1.1f ***\n",pth,cone);
1052  ic->SetPtThreshold(pth);
1053  }
1054 
1055  if(thresType == AliIsolationCut::kSumPtIC)
1056  {
1057  printf("*** Iso *** SumPtMin = %1.1f GeV/c *** R = %1.1f ***\n",pth,cone);
1058  ic->SetSumPtThreshold(pth);
1059  }
1060  }
1061  else
1062  {
1063  if(col=="pp")
1064  {
1065  ic->SetPtThreshold(0.5);
1066  ic->SetSumPtThreshold(1.0) ;
1067  ic->SetConeSize(0.4);
1068  }
1069  if(col=="PbPb")
1070  {
1071  ic->SetPtThreshold(3.);
1072  ic->SetSumPtThreshold(3.0) ;
1073  ic->SetConeSize(0.3);
1074  }
1075  }
1076 
1077 
1078  // Do or not do isolation with previously produced AODs.
1079  // No effect if use of SwitchOnSeveralIsolation()
1080  ana->SwitchOffReIsolation();
1081 
1082  // Multiple IC
1083  if(multi)
1084  {
1085  ic->SetConeSize(1.); // Take all for first iteration
1086  ic->SetPtThreshold(100);// Take all for first iteration
1087  ana->SwitchOnSeveralIsolation() ;
1088  ana->SetAODObjArrayName(Form("MultiIC%sTM%d",particle.Data(),tm));
1089 
1090  ana->SetNCones(3);
1091  ana->SetNPtThresFrac(2);
1092  ana->SetConeSizes(0,0.3); ana->SetConeSizes(1,0.4); ana->SetConeSizes(2,0.5);
1093  ana->SetPtThresholds(0, 0.5); ana->SetPtThresholds(1, 1); ana->SetPtThresholds(2, 1.5); ana->SetPtThresholds(3, 2);
1094  ana->SetPtFractions (0, 0.05) ; ana->SetPtFractions (1, 0.1); ana->SetPtFractions (2, 0.2) ; ana->SetPtFractions (3, 0.3) ;
1095  ana->SetSumPtThresholds(0, 0.5) ; ana->SetSumPtThresholds(1, 1) ; ana->SetSumPtThresholds(2, 1.5); ana->SetSumPtThresholds(3, 2) ;
1096  //ana->SetPtThresholds(0, 0.5);
1097 
1098  ana->SwitchOffTMHistoFill();
1099  ana->SwitchOffSSHistoFill();
1100  }
1101  else
1102  ana->SwitchOffSeveralIsolation() ;
1103 
1104  AliCaloPID* caloPID = ana->GetCaloPID();
1105 
1106  // Track matching
1107  // tm = 1, fixed cuts
1108  caloPID->SetEMCALDEtaCut(0.025);
1109  caloPID->SetEMCALDPhiCut(0.030);
1110 
1111  // pT track dependent cuts
1112  if(tm > 1) caloPID->SwitchOnEMCTrackPtDepResMatching();
1113 
1114  //Set Histograms name tag, bins and ranges
1115 
1116  if(!multi) ana->AddToHistogramsName(Form("AnaIsol%s_TM%d_",particle.Data(),tm));
1117  else ana->AddToHistogramsName(Form("AnaMultiIsol%s_TM%d_",particle.Data(),tm));
1118 
1119  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1120 
1121  if(particle=="Hadron" || particle.Contains("CTS"))
1122  {
1123  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
1124  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
1125  }
1126 
1127  if(printSettings) ic ->Print("");
1128 
1129  return ana;
1130 }
1131 
1132 
1137  Bool_t bIsolated, Float_t shshMax,
1138  Int_t partInCone, Int_t thresType,
1139  Float_t cone, Float_t pth, Bool_t mixOn,
1140  TString col, Bool_t simulation,
1141  TString calorimeter, Int_t year, Int_t tm,
1142  Bool_t printSettings, Int_t debug )
1143 {
1145 
1146  ana->SetTriggerPtRange(5,100);
1147  ana->SetAssociatedPtRange(0.2,100);
1148  ana->SetDeltaPhiCutRange (TMath::DegToRad()*120.,TMath::DegToRad()*240.);
1149 
1150  // Underlying event
1151  ana->SetUeDeltaPhiCutRange(TMath::DegToRad()*60. ,TMath::DegToRad()*120.);
1153 
1154  ana->SwitchOffAbsoluteLeading(); // Select trigger leading particle of all the selected tracks
1155  ana->SwitchOffNearSideLeading(); // Select trigger leading particle of all the particles at +-90 degrees, default
1157 
1158  if(leading > 0 && leading < 3 ) ana->SwitchOnAbsoluteLeading();
1159  if(leading > 2 ) ana->SwitchOnNearSideLeading();
1160  if(leading == 2 || leading == 4 ) ana->SwitchOnCheckNeutralClustersForLeading();
1161 
1163  ana->SwitchOffCorrelationVzBin() ;
1165 
1167 
1169  if(particle.Contains("Photon"))
1170  {
1172  ana->SetNDecayBits(5);
1173  printf("**** SET M02 limits in correlation task *** \n");
1174  ana->SetM02Cut(0.10,shshMax);
1177  }
1178 
1179  ana->SetMCGenType(0,7);
1180 
1181  ana->SwitchOffLeadHadronSelection(); // Open cuts, just fill histograms
1185  ana->SetLeadHadronPhiCut(TMath::DegToRad()*130, TMath::DegToRad()*230.);
1186  ana->SetLeadHadronPtCut(0.5, 1000);
1187 
1188  // if triggering on PHOS and EMCAL is on
1189  ana->SwitchOffNeutralCorr(); // Do only correlation with TPC
1190  //ana->SetPi0AODBranchName("Pi0EMCAL_TrigEMC7_Cl_TM1");
1191 
1193 
1195 
1196  //if(!simulation) ana->SwitchOnFillPileUpHistograms();
1197 
1198  ana->SetNAssocPtBins(8);
1199  ana->SetAssocPtBinLimit(0, 1) ;
1200  ana->SetAssocPtBinLimit(1, 2) ;
1201  ana->SetAssocPtBinLimit(2, 3) ;
1202  ana->SetAssocPtBinLimit(3, 4) ;
1203  ana->SetAssocPtBinLimit(4, 5) ;
1204  ana->SetAssocPtBinLimit(5, 8) ;
1205  ana->SetAssocPtBinLimit(6, 10) ;
1206  ana->SetAssocPtBinLimit(7, 100);
1207 
1208  ana->SelectIsolated(bIsolated); // do correlation with isolated photons
1209 
1210  // Mixing with own pool
1211  if(mixOn)
1212  {
1213  ana->SwitchOnOwnMix();
1215 
1216  if(bIsolated)
1217  {
1218  //Do settings for main isolation cut class
1219  AliIsolationCut * ic = ana->GetIsolationCut();
1220  ic->SetDebug(debug);
1221 
1222  if(cone >0 && pth > 0)
1223  {
1224  printf("*** Correl *** PtThres = %1.1f GeV/c *** R = %1.1f ***\n",pth,cone);
1225  ic->SetPtThreshold(pth);
1226  ic->SetConeSize(cone);
1227  }
1228  else
1229  {
1230  if(col=="pp")
1231  {
1232  ic->SetPtThreshold(0.5);
1233  ic->SetConeSize(0.4);
1234  }
1235  if(col=="PbPb")
1236  {
1237  ic->SetPtThreshold(3.);
1238  //ic->SetPtThreshold(1.);
1239  ic->SetConeSize(0.3);
1240  }
1241  }
1242 
1243  ic->SetPtFraction(0.1);
1244  ic->SetSumPtThreshold(1.0) ;
1245  ic->SetParticleTypeInCone(partInCone);
1246  ic->SetICMethod(thresType);
1247  }
1248  }
1249  else
1250  ana->SwitchOffOwnMix();
1251 
1252  ana->SetNZvertBin(20);
1253 
1254  if(col=="pp")
1255  {
1256  ana->SetNMaxEvMix(100);
1257  ana->SwitchOnTrackMultBins();
1258  ana->SetNTrackMultBin(10);
1259  ana->SetNRPBin(1);
1260  }
1261  else
1262  {
1263  ana->SetNMaxEvMix(10);
1264  ana->SwitchOffTrackMultBins(); // centrality bins
1265  ana->SetNCentrBin(12);
1266  ana->SetNRPBin(3);
1267  if(kAnaGammaHadronCorr.Contains("60_90"))
1268  {
1269  printf("*** Set mixing for peripheral\n");
1270  ana->SetNMaxEvMix(50);
1271  ana->SetNCentrBin(2);
1272  }
1273  }
1274 
1275  ana->SwitchOnFiducialCut();
1276 
1277  if(calorimeter=="EMCAL")
1278  {
1279  // Avoid borders of EMCal, same as for isolation
1280  ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.6, 86, 174) ;
1281 
1282  }
1283 
1284  // Input / output delta AOD settings
1285 
1286  ana->SetInputAODName(Form("%sTrigger_%s",particle.Data(),kAnaGammaHadronCorr.Data()));
1287  ana->SetAODObjArrayName(Form("%sHadronCorrIso%dTrigger_%s",particle.Data(),bIsolated,kAnaGammaHadronCorr.Data()));
1288  //ana->SetAODNamepTInConeHisto(Form("IC%s_%s_R%1.1f_ThMin%1.1f" ,particle.Data(),kAnaGammaHadronCorr.Data(),cone,pth));
1289 
1290  //Set Histograms name tag, bins and ranges
1291 
1292  ana->AddToHistogramsName(Form("Ana%sHadronCorr_Iso%d_TM%d_",particle.Data(),bIsolated,tm));
1293 
1294  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1295 
1296  if(particle=="Hadron" || particle.Contains("CTS"))
1297  {
1298  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
1299  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
1300  }
1301 
1302  return ana;
1303 }
1304 
1309 {
1311 
1312  ana->SetDebug(debug);
1313 
1314  // selection cuts
1315 
1316  ana->SetMinPt(0.2);
1317  ana->SwitchOnFiducialCut();
1318  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.8, 0, 360) ; //more restrictive cut in reader and after in isolation
1319 
1321 
1324 
1325  // Branch AOD settings
1326 
1327  ana->SetOutputAODName(Form("HadronTrigger_%s",kAnaGammaHadronCorr.Data()));
1328  ana->SetOutputAODClassName("AliAODPWG4Particle"); // use if no correlation done
1329 
1330  //Set Histograms name tag, bins and ranges
1331 
1332  ana->AddToHistogramsName("AnaHadrons_");
1333 
1334  SetAnalysisCommonParameters(ana,"CTS",2012,"pp",simulation,printSettings,debug); // see method below
1335 
1336  return ana;
1337 }
1338 
1343  TString calorimeter, Int_t year,
1344  Bool_t printSettings, Int_t debug )
1345 {
1347 
1348  ana->SetCalorimeter(calorimeter);
1349 
1350  ana->SetTimeCut(-1e10,1e10); // Open time cut
1351 
1352  ana->SwitchOnCorrelation(); // make sure you switch in the reader PHOS and EMCAL cells and clusters if option is ON
1353 
1355 
1356  ana->SwitchOffFiducialCut();
1360  ana->SwitchOffStudyBadClusters() ;
1362  ana->SwitchOffStudyWeight();
1364 
1366 
1367  ana->AddToHistogramsName("QA_"); // Begining of histograms name
1368 
1369  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1370 
1371  return ana;
1372 }
1373 
1378  Float_t pth,
1379  TString col, Bool_t simulation,
1380  TString calorimeter, Int_t year,
1381  Bool_t printSettings, Int_t debug )
1382 {
1384 
1385  // Trigger detector, acceptance and pT cut
1386  ana->SetTriggerDetector(calorimeter);
1387  ana->SetMinPt(2); // Trigger photon, pi0 minimum pT
1389 
1390  // Particles associated to trigger or isolation cone acceptance and pT cut
1391  ana->SetCalorimeter(calorimeter);
1392  ana->SetMinChargedPt(0.2);
1393  ana->SetMinNeutralPt(0.3);
1394  ana->GetFiducialCut()->SetSimpleEMCALFiducialCut(0.65, 81, 179);
1395  ana->GetFiducialCut()->SetSimpleCTSFiducialCut(0.9, 0, 360);
1396 
1397  // Isolation paramters
1398  AliIsolationCut * ic = ana->GetIsolationCut();
1399  ic->SetDebug(debug);
1400  ic->SetPtThreshold(pth);
1401  ic->SetConeSize(cone);
1402  ic->SetSumPtThreshold(1.0) ;
1403  ic->SetICMethod(thresType);
1404 
1405  ana->AddToHistogramsName("AnaGenKine_");
1406 
1407  SetAnalysisCommonParameters(ana,calorimeter,year,col,simulation,printSettings,debug); // see method below
1408 
1409  return ana;
1410 }
1411 
1412 
1420  TString calorimeter, Int_t year,
1421  TString col, Bool_t simulation,
1422  Bool_t printSettings, Int_t debug)
1423 {
1424  //
1425  // Histograms ranges
1426  //
1427  AliHistogramRanges* histoRanges = ana->GetHistogramRanges();
1428 
1429  histoRanges->SetHistoPtRangeAndNBins(0, 100, 200) ; // Energy and pt histograms
1430 
1431  if(calorimeter=="EMCAL")
1432  {
1433  if ( year == 2010 )
1434  {
1435  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 122*TMath::DegToRad(), 78) ;
1436  histoRanges->SetHistoXRangeAndNBins(-230,90,120); // QA
1437  histoRanges->SetHistoYRangeAndNBins(370,450,40); // QA
1438  }
1439  else if ( year < 2014 )
1440  {
1441  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 182*TMath::DegToRad(), 108) ;
1442  histoRanges->SetHistoXRangeAndNBins(-460,90,200); // QA
1443  histoRanges->SetHistoYRangeAndNBins(100,450,100); // QA }
1444  else // Run2
1445  {
1446  histoRanges->SetHistoPhiRangeAndNBins(78*TMath::DegToRad(), 329*TMath::DegToRad(), 250) ;
1447  histoRanges->SetHistoXRangeAndNBins(-460,460,230); // QA
1448  histoRanges->SetHistoYRangeAndNBins(-450,450,225); // QA
1449  }
1450 
1451  histoRanges->SetHistoEtaRangeAndNBins(-0.72, 0.72, 144) ;
1452  }
1453  else if(calorimeter=="PHOS")
1454  {
1455  histoRanges->SetHistoPhiRangeAndNBins(250*TMath::DegToRad(), 320*TMath::DegToRad(), 70) ;
1456  histoRanges->SetHistoEtaRangeAndNBins(-0.13, 0.13, 130) ;
1457  }
1458  else if(calorimeter=="CTS")
1459  {
1460  ana->GetHistogramRanges()->SetHistoPhiRangeAndNBins(0, TMath::TwoPi(), 200) ;
1461  ana->GetHistogramRanges()->SetHistoEtaRangeAndNBins(-1.5, 1.5, 300) ;
1462  }
1463  }
1464 
1465  histoRanges->SetHistoShowerShapeRangeAndNBins(-0.1, 4.9, 500);
1466 
1467  // Invariant mass histo
1468  histoRanges->SetHistoMassRangeAndNBins(0., 1., 200) ;
1469  histoRanges->SetHistoAsymmetryRangeAndNBins(0., 1. , 100) ;
1470 
1471  // check if time calibration is on
1472  //histoRanges->SetHistoTimeRangeAndNBins(-1000.,1000,1000);
1473  histoRanges->SetHistoTimeRangeAndNBins(-400.,400,400);
1474  histoRanges->SetHistoDiffTimeRangeAndNBins(-200, 200, 800);
1475 
1476  // track-cluster residuals
1477  histoRanges->SetHistoTrackResidualEtaRangeAndNBins(-0.15,0.15,300);
1478  histoRanges->SetHistoTrackResidualPhiRangeAndNBins(-0.15,0.15,300);
1479  histoRanges->SetHistodRRangeAndNBins(0.,0.15,150);//QA
1480 
1481  // QA, electron, charged
1482  histoRanges->SetHistoPOverERangeAndNBins(0,2.,200);
1483  histoRanges->SetHistodEdxRangeAndNBins(0.,200.,200);
1484 
1485  // QA
1486  histoRanges->SetHistoFinePtRangeAndNBins(0, 10, 200) ; // bining for fhAmpId
1487  histoRanges->SetHistoVertexDistRangeAndNBins(0.,500.,500);
1488  histoRanges->SetHistoZRangeAndNBins(-350,350,175);
1489  histoRanges->SetHistoRRangeAndNBins(430,460,30);
1490  histoRanges->SetHistoV0SignalRangeAndNBins(0,5000,500);
1491  histoRanges->SetHistoV0MultiplicityRangeAndNBins(0,5000,500);
1492 
1493  // QA, correlation
1494  if(col=="PbPb")
1495  {
1496  histoRanges->SetHistoNClusterCellRangeAndNBins(0,100,100);
1497  histoRanges->SetHistoNClustersRangeAndNBins(0,500,50);
1498  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,2000,200);
1499  }
1500  else
1501  {
1502  histoRanges->SetHistoNClusterCellRangeAndNBins(0,50,50);
1503  histoRanges->SetHistoNClustersRangeAndNBins(0,50,50);
1504  histoRanges->SetHistoTrackMultiplicityRangeAndNBins(0,200,200);
1505  }
1506 
1507  // xE, zT
1508  histoRanges->SetHistoRatioRangeAndNBins(0.,2.,200);
1509  histoRanges->SetHistoHBPRangeAndNBins (0.,10.,200);
1510 
1511  // Isolation
1512  histoRanges->SetHistoPtInConeRangeAndNBins(0, 50 , 250);
1513  histoRanges->SetHistoPtSumRangeAndNBins (0, 100, 250);
1514 
1515  //
1516  // TRD SM
1517  //
1518  if (year == 2011) ana->SetFirstSMCoveredByTRD( 6);
1519  else if(year == 2012 ||
1520  year == 2013) ana->SetFirstSMCoveredByTRD( 4);
1521  else ana->SetFirstSMCoveredByTRD(-1);
1522 
1523  //
1524  // MC histograms?
1525  //
1526  if(simulation) ana->SwitchOnDataMC() ;//Access MC stack and fill more histograms, AOD MC not implemented yet.
1527  else ana->SwitchOffDataMC() ;
1528 
1529  //Set here generator name, default pythia
1530  //ana->GetMCAnalysisUtils()->SetMCGenerator("");
1531 
1532  //
1533  // Debug
1534  //
1535  if(printSettings) ana->Print("");
1536 
1537  ana->SetDebug(debug); // 10 for lots of messages
1538 }
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)