1 #ifndef ALIEMCALHITV1_H
2 #define ALIEMCALHITV1_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // Hits class for EMCAL
10 // A hit in EMCAL is the usuall hi with full information about xlocal, ylocal, zlocal
12 //*-- Author: Aleksei Pavlinov(WSU)
13 // Based on AliPHOSHit * See cxx source for full Copyright notice */
16 // --- AliRoot header files ---
20 class AliEMCALHitv1 : public AliHit {
22 friend ostream& operator << (ostream&,AliEMCALHitv1&);
25 AliEMCALHitv1(); // default ctor
26 AliEMCALHitv1(const AliEMCALHitv1 & hit);
27 AliEMCALHitv1(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t iparent, Float_t ienergy, Int_t id, Float_t *hits,Float_t *p);
28 virtual ~AliEMCALHitv1(void) {}// dtor
29 //returns the energy loss for this hit
30 Float_t GetEnergy(void) const{return fELOS;}
31 // return the identificator of this his
32 Int_t GetId(void) const { return fId;}
33 // returns the primary particle id at the origine of this hit
34 Int_t GetIparent(void) const{return fIparent;}
35 Float_t GetIenergy(void) const{return fIenergy;}
36 Int_t GetPrimary(void) const{return fPrimary;}
37 // returns the energy/momentum LorentzVector of the enetering particle.
38 Float_t GetTime(void) const {
39 // returns the time of the first energy deposition
42 Float_t GetPx(void) const{return fPx;}
43 Float_t GetPy(void) const{return fPy;}
44 Float_t GetPz(void) const{return fPz;}
45 Float_t GetPe(void) const{return fPe;}
47 void SetIparent(Int_t i_parent) {fIparent=i_parent;}
48 void SetPrimary(Int_t primary) {fPrimary=primary;}
50 Bool_t operator == (AliEMCALHitv1 const &rValue) const;
51 AliEMCALHitv1 operator + (const AliEMCALHitv1& rValue);
55 Int_t fId; // Absolute Id number EMCAL segment
56 Float_t fELOS; // Energy deposited
57 Int_t fPrimary; // Primary particles at the origin of the hit
58 Float_t fPx; // Primary particle entrance momentum/energy
59 Float_t fPy; // Primary particle entrance momentum/energy
60 Float_t fPz; // Primary particle entrance momentum/energy
61 Float_t fPe; // Primary particle entrance momentum/energy
62 Int_t fIparent; // Parent particle that entered emcal
63 Float_t fIenergy; // Initial energy of parent particle that enterred the emcal
64 Float_t fTime ; // Time of the energy deposition
66 ClassDef(AliEMCALHitv1,0) // Hit for EMCAL
70 #endif // ALIEMCALHITV1_H