AliPhysics  d497547 (d497547)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliCaloPhotonCuts.h
Go to the documentation of this file.
1 #ifndef ALICALOPHOTONCUTS_H
2 #define ALICALOPHOTONCUTS_H
3 
6 #include "AliAODTrack.h"
7 #include "AliESDtrack.h"
8 #include "AliVTrack.h"
9 #include "AliVCluster.h"
10 #include "AliVCaloCells.h"
11 #include "AliAODTrack.h"
12 #include "AliMCEvent.h"
13 #include "AliAnalysisCuts.h"
14 #include "TProfile2D.h"
15 #include "TH1F.h"
16 #include "TF1.h"
17 #include "AliAnalysisUtils.h"
18 #include "AliAnalysisManager.h"
19 #include "AliEMCALGeometry.h"
20 #include "AliPHOSGeometry.h"
21 #include "AliEMCALRecoUtils.h"
22 #include "AliAODCaloCluster.h"
23 #include "AliCalorimeterUtils.h"
24 #include "AliCaloTrackMatcher.h"
25 #include <vector>
26 
27 
28 class AliESDEvent;
29 class AliAODEvent;
31 class TH1F;
32 class TH2F;
33 class TF1;
34 class AliPIDResponse;
35 class AliAnalysisCuts;
36 class iostream;
37 class TList;
38 class AliAnalysisManager;
39 class AliAODMCParticle;
40 
41 
76 class AliCaloPhotonCuts : public AliAnalysisCuts {
77 
78  public:
79  enum cutIds {
100  };
101 
102  enum photonCuts {
108  };
109 
110  enum MCSet {
111  // MC data sets
112  kNoMC=0,
156  // Data starts here
173  };
174 
175 
176  //handeling of CutString
177  static const char * fgkCutNames[kNCuts];
178  Bool_t SetCutIds(TString cutString);
180  Bool_t SetCut(cutIds cutID, Int_t cut);
182  void PrintCuts();
183  void PrintCutsWithValues();
184 
185  Bool_t InitializeCutsFromCutString(const TString analysisCutSelection);
191 
192  //Constructors
193  AliCaloPhotonCuts(Int_t isJetJet=0, const char *name="ClusterCuts", const char * title="Cluster Cuts");
196 
197  //virtual destructor
198  virtual ~AliCaloPhotonCuts();
199 
200  virtual Bool_t IsSelected(TObject* /*obj*/) {return kTRUE;}
201  virtual Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
202 
203  Bool_t ClusterIsSelected(AliVCluster* cluster, AliVEvent *event, AliMCEvent *mcEvent,Int_t isMC, Double_t weight=1., Long_t clusterID = -1);
205  Bool_t ClusterIsSelectedMC(TParticle *particle,AliMCEvent *mcEvent);
206  Bool_t ClusterIsSelectedElecMC(TParticle *particle,AliMCEvent *mcEvent);
207  Bool_t ClusterIsSelectedElecAODMC(AliAODMCParticle *particle,TClonesArray *aodmcArray);
208  Bool_t ClusterIsSelectedAODMC(AliAODMCParticle *particle,TClonesArray *aodmcArray);
209 
210  void SetLightOutput( Bool_t flag ) {fDoLightOutput = flag; return;}
211  //correct NonLinearity
212  void SetV0ReaderName(TString name) {fV0ReaderName = name; return;}
214  MCSet FindEnumForMCSet(TString namePeriod);
215 
216  void ApplyNonLinearity(AliVCluster* cluster, Int_t isMC);
217 
220  Float_t FunctionNL_PHOSRun2(Float_t e, Float_t p0 = 0.08, Float_t p1 = 0.055, Float_t p2 = 0.03, Float_t p3 = 6.65e-02);
224  //predefined functions
234 
235  void InitCutHistograms(TString name="");
236  void SetFillCutHistograms(TString name="") {if(!fHistograms){InitCutHistograms(name);} return;}
239  void FillClusterCutIndex(Int_t photoncut) {if(fHistCutIndex)fHistCutIndex->Fill(photoncut); return;}
240  void InitializeEMCAL(AliVEvent *event);
241  void InitializePHOS(AliVEvent *event);
242 
243  void SetExtendedMatchAndQA(Int_t extendedMatchAndQA) {fExtendedMatchAndQA = extendedMatchAndQA; return;}
244  void FillHistogramsExtendedQA(AliVEvent *event, Int_t isMC);
245  void SetIsPureCaloCut(Int_t merged) {fIsPureCalo = merged; return;}
247 
248 
249  // Cut functions
250  Bool_t AcceptanceCuts(AliVCluster* cluster, AliVEvent *event, Double_t weight);
251  Bool_t ClusterQualityCuts(AliVCluster* cluster,AliVEvent *event, AliMCEvent *mcEvent, Int_t isMC, Double_t weight, Long_t clusterID);
252 
253  Bool_t MatchConvPhotonToCluster(AliAODConversionPhoton* convPhoton, AliVCluster* cluster, AliVEvent* event, Double_t weight=1.);
254  void MatchTracksToClusters(AliVEvent* event, Double_t weight=1., Bool_t isEMCalOnly = kTRUE);
255  Bool_t CheckClusterForTrackMatch(AliVCluster* cluster);
256  Int_t GetNumberOfLocalMaxima(AliVCluster* cluster, AliVEvent * event);
257  Int_t GetNumberOfLocalMaxima(AliVCluster* cluster, AliVEvent * event, Int_t *absCellIdList, Float_t* maxEList);
258  Bool_t AreNeighbours(Int_t absCellId1, Int_t absCellId2);
259  Int_t GetModuleNumberAndCellPosition(Int_t absCellId, Int_t & icol, Int_t & irow);
260  void SplitEnergy(Int_t absCellId1, Int_t absCellId2, AliVCluster* cluster, AliVEvent* event,
261  Int_t isMC, AliAODCaloCluster* cluster1, AliAODCaloCluster* cluster2);
262  Int_t FindLargestCellInCluster(AliVCluster* cluster, AliVEvent* event);
263  Int_t FindSecondLargestCellInCluster(AliVCluster* cluster, AliVEvent* event);
264  Bool_t CheckDistanceToBadChannel(AliVCluster* cluster, AliVEvent* event);
265  Int_t ClassifyClusterForTMEffi(AliVCluster* cluster, AliVEvent* event, AliMCEvent* mcEvent, Bool_t isESD);
266 
267  std::vector<Int_t> GetVectorMatchedTracksToCluster(AliVEvent* event, AliVCluster* cluster);
268  Bool_t GetClosestMatchedTrackToCluster(AliVEvent* event, AliVCluster* cluster, Int_t &trackLabel);
269  Bool_t GetHighestPtMatchedTrackToCluster(AliVEvent* event, AliVCluster* cluster, Int_t &trackLabel);
270 
272 
273  // modify acceptance via histogram with cellID
274  void SetHistoToModifyAcceptance(TH1S* histAcc) {fHistoModifyAcc = histAcc; return;}
275 
276  // Set basic merging cuts
277  void SetSeedEnergy(Double_t seed) {fSeedEnergy = seed; return;}
278  void SetLocMaxCutEDiff(Double_t diffCut) {fLocMaxCutEDiff = diffCut; return;}
279 
280  // Set Individual Cuts
300 
301 
303  void SetUseNonLinearitySwitch( Bool_t useNonLin) { fUseNonLinearity = useNonLin;}
304 
306  Float_t CalculateMaxM02 (Int_t maxM02, Float_t clusEnergy);
307  Float_t CalculateMinM02 (Int_t minM02, Float_t clusEnergy);
308  Double_t GetDistanceBetweenClusters(AliVCluster* cluster1, AliVCluster* cluster2);
309  void SetLogBinningXTH1 (TH1* histoRebin);
310  void SetLogBinningXTH2 (TH2* histoRebin);
311  void SetLogBinningYTH2 (TH2* histoRebin);
312 
313  Bool_t IsExoticCluster ( AliVCluster *cluster, AliVEvent *event, Float_t& energyStar );
314  Float_t GetECross ( Int_t absID, AliVCaloCells* cells );
317  void SetExoticsQA(Bool_t enable) { fDoExoticsQA = enable; return;}
318 
319  AliEMCALGeometry* GetGeomEMCAL(){return fGeomEMCAL;}
320  AliPHOSGeometry* GetGeomPHOS() {return fGeomPHOS;}
321 
322  protected:
325 
326  AliCaloTrackMatcher* fCaloTrackMatcher; // pointer to CaloTrackMatcher
327  AliEMCALGeometry* fGeomEMCAL; // pointer to EMCAL geometry
328  AliEMCALRecoUtils* fEMCALRecUtils; // pointer to EMCAL recUtils
329  Bool_t fEMCALInitialized; // flag for EMCal initialization
330  AliPHOSGeometry* fGeomPHOS; // pointer to PHOS geometry
331  Bool_t fPHOSInitialized; // flag for PHOS initialization
332  Int_t fPHOSCurrentRun; // PHOS: current processed run for bad channel map
333  TObjArray* fEMCALBadChannelsMap; // pointer to EMCAL bad channel map
334  TH2I** fPHOSBadChannelsMap; // pointer to PHOS bad channel map
335  TProfile* fBadChannels; // TProfile with bad channels
336  Int_t fNMaxEMCalModules; // max number of EMCal Modules
337  Int_t fNMaxPHOSModules; // max number of PHOS Modules
338  TH1S* fHistoModifyAcc; // hisogram for modified acceptance, if leadCellID->1 accept cluster, if leadCellID->0 reject cluster
339  Int_t fNMaxDCalModules; // max number of DCal Modules
340  Int_t fgkDCALCols; // Number of columns in DCal
341 
342  Bool_t fDoLightOutput; // switch for running light output, kFALSE -> normal mode, kTRUE -> light mode
343  Int_t fIsMC; // Flag for usage of JetJet MC
344 
345  Bool_t fIsCurrentClusterAcceptedBeforeTM; // flag if latest checked cluster would have been accepted before track matching cut
346 
347  //for NonLinearity correction
348  TString fV0ReaderName; // Name of V0Reader
349  TString fCaloTrackMatcherName; // Name of global TrackMatching instance
350  TString fPeriodName; // PeriodName of MC
351  MCSet fCurrentMC; // enum for current MC set being processed
352 
353  //cuts
354  Int_t fClusterType; // which cluster do we have
355  Double_t fMinEtaCut; // min eta cut
356  Double_t fMaxEtaCut; // max eta cut
357  Bool_t fUseEtaCut; // flag for switching on eta cut
358  Double_t fMinPhiCut; // phi cut
359  Double_t fMaxPhiCut; // phi cut
360  Bool_t fUsePhiCut; // flag for switching on phi cut
361  Double_t fMinDistanceToBadChannel; // minimum distance to bad channel
362  Int_t fUseDistanceToBadChannel; // flag for switching on distance to bad channel cut: 0 off, 1 on without corners, 2 on with corners included
363  Double_t fMaxTimeDiff; // maximum time difference to triggered collision
364  Double_t fMinTimeDiff; // minimum time difference to triggered collision
365  Bool_t fUseTimeDiff; // flag for switching on time difference cut
366  Double_t fMaxDistTrackToClusterEta; // minimum distance between track and cluster in eta
367  Double_t fMinDistTrackToClusterPhi; // minimum distance between track and cluster in phi
368  Double_t fMaxDistTrackToClusterPhi; // maximum distance between track and cluster in phi
369  Bool_t fUseDistTrackToCluster; // flag for switching on distance between track and cluster cut
370  Bool_t fUsePtDepTrackToCluster; // flag for switching on pT dependent matching parameters
371  TF1* fFuncPtDepEta; // TF1 for pT dep cutting in eta
372  TF1* fFuncPtDepPhi; // TF1 for pT dep cutting in phi
373  Int_t fExtendedMatchAndQA; // switching on ext matching histograms (1) / ext QA_noCell (2) / ext matching + ext QA_noCell (3) / extQA + cell (4) / ext match + extQA + cell (5) or all off (0)
374  Double_t fExoticEnergyFracCluster; // exotic energy compared to E_cross cluster cut
375  Double_t fExoticMinEnergyCell; // minimum energy of cell to test for exotics
376  Bool_t fUseExoticCluster; // flag for switching on exotic cluster cut
377  Bool_t fDoExoticsQA; // flag for switching on exotic cluster cut
378  Double_t fMinEnergy; // minium energy per cluster
379  Double_t fSeedEnergy; // seed energy for clusters
380  Double_t fLocMaxCutEDiff; // cut on energy difference between two cells
381  Bool_t fUseMinEnergy; // flag for switching on minimum energy cut
382  Int_t fMinNCells; // minimum number of cells
383  Bool_t fUseNCells; // flag for switching on minimum N Cells cut
384  Double_t fMaxM02; // maximum M02
385  Double_t fMinM02; // minimum M02
386  Int_t fUseM02; // flag for switching on M02 cut
387  Int_t fMaxM02CutNr; // maximum M02 CutNr
388  Int_t fMinM02CutNr; // minimum M02 CutNr
389  Double_t fMaxM20; // maximum M20
390  Double_t fMinM20; // minimum M20
391  Bool_t fUseM20; // flag for switching on M20 cut
392  Double_t fMaxDispersion; // maximum dispersion
393  Bool_t fUseDispersion; // flag for switching on dispersion cut
394  Int_t fMinNLM; // minimum number of local maxima in cluster
395  Int_t fMaxNLM; // maximum number of local maxima in cluster
396  Bool_t fUseNLM; // flag for switching on NLM cut
397  Int_t fNonLinearity1; // selection of nonlinearity correction, part1
398  Int_t fNonLinearity2; // selection of nonlinearity correction, part2
399  Int_t fSwitchNonLinearity; // selection (combined) of NonLinearity
400  Bool_t fUseNonLinearity; // flag for switching NonLinearity correction
401  Int_t fIsPureCalo; // flag for MergedCluster analysis
402 
403  //vector
404  std::vector<Int_t> fVectorMatchedClusterIDs; // vector with cluster IDs that have been matched to tracks in merged cluster analysis
405 
406  // CutString
407  TObjString* fCutString; // cut number used for analysis
409 
410  // Histograms
411  TH1F* fHistCutIndex; // bookkeeping for cuts
412  TH1F* fHistAcceptanceCuts; // bookkeeping for acceptance cuts
413  TH2F* fHistClusterIdentificationCuts; // bookkeeping for cluster identification cuts
414 
415  TH2F* fHistClusterEtavsPhiBeforeAcc; // eta-phi-distribution before acceptance cuts
416  TH2F* fHistClusterEtavsPhiAfterAcc; // eta-phi-distribution of all after acceptance cuts
417  TH2F* fHistClusterEtavsPhiAfterQA; // eta-phi-distribution of all after cluster quality cuts
418  TH2F* fHistClusterTimevsEBeforeQA; // Cluster time vs E before cluster quality cuts
419  TH2F* fHistClusterTimevsEAfterQA; // Cluster time vs E after cluster quality cuts
420  TH1F* fHistEnergyOfClusterBeforeNL; // enery per cluster before NonLinearity correction
421  TH1F* fHistEnergyOfClusterAfterNL; // enery per cluster after NonLinearity correction
422  TH1F* fHistEnergyOfClusterBeforeQA; // enery per cluster before acceptance cuts
423  TH1F* fHistEnergyOfClusterAfterQA; // enery per cluster after cluster quality cuts
424  TH1F* fHistNCellsBeforeQA; // number of cells per cluster before acceptance cuts
425  TH1F* fHistNCellsAfterQA; // number of cells per cluster after cluster quality cuts
426  TH1F* fHistM02BeforeQA; // M02 before acceptance cuts
427  TH1F* fHistM02AfterQA; // M02 after cluster quality cuts
428  TH1F* fHistM20BeforeQA; // M20 before acceptance cuts
429  TH1F* fHistM20AfterQA; // M20 after cluster quality cuts
430  TH1F* fHistDispersionBeforeQA; // dispersion before acceptance cuts
431  TH1F* fHistDispersionAfterQA; // dispersion after cluster quality cuts
432  TH1F* fHistNLMBeforeQA; // number of local maxima in cluster before acceptance cuts
433  TH1F* fHistNLMAfterQA; // number of local maxima in cluster after cluster quality cuts
434 // TH2F* fHistNLMAvsNLMBBeforeQA; // number of local maxima in cluster after cluster quality cuts
435  TH2F* fHistNLMVsNCellsAfterQA; // number of local maxima vs Ncells in cluster after cluster quality cuts
436  TH2F* fHistNLMVsEAfterQA; // number of local maxima vs E in cluster after cluster quality cuts
437  //More histograms
438  TH2F* fHistClusterEnergyvsMod; // Cluster Energy vs Module Number
439  TH2F* fHistNCellsBigger100MeVvsMod; // NCells with >0.1 GeV vs Module Number
440  TH2F* fHistNCellsBigger1500MeVvsMod; // NCells with >1.5 GeV vs Module Number
441  TH2F* fHistEnergyOfModvsMod; // Deposited Energy vs Module Number
442  TH2F* fHistClusterEnergyvsNCells; // Cluster Energy vs NCells
443  TH2F* fHistCellEnergyvsCellID; // Cell Energy vs CellID
444  TH2F* fHistCellTimevsCellID; // Cell Time vs CellID
445  TH2F* fHistClusterEM02BeforeQA; // 2-dim plot E vs. M02
446  TH2F* fHistClusterEM02AfterQA; // 2-dim plot E vs. M02
447  TH1F* fHistClusterIncludedCellsBeforeQA; // CellIDs in Cluster
448  TH1F* fHistClusterIncludedCellsAfterQA; // CellIDs in Cluster of accepted ones
449  TH1F* fHistClusterEnergyFracCellsBeforeQA; // Energy fraction of CellIDs in Cluster
450  TH1F* fHistClusterEnergyFracCellsAfterQA; // Energy fraction of CellIDs in Cluster of accepted ones
451  TH2F* fHistClusterIncludedCellsTimingAfterQA; // Timing of CellIDs in Cluster of accepted ones
452  TH2F* fHistClusterIncludedCellsTimingEnergyAfterQA; // Timing vs Energy of CellIDs in Cluster of accepted ones
453  TH2F* fHistClusterDistanceInTimeCut; // distance of clusters: within cluster timing cut + within cluster timing cut
454  TH2F* fHistClusterDistanceOutTimeCut; // distance of clusters: within cluster timing cut + outside cluster timing cut
455  TH1F* fHistClusterDistance1DInTimeCut; // 1D distance of clusters: within cluster timing cut + within cluster timing cut
456 
457  //Track matching histograms
458  TH1F* fHistClusterRBeforeQA; // cluster position in R=SQRT(x^2+y^2) (before QA)
459  TH1F* fHistClusterRAfterQA; // cluster position in R=SQRT(x^2+y^2) for matched tracks (After QA)
460  TH2F* fHistClusterdEtadPhiBeforeQA; // 2-dim plot dEta vs. dPhi
461  TH2F* fHistClusterdEtadPhiAfterQA; // 2-dim plot dEta vs. dPhi for matched tracks (after QA)
462  TH1F* fHistDistanceTrackToClusterBeforeQA; // distance cluster to track before acceptance cuts
463  TH1F* fHistDistanceTrackToClusterAfterQA; // distance cluster to track after cluster quality cuts
464 
465  //Extended track matching histograms
466  TH2F* fHistClusterdEtadPhiPosTracksBeforeQA; // 2-dim plot dEta vs. dPhi
467  TH2F* fHistClusterdEtadPhiNegTracksBeforeQA; // 2-dim plot dEta vs. dPhi
468  TH2F* fHistClusterdEtadPhiPosTracksAfterQA; // 2-dim plot dEta vs. dPhi
469  TH2F* fHistClusterdEtadPhiNegTracksAfterQA; // 2-dim plot dEta vs. dPhi
470  TH2F* fHistClusterdEtadPhiPosTracksP_000_075BeforeQA; // 2-dim plot dEta vs. dPhi, positive Tracks, P < 0.75
471  TH2F* fHistClusterdEtadPhiPosTracksP_075_125BeforeQA; // 2-dim plot dEta vs. dPhi, positive Tracks, 0.75 < P < 1.25
472  TH2F* fHistClusterdEtadPhiPosTracksP_125_999BeforeQA; // 2-dim plot dEta vs. dPhi, positive Tracks, P > 1.25
473  TH2F* fHistClusterdEtadPhiNegTracksP_000_075BeforeQA; // 2-dim plot dEta vs. dPhi, negative Tracks, P < 0.75
474  TH2F* fHistClusterdEtadPhiNegTracksP_075_125BeforeQA; // 2-dim plot dEta vs. dPhi, negative Tracks, 0.75 < P < 1.25
475  TH2F* fHistClusterdEtadPhiNegTracksP_125_999BeforeQA; // 2-dim plot dEta vs. dPhi, negative Tracks, P > 1.25
476  TH2F* fHistClusterdEtadPtBeforeQA; // 2-dim plot dEta vs. Pt
477  TH2F* fHistClusterdEtadPtAfterQA; // 2-dim plot dEta vs. Pt
478  TH2F* fHistClusterdEtadPtTrueMatched; // 2-dim plot dEta vs. Pt for validated match
479  TH2F* fHistClusterdPhidPtPosTracksBeforeQA; // 2-dim plot dPhi vs. Pt, positive Tracks
480  TH2F* fHistClusterdPhidPtNegTracksBeforeQA; // 2-dim plot dPhi vs. Pt, negative Tracks
481  TH2F* fHistClusterdPhidPtAfterQA; // 2-dim plot dPhi vs. Pt
482  TH2F* fHistClusterdPhidPtPosTracksTrueMatched; // 2-dim plot dPhi vs. Pt, positive Tracks, validated match
483  TH2F* fHistClusterdPhidPtNegTracksTrueMatched; // 2-dim plot dPhi vs. Pt, negative Tracks, validated match
484  TH2F* fHistClusterM20M02BeforeQA; // 2-dim plot M20 vs. M02
485  TH2F* fHistClusterM20M02AfterQA; // 2-dim plot M20 vs. M20
486 
487  // QA histograms for exotic clusters
488  TH2F* fHistClusterEtavsPhiExotics; // eta-phi-distribution of exotic clusters
489  TH2F* fHistClusterEM02Exotics; // 2-dim plot E vs. M02 for exotic clusters
490  TH2F* fHistClusterEnergyvsNCellsExotics; // Cluster Energy vs NCells
491  TH2F* fHistClusterEEstarExotics; // 2-dim plot E vs. Estar for exotic clusters
492 
493  // histograms for track matching efficiency
506 
507  private:
508 
509  ClassDef(AliCaloPhotonCuts,46)
510 };
511 
512 #endif
Double_t fMaxDistTrackToClusterPhi
Bool_t AcceptCellByBadChannelMap(Int_t absID)
TH1F * fHistDistanceTrackToClusterBeforeQA
Bool_t IsExoticCluster(AliVCluster *cluster, AliVEvent *event, Float_t &energyStar)
TH2F * fHistClusterDistanceOutTimeCut
TH2F * fHistClusterdEtadPhiPosTracksP_075_125BeforeQA
Bool_t CheckClusterForTrackMatch(AliVCluster *cluster)
Double_t fMaxDistTrackToClusterEta
TH2F * fHistClusterEtavsPhiBeforeAcc
double Double_t
Definition: External.C:58
Float_t FunctionNL_kPi0MCv3(Float_t e)
Bool_t SetMinNCellsCut(Int_t)
void SetExoticsQA(Bool_t enable)
Definition: External.C:236
TH2F * fHistNCellsBigger1500MeVvsMod
const char * title
Definition: MakeQAPdf.C:27
std::vector< Int_t > GetVectorMatchedTracksToCluster(AliVEvent *event, AliVCluster *cluster)
Double_t GetDistanceBetweenClusters(AliVCluster *cluster1, AliVCluster *cluster2)
TH2F * fHistClusterdEtadPhiBeforeQA
TH2F * fHistClusterIncludedCellsTimingEnergyAfterQA
TH2F * fHistClusterIncludedCellsTimingAfterQA
TH2F * fHistClusterEvsTrackSumEPrimaryButNoElec
TH2F * fHistNCellsBigger100MeVvsMod
void SetLogBinningYTH2(TH2 *histoRebin)
Bool_t SetCut(cutIds cutID, Int_t cut)
TH2F * fHistClusterdEtadPhiPosTracksBeforeQA
TH1F * fHistClusterIncludedCellsAfterQA
void SetHistoToModifyAcceptance(TH1S *histAcc)
void SetSeedEnergy(Double_t seed)
Bool_t SetNonLinearity1(Int_t)
TH2F * fHistClusterEtavsPhiAfterAcc
std::vector< Int_t > fVectorMatchedClusterIDs
Float_t CalculateMinM02(Int_t minM02, Float_t clusEnergy)
Bool_t SetClusterTypeCut(Int_t)
void FillClusterCutIndex(Int_t photoncut)
Bool_t ClusterIsSelected(AliVCluster *cluster, AliVEvent *event, AliMCEvent *mcEvent, Int_t isMC, Double_t weight=1., Long_t clusterID=-1)
virtual Bool_t IsSelected(TObject *)
void SetLightOutput(Bool_t flag)
Float_t FunctionNL_kSDM(Float_t e, Float_t p0, Float_t p1, Float_t p2)
Float_t FunctionNL_kPi0MCv2(Float_t e)
TObjString * fCutString
TH1F * fHistEnergyOfClusterBeforeQA
Int_t GetModuleNumberAndCellPosition(Int_t absCellId, Int_t &icol, Int_t &irow)
TH2F * fHistClusterEvsTrackEGammaSubCharged
TCanvas * c
Definition: TestFitELoss.C:172
Float_t FunctionNL_kSDMv6(Float_t e)
TH2F * fHistClusterdEtadPhiNegTracksP_075_125BeforeQA
void SetFillCutHistograms(TString name="")
void SetUseNonLinearitySwitch(Bool_t useNonLin)
Bool_t SetMaxEtaCut(Int_t)
TObjArray * fEMCALBadChannelsMap
TH2F * fHistClusterdPhidPtNegTracksTrueMatched
void ApplyNonLinearity(AliVCluster *cluster, Int_t isMC)
TH2F * fHistClusterEtavsPhiAfterQA
Float_t FunctionNL_kSDMv5(Float_t e)
Bool_t MatchConvPhotonToCluster(AliAODConversionPhoton *convPhoton, AliVCluster *cluster, AliVEvent *event, Double_t weight=1.)
TH2F * fHistClusterEvsTrackENeutralSubCharged
TH2F * fHistClusterdEtadPhiPosTracksP_000_075BeforeQA
virtual Bool_t IsSelected(TList *)
TH2F * fHistClusterdEtadPhiNegTracksBeforeQA
MCSet FindEnumForMCSet(TString namePeriod)
AliCaloPhotonCuts(Int_t isJetJet=0, const char *name="ClusterCuts", const char *title="Cluster Cuts")
TH2F * fHistClusterdPhidPtPosTracksBeforeQA
Bool_t ClusterQualityCuts(AliVCluster *cluster, AliVEvent *event, AliMCEvent *mcEvent, Int_t isMC, Double_t weight, Long_t clusterID)
int Int_t
Definition: External.C:63
Double_t fMinDistTrackToClusterPhi
Class handling all kinds of selection cuts for Gamma Calo analysis.
AliPHOSGeometry * fGeomPHOS
TH2F * fHistClusterTimevsEBeforeQA
void FillHistogramsExtendedQA(AliVEvent *event, Int_t isMC)
AliEMCALGeometry * GetGeomEMCAL()
float Float_t
Definition: External.C:68
AliCaloTrackMatcher * GetCaloTrackMatcherInstance()
TH1F * fHistClusterIncludedCellsBeforeQA
TH2F * fHistClusterEvsTrackEPrimaryButNoElec
Bool_t SetDistanceToBadChannelCut(Int_t)
void MatchTracksToClusters(AliVEvent *event, Double_t weight=1., Bool_t isEMCalOnly=kTRUE)
Bool_t GetClosestMatchedTrackToCluster(AliVEvent *event, AliVCluster *cluster, Int_t &trackLabel)
Float_t FunctionNL_kTestBeamv2(Float_t e)
Bool_t SetExoticClusterCut(Int_t)
Bool_t InitializeCutsFromCutString(const TString analysisCutSelection)
TH1F * fHistEnergyOfClusterAfterNL
Int_t ClassifyClusterForTMEffi(AliVCluster *cluster, AliVEvent *event, AliMCEvent *mcEvent, Bool_t isESD)
void SetLogBinningXTH2(TH2 *histoRebin)
TH2F * fHistClusterEnergyvsNCellsExotics
void InitializePHOS(AliVEvent *event)
Bool_t SetDispersion(Int_t)
TH2F * fHistClusterdEtadPtBeforeQA
void SplitEnergy(Int_t absCellId1, Int_t absCellId2, AliVCluster *cluster, AliVEvent *event, Int_t isMC, AliAODCaloCluster *cluster1, AliAODCaloCluster *cluster2)
Bool_t GetHighestPtMatchedTrackToCluster(AliVEvent *event, AliVCluster *cluster, Int_t &trackLabel)
TH2F * fHistClusterENMatchesNeutral
TH2F * fHistClusterdEtadPhiPosTracksAfterQA
Float_t FunctionM02(Float_t E, Float_t a, Float_t b, Float_t c, Float_t d, Float_t e)
TH2F * fHistClusterdPhidPtPosTracksTrueMatched
TH1F * fHistEnergyOfClusterBeforeNL
Bool_t ClusterIsSelectedAODMC(AliAODMCParticle *particle, TClonesArray *aodmcArray)
Bool_t SetTimingCut(Int_t)
Bool_t ClusterIsSelectedElecAODMC(AliAODMCParticle *particle, TClonesArray *aodmcArray)
Bool_t ClusterIsSelectedMC(TParticle *particle, AliMCEvent *mcEvent)
TH2F * fHistClusterDistanceInTimeCut
TH1F * fHistClusterDistance1DInTimeCut
Float_t CalculateMaxM02(Int_t maxM02, Float_t clusEnergy)
static const char * fgkCutNames[kNCuts]
void InitializeEMCAL(AliVEvent *event)
Bool_t CheckDistanceToBadChannel(AliVCluster *cluster, AliVEvent *event)
void SetLocMaxCutEDiff(Double_t diffCut)
Bool_t SetMaxPhiCut(Int_t)
Float_t FunctionNL_DExp(Float_t e, Float_t p0, Float_t p1, Float_t p2, Float_t p3, Float_t p4, Float_t p5)
void SetCaloTrackMatcherName(TString name)
Double_t fExoticEnergyFracCluster
Double_t fMinDistanceToBadChannel
Float_t FunctionNL_kPi0MCv6(Float_t e)
TH2F * fHistClusterEvsTrackEChargedLead
AliPHOSGeometry * GetGeomPHOS()
void SetExtendedMatchAndQA(Int_t extendedMatchAndQA)
Float_t FunctionNL_PHOS(Float_t e, Float_t p0, Float_t p1, Float_t p2)
TH2F * fHistClusterENMatchesCharged
Float_t GetECross(Int_t absID, AliVCaloCells *cells)
AliCaloTrackMatcher * fCaloTrackMatcher
Bool_t isMC
Float_t FunctionNL_PHOSRun2(Float_t e, Float_t p0=0.08, Float_t p1=0.055, Float_t p2=0.03, Float_t p3=6.65e-02)
Int_t FindSecondLargestCellInCluster(AliVCluster *cluster, AliVEvent *event)
TH1F * fHistClusterEnergyFracCellsAfterQA
TH2F * fHistClusterdEtadPhiNegTracksP_125_999BeforeQA
Int_t GetNumberOfLocalMaxima(AliVCluster *cluster, AliVEvent *event)
TH2F * fHistClusterEvsTrackENeutral
Bool_t SetTrackMatchingCut(Int_t)
Float_t FunctionNL_kPi0MCv5(Float_t e)
Definition: External.C:220
AliEMCALRecoUtils * fEMCALRecUtils
TH2F * fHistClusterEvsTrackECharged
void SetV0ReaderName(TString name)
Bool_t ClusterIsSelectedElecMC(TParticle *particle, AliMCEvent *mcEvent)
Bool_t AcceptanceCuts(AliVCluster *cluster, AliVEvent *event, Double_t weight)
void InitCutHistograms(TString name="")
TH2F * fHistClusterdEtadPhiPosTracksP_125_999BeforeQA
TH2F * fHistClusterdEtadPhiNegTracksAfterQA
void SetLogBinningXTH1(TH1 *histoRebin)
TH2F * fHistClusterdPhidPtNegTracksBeforeQA
Float_t FunctionNL_kPi0MC(Float_t e, Float_t p0, Float_t p1, Float_t p2, Float_t p3, Float_t p4, Float_t p5, Float_t p6)
TList * GetExtQAHistograms()
TH2F * fHistClusterdEtadPtTrueMatched
TH1F * fHistEnergyOfClusterAfterQA
bool Bool_t
Definition: External.C:53
TH2F * fHistClusterdEtadPhiAfterQA
TH1F * fHistDistanceTrackToClusterAfterQA
TH1F * fHistClusterEnergyFracCellsBeforeQA
Bool_t SetMinEtaCut(Int_t)
Float_t FunctionNL_DPOW(Float_t e, Float_t p0, Float_t p1, Float_t p2, Float_t p3, Float_t p4, Float_t p5)
Float_t FunctionNL_kPi0MCv1(Float_t e)
Int_t FindLargestCellInCluster(AliVCluster *cluster, AliVEvent *event)
Bool_t SetNonLinearity2(Int_t)
Float_t FunctionNL_kTestBeamv3(Float_t e)
Bool_t AreNeighbours(Int_t absCellId1, Int_t absCellId2)
Bool_t SetCutIds(TString cutString)
Bool_t fIsCurrentClusterAcceptedBeforeTM
Definition: External.C:196
TH2F * fHistClusterIdentificationCuts
TH2F * fHistClusterEtavsPhiExotics
AliEMCALGeometry * fGeomEMCAL
Bool_t SetMinPhiCut(Int_t)
void SetExoticsMinCellEnergyCut(Double_t minE)
TH2F * fHistClusterdEtadPhiNegTracksP_000_075BeforeQA
void SetIsPureCaloCut(Int_t merged)
Bool_t SetMinEnergyCut(Int_t)
Bool_t ClusterIsSelectedBeforeTrackMatch()
AliCaloPhotonCuts & operator=(const AliCaloPhotonCuts &)