AliPhysics  vAN-20150924 (e816f45)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliReducedEmcalCluster.h
Go to the documentation of this file.
1 
10 #ifndef ALIREDUCEDEMCALCLUSTER_H
11 #define ALIREDUCEDEMCALCLUSTER_H
12 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
13  * See cxx source for full Copyright notice */
14 
15 #include <TObject.h>
16 
17 class TArrayD;
18 class TLorentzVector;
19 class TObjArray;
20 
35 namespace HighPtTracks {
36 
46 class AliReducedClusterParticle : public TObject {
47 public:
49  AliReducedClusterParticle(Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t energy);
51 
52  void FillLorentzVector(TLorentzVector &target) const;
57  Int_t GetPdgCode() const { return fPdg; }
58 
65  void SetMomentum(Double_t px, Double_t py, Double_t pz){
66  fPvec[0]= px;
67  fPvec[1]= py;
68  fPvec[2]= pz;
69  }
74  void SetEnergy(Double_t energy) { fEnergy = energy; }
79  void SetPdgCode(Int_t pdg) { fPdg = pdg; }
80 
81 protected:
82  Int_t fPdg;
83  Double_t fPvec[3];
84  Double_t fEnergy;
85 
87  ClassDef(AliReducedClusterParticle, 1);
89 };
90 
102 class AliReducedEmcalCluster: public TObject {
103 public:
105  AliReducedEmcalCluster(Int_t id, Float_t energy, Float_t eta, Float_t phi, Float_t m02, Float_t m20);
108  virtual ~AliReducedEmcalCluster();
109  void Copy(TObject &target) const;
110 
115  Int_t GetClusterID() const { return fClusterID; }
120  Float_t GetClusterEnergy() const { return fEnergy; }
125  Float_t GetEta() const { return fEta; }
130  Float_t GetPhi() const { return fPhi; }
135  Float_t GetM02() const { return fM02; }
140  Float_t GetM20() const { return fM20; }
141  void FillCellEnergies(TArrayD &target);
146  TObjArray *GetClusterContributors() const { return fContributors; }
147 
152  void SetClusterID(Int_t id) { fClusterID = id; }
157  void SetClusterEnergy(Float_t energy) { fEnergy = energy; }
163  void SetClusterPosition(Float_t eta, Float_t phi) { fEta = eta; fPhi = phi; }
169  void SetShowerShapeParameters(Float_t m02, Float_t m20) { fM02 = m02; fM20 = m20; }
176  void SetLeadingCellEnergies(Double_t e1, Double_t e2, Double_t e3) {
177  fCellEnergies[0] = e1;
178  fCellEnergies[1] = e2;
179  fCellEnergies[2] = e3;
180  }
190  void Set(Int_t id, Float_t energy, Float_t eta, Float_t phi, Float_t m02, Float_t m20){
191  fClusterID = id;
192  fEnergy = energy;
193  fEta = eta;
194  fPhi = phi;
195  fM02 = m02;
196  fM20 = m20;
197  }
198  void AddTrueContributor(Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t energy);
199 protected:
200  Int_t fClusterID;
201  Float_t fEnergy;
202  Float_t fEta;
203  Float_t fPhi;
204  Float_t fM02;
205  Float_t fM20;
206  Float_t fCellEnergies[3];
207  TObjArray *fContributors;
208 
210  ClassDef(AliReducedEmcalCluster, 1);
212 };
213 
214 } /* namespace HighPtTracks */
215 
216 #endif /* ALIREDUCEDEMCALCLUSTER_H */
Int_t pdg
Reduced EMCAL cluster information.
Float_t fCellEnergies[3]
Leading cell energies.
void SetClusterPosition(Float_t eta, Float_t phi)
Float_t fM20
M20 shower shape parameter.
void Set(Int_t id, Float_t energy, Float_t eta, Float_t phi, Float_t m02, Float_t m20)
Double_t fPvec[3]
Particle momentum vector.
void SetShowerShapeParameters(Float_t m02, Float_t m20)
void SetMomentum(Double_t px, Double_t py, Double_t pz)
void AddTrueContributor(Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t energy)
TObjArray * fContributors
True particles contributing to the cluster.
void SetLeadingCellEnergies(Double_t e1, Double_t e2, Double_t e3)
energy
Float_t fEnergy
Energy of the cluster.
MC true contributor to a reconstructed EMCAL cluster.
Float_t fEta
Cluster position in relative to the primary vertex.
void FillLorentzVector(TLorentzVector &target) const
Float_t fPhi
Cluster position in relative to the primary vertex.
Float_t fM02
M02 shower shape parameter.
AliReducedEmcalCluster & operator=(const AliReducedEmcalCluster &ref)