AliPhysics  a60a912 (a60a912)
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 
47 public:
51 
52  void FillLorentzVector(TLorentzVector &target) const;
57  Int_t GetPdgCode() const { return fPdg; }
58 
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:
85 
87  ClassDef(AliReducedClusterParticle, 1);
89 };
90 
103 public:
107  AliReducedEmcalCluster &operator=(const AliReducedEmcalCluster &ref);
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; }
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; }
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:
206  Float_t fCellEnergies[3];
208 
210  ClassDef(AliReducedEmcalCluster, 1);
212 };
213 
214 } /* namespace HighPtTracks */
215 
216 #endif /* ALIREDUCEDEMCALCLUSTER_H */
Int_t pdg
Reduced EMCAL cluster information.
double Double_t
Definition: External.C:58
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)
energy
Definition: HFPtSpectrum.C:44
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)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
TObjArray * fContributors
True particles contributing to the cluster.
void SetLeadingCellEnergies(Double_t e1, Double_t e2, Double_t e3)
Namespace for classes creating trees of events with jets.
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.