AliRoot Core  3dc7879 (3dc7879)
AliEMCALHit.h
Go to the documentation of this file.
1 #ifndef ALIEMCALHIT_H
2 #define ALIEMCALHIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
18 
19 // --- AliRoot header files ---
20 #include "AliHit.h"
21 
22 using std::ostream;
23 
24 class AliEMCALHit : public AliHit
25 {
26 
27  friend ostream& operator << (ostream&,AliEMCALHit&);
28 
29 public:
30 
31  AliEMCALHit(); // default ctor
32  AliEMCALHit (const AliEMCALHit & hit);
33  AliEMCALHit& operator = (const AliEMCALHit& source) ;
34 
35  AliEMCALHit(Int_t shunt, Int_t primary, Int_t tracknumber,
36  Int_t iparent, Float_t ienergy, Int_t id, Float_t *hits,Float_t *p);
37 
38  virtual ~AliEMCALHit(void) {}// dtor
39 
41  Float_t GetEnergy (void) const { return fELOS ; }
42 
44  Int_t GetId (void) const { return fId ; }
45 
47  Int_t GetIparent(void) const { return fIparent ; }
48 
49  Float_t GetIenergy(void) const { return fIenergy ; }
50 
51  Int_t GetPrimary(void) const { return fPrimary ; }
52 
54  Float_t GetTime (void) const { return fTime ; }
55 
56  Float_t GetPx (void) const { return fPx ; }
57  Float_t GetPy (void) const { return fPy ; }
58  Float_t GetPz (void) const { return fPz ; }
59  Float_t GetPe (void) const { return fPe ; }
60 
61  void SetIparent(Int_t iparent) { fIparent=iparent ; }
62  void SetPrimary(Int_t primary) { fPrimary=primary ; }
63 
64  Bool_t operator == (AliEMCALHit const &rValue) const;
65  AliEMCALHit operator + (const AliEMCALHit& rValue);
66 
67  private:
68 
69  Int_t fId;
70  Float_t fELOS;
71  Int_t fPrimary;
72  Float_t fPx;
73  Float_t fPy;
74  Float_t fPz;
75  Float_t fPe;
76  Int_t fIparent;
77  Float_t fIenergy;
78  Float_t fTime ;
79 
81  ClassDef(AliEMCALHit,3) ;
83 
84 };
85 
86 #endif // ALIEMCALHIT_H
Float_t fPy
Primary particle entrance momentum/energy.
Definition: AliEMCALHit.h:73
Float_t GetPe(void) const
Definition: AliEMCALHit.h:59
Int_t fId
Absolute Id number EMCAL segment.
Definition: AliEMCALHit.h:69
Definition: AliHit.h:14
void SetIparent(Int_t iparent)
Definition: AliEMCALHit.h:61
AliEMCALHit()
Default constructor.
Definition: AliEMCALHit.cxx:31
void SetPrimary(Int_t primary)
Definition: AliEMCALHit.h:62
Float_t fTime
Time of the energy deposition.
Definition: AliEMCALHit.h:78
Float_t p[]
Definition: kNNTest.C:133
Int_t fPrimary
Primary particles at the origin of the hit.
Definition: AliEMCALHit.h:71
Int_t GetId(void) const
Definition: AliEMCALHit.h:44
Float_t GetPx(void) const
Definition: AliEMCALHit.h:56
Float_t fPx
Primary particle entrance momentum/energy.
Definition: AliEMCALHit.h:72
AliEMCALHit operator+(const AliEMCALHit &rValue)
Add the energy of the hit.
Float_t fPz
Primary particle entrance momentum/energy.
Definition: AliEMCALHit.h:74
virtual ~AliEMCALHit(void)
Definition: AliEMCALHit.h:38
Float_t GetIenergy(void) const
Definition: AliEMCALHit.h:49
EMCal hits object.
Definition: AliEMCALHit.h:24
Bool_t operator==(AliEMCALHit const &rValue) const
Float_t fELOS
Energy deposited.
Definition: AliEMCALHit.h:70
Int_t fIparent
Parent particle that entered emcal.
Definition: AliEMCALHit.h:76
Float_t fPe
Primary particle entrance momentum/energy.
Definition: AliEMCALHit.h:75
Int_t GetIparent(void) const
Definition: AliEMCALHit.h:47
Int_t GetPrimary(void) const
Definition: AliEMCALHit.h:51
friend ostream & operator<<(ostream &, AliEMCALHit &)
Dump hit info.
Float_t GetPy(void) const
Definition: AliEMCALHit.h:57
AliEMCALHit & operator=(const AliEMCALHit &source)
Assignment operator; use copy constructor.
Definition: AliEMCALHit.cxx:64
Float_t fIenergy
Initial energy of parent particle that enterred the emcal.
Definition: AliEMCALHit.h:77
Float_t GetEnergy(void) const
Definition: AliEMCALHit.h:41
Float_t GetTime(void) const
Definition: AliEMCALHit.h:54
Float_t GetPz(void) const
Definition: AliEMCALHit.h:58