- 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 id,
- Float_t *hits,TLorentzVector *p);
- virtual ~AliEMCALHit(void) {}// dtor
- //returns the energy loss for this hit
- Float_t GetEnergy(void) const{return fELOS;}
- // return the identificator of this his
- Int_t GetId(void) const { return fId;}
- // returns the primary particle id at the origine of this hit
- Int_t GetPrimary(void) const{return fPrimary;}
- // returns the energy/momentum LorentzVector of the enetering particle.
- TLorentzVector& GetP(void) {return fP;}
- Bool_t operator == (AliEMCALHit const &rValue) const;
- AliEMCALHit operator + (const AliEMCALHit& rValue);
+
+ friend ostream& operator << (ostream&,AliEMCALHit&);
+
+public:
+ AliEMCALHit(); // default ctor
+ AliEMCALHit(const AliEMCALHit & hit);
+ 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;}
+ // return the identificator of this his
+ Int_t GetId(void) const { return fId;}
+ // returns the primary particle id at the origine of this hit
+ Int_t GetIparent(void) const{return fIparent;}
+ Float_t GetIenergy(void) const{return fIenergy;}
+ Int_t GetPrimary(void) const{return fPrimary;}
+ // returns the energy/momentum LorentzVector of the enetering particle.
+ 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;}