AliPhysics  c2a2810 (c2a2810)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskPtEMCalTrigger.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKPTEMCALTRIGGER_H_
2 #define ALIANALYSISTASKPTEMCALTRIGGER_H_
3 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 // Author: Markus Fasel
7 
8 #include "AliAnalysisTaskEmcalJet.h"
9 #include "AliESDtrackCuts.h"
10 #include <TClonesArray.h>
11 #include <TList.h>
12 #include "AliCutValueRange.h"
13 
14 class TArrayD;
15 class Axis;
17 class AliEmcalJet;
18 class AliESDtrack;
19 class AliJetContainer;
21 class AliVTrack;
22 class AliVParticle;
23 
31 namespace EMCalTriggerPtAnalysis {
32 class AliEMCalHistoContainer;
33 
40 class AliAnalysisTaskPtEMCalTrigger : public AliAnalysisTaskEmcalJet {
41 public:
47  };
48  static const Int_t kNJetRadii;
49  static const Double_t *kJetRadii;
50 
52  AliAnalysisTaskPtEMCalTrigger(const char *name);
54 
55  virtual void UserCreateOutputObjects();
56  virtual Bool_t Run();
57 
58  void AddESDTrackCuts(AliESDtrackCuts *trackCuts);
59  void AddCutsForAOD(AliESDtrackCuts *trackCuts, UInt_t filterBits);
60  void SetEtaRange(double etamin, double etamax) { fEtaRange.SetLimits(etamin, etamax); }
61  void SetPtRange(double ptmin, double ptmax) { fPtRange.SetLimits(ptmin, ptmax); }
62  void SetVertexRange(double vmin, double vmax) { fVertexRange.SetLimits(vmin, vmax); }
63  void SetClusterEnergyRange(double emin, double emax) { fEnergyRange.SetLimits(emin,emax); }
64  void SetSwapEta() { fSwapEta = kTRUE; }
66  void AddJetContainerName(const Char_t * contname, Bool_t isMC = kFALSE);
67  void SelectAllTracks(Bool_t doAll) { fSelectAllTracks = doAll; }
68 
69 private:
72  void CreateDefaultPtBinning(TArrayD &binning) const;
73  void CreateDefaultZVertexBinning(TArrayD &binning) const;
74  void CreateDefaultEtaBinning(TArrayD &binning) const;
75  void DefineAxis(TAxis &axis, const char *name, const char *title, const TArrayD &binning, const char **labels = NULL);
76  void DefineAxis(TAxis &axis, const char *name, const char *title, int nbins, double min, double max, const char **labels = NULL);
77  void FillEventHist(const char *trigger, double vz, bool isPileup);
78  void FillTrackHist(const char *trigger, const AliVTrack *track, double vz, bool isPileup, int cut, bool isMinBias, double jetradius = -1.);
79  void FillClusterHist(const char *trigger, const AliVCluster *clust, double vz, bool isPileup, bool isMinBias);
80  void FillMCParticleHist(const char *histname, const AliVParticle * const part, double vz, bool isPileup);
81  bool IsTrueTrack(const AliVTrack *const) const;
82  TString BuildTriggerString();
83  const AliVVertex *GetSPDVertex() const;
84  const AliEmcalJet *FoundTrackInJet(const AliVParticle * const track, AliJetContainer *const jets) const;
85  const AliEmcalJet *FoundClusterInJet(const AliVCluster * const clust, AliJetContainer *const jets) const;
86  bool TrackInJet(const AliVParticle *const track, const AliEmcalJet *reconstructedJet, const AliParticleContainer *const particles) const;
87  bool ClusterInJet(const AliVCluster *const clust, const AliEmcalJet *reconstructedJet, const AliClusterContainer *const particles) const;
88  bool IsInRadius(const AliVParticle *const track, const AliEmcalJet *reconstructedJet, Double_t radius) const;
89  bool IsInRadius(const AliVCluster *const clust, const AliEmcalJet *reconstructedJet, Double_t radius) const;
90 
93  TList *fListTrackCuts;
94 
95  // Cuts
100 
101  // Jet containers
104 
105  // Settings
107  Bool_t fSwapEta;
109 
111  ClassDef(AliAnalysisTaskPtEMCalTrigger, 1); // Analysis of EMCal triggered events
113 };
114 
115 }
116 #endif
AliAnalysisTaskPtEMCalTrigger & operator=(const AliAnalysisTaskPtEMCalTrigger &)
const char * title
Definition: MakeQAPdf.C:26
AliCutValueRange< double > fEnergyRange
Cluster energy selection range.
AliEMCalHistoContainer * fHistos
Histogram container for the task.
void FillTrackHist(const char *trigger, const AliVTrack *track, double vz, bool isPileup, int cut, bool isMinBias, double jetradius=-1.)
const AliEmcalJet * FoundClusterInJet(const AliVCluster *const clust, AliJetContainer *const jets) const
void AddCutsForAOD(AliESDtrackCuts *trackCuts, UInt_t filterBits)
void FillEventHist(const char *trigger, double vz, bool isPileup)
Container class for histograms for the high- charged particle analysis.
bool IsInRadius(const AliVParticle *const track, const AliEmcalJet *reconstructedJet, Double_t radius) const
void AddJetContainerName(const Char_t *contname, Bool_t isMC=kFALSE)
void FillClusterHist(const char *trigger, const AliVCluster *clust, double vz, bool isPileup, bool isMinBias)
Old charged hadron analysis in EMCAL-triggered events.
void DefineAxis(TAxis &axis, const char *name, const char *title, const TArrayD &binning, const char **labels=NULL)
Bool_t fSwapEta
Allow swapping of the eta sign in asymmetric collision systems.
void FillMCParticleHist(const char *histname, const AliVParticle *const part, double vz, bool isPileup)
const AliEmcalJet * FoundTrackInJet(const AliVParticle *const track, AliJetContainer *const jets) const
AliCutValueRange< double > fPtRange
Pt Selection Range.
bool TrackInJet(const AliVParticle *const track, const AliEmcalJet *reconstructedJet, const AliParticleContainer *const particles) const
bool ClusterInJet(const AliVCluster *const clust, const AliEmcalJet *reconstructedJet, const AliClusterContainer *const particles) const
AliCutValueRange< double > fEtaRange
Eta Selection Range.
Bool_t fUseTriggersFromTriggerMaker
Use trigger classes from trigger maker.
Class containing a range for a value to cut on.