X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALHit.h;h=ba2d5125c7e929971462e6498ecc9a301b950aad;hb=150f4870d3cb88085fcee304d284975fe44c0df8;hp=ffa2aa98f2e69dfe732f40d04e1b58ccda8b6b8b;hpb=78e1bea11967ba599e3e5399748e4eb15187190b;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALHit.h b/EMCAL/AliEMCALHit.h index ffa2aa98f2e..ba2d5125c7e 100644 --- a/EMCAL/AliEMCALHit.h +++ b/EMCAL/AliEMCALHit.h @@ -12,22 +12,20 @@ // //*-- Author: Sahal Yacoob (LBL /UCT) // Based on AliPHOSHit -#include + // --- AliRoot header files --- #include "AliHit.h" -//class ostream; class AliEMCALHit : public AliHit { friend ostream& operator << (ostream&,AliEMCALHit&); public: - AliEMCALHit(); // default ctor AliEMCALHit(const AliEMCALHit & hit); - AliEMCALHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t iparent, Float_t ienergy, Int_t id, - Float_t *hits,Float_t *p); + AliEMCALHit& operator = (const AliEMCALHit& source) ; + AliEMCALHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t iparent, Float_t ienergy, Int_t id, Float_t *hits,Float_t *p); virtual ~AliEMCALHit(void) {}// dtor //returns the energy loss for this hit Float_t GetEnergy(void) const{return fELOS;} @@ -41,11 +39,15 @@ public: Float_t GetTime(void) const { // returns the time of the first energy deposition return fTime ;} - + Float_t GetPx(void) const{return fPx;} Float_t GetPy(void) const{return fPy;} Float_t GetPz(void) const{return fPz;} Float_t GetPe(void) const{return fPe;} + + void SetIparent(Int_t iparent) {fIparent=iparent;} + void SetPrimary(Int_t primary) {fPrimary=primary;} + Bool_t operator == (AliEMCALHit const &rValue) const; AliEMCALHit operator + (const AliEMCALHit& rValue); @@ -54,10 +56,10 @@ public: Int_t fId; // Absolute Id number EMCAL segment Float_t fELOS; // Energy deposited Int_t fPrimary; // Primary particles at the origin of the hit - Float_t fPx; // Primary partical enetrence momentum/energy - Float_t fPy; // Primary partical enetrence momentum/energy - Float_t fPz; // Primary partical enetrence momentum/energy - Float_t fPe; // Primary partical enetrence momentum/energy + Float_t fPx; // Primary particle entrance momentum/energy + Float_t fPy; // Primary particle entrance momentum/energy + Float_t fPz; // Primary particle entrance momentum/energy + Float_t fPe; // Primary particle entrance momentum/energy Int_t fIparent; // Parent particle that entered emcal Float_t fIenergy; // Initial energy of parent particle that enterred the emcal Float_t fTime ; // Time of the energy deposition