LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
CalorimeterHitImpl.h
1 #ifndef EVENT_CALORIMETERHITIMPL_H
2 #define EVENT_CALORIMETERHITIMPL_H 1
3 
4 
5 #include "EVENT/MCParticle.h"
6 #include "EVENT/CalorimeterHit.h"
7 #include <vector>
8 #include "AccessChecked.h"
9 
10 namespace IMPL {
11 
12 
20 
21  public:
22 
26 
29  // CalorimeterHitImpl(const CalorimeterHit& hit) ;
30 
32  virtual ~CalorimeterHitImpl() ;
33 
34  virtual int id() const { return simpleUID() ; }
35 
38  virtual int getCellID0() const ;
39 
44  virtual int getCellID1() const ;
45 
48  virtual float getEnergy() const ;
49 
53  virtual float getEnergyError() const ;
54 
58  virtual float getTime() const ;
59 
65  virtual const float * getPosition() const ;
66 
71  virtual int getType() const ;
72 
76  virtual EVENT::LCObject * getRawHit() const ;
77 
78  // setters
79 
82  void setCellID0(int id0) ;
83 
88  void setCellID1(int id1) ;
89 
92  void setEnergy(float en) ;
93 
97  void setEnergyError(float enerr) ;
98 
101  void setTime(float t) ;
102 
105  void setPosition(const float pos[3]) ;
106 
107  void setType(int type) ;
108 
109  void setRawHit(EVENT::LCObject* rawHit ) ;
110 
111  protected:
112 
113  int _cellID0 ;
114  int _cellID1 ;
115  float _energy ;
116  float _energyError ;
117  float _time ;
118  float _position[3] ;
119  int _type ;
120 
121  EVENT::LCObject* _rawHit ;
122 
123  }; // class
124 } // namespace IMPL
125 #endif /* ifndef EVENT_CALORIMETERHITIMPL_H */
Implementation of the real data CalorimeterHit.
Definition: CalorimeterHitImpl.h:19
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual EVENT::LCObject * getRawHit() const
The RawCalorimeterHit.
Definition: CalorimeterHitImpl.cc:49
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit RCHBIT_ID1) of the collection is set...
Definition: CalorimeterHitImpl.cc:58
void setEnergy(float en)
Sets the energy/amplitude.
Definition: CalorimeterHitImpl.cc:63
CalorimeterHitImpl()
Default constructor, initializes values to 0.
Definition: CalorimeterHitImpl.cc:5
virtual float getTime() const
Returns the time of the hit in [ns].
Definition: CalorimeterHitImpl.cc:38
virtual int getCellID1() const
Returns the second detector specific (geometrical) cell id.
Definition: CalorimeterHitImpl.cc:26
void setEnergyError(float enerr)
Sets the error of the hit energy.
Definition: CalorimeterHitImpl.cc:68
virtual ~CalorimeterHitImpl()
Copy constructor.
Definition: CalorimeterHitImpl.cc:19
virtual int getType() const
Type of hit.
Definition: CalorimeterHitImpl.cc:46
void setTime(float t)
Sets the time.
Definition: CalorimeterHitImpl.cc:73
void setCellID0(int id0)
Sets the first cell id;.
Definition: CalorimeterHitImpl.cc:53
Controls access to objects.
Definition: AccessChecked.h:17
virtual float getEnergy() const
Returns the energy of the hit.
Definition: CalorimeterHitImpl.cc:30
virtual int getCellID0() const
Returns the detector specific (geometrical) cell id.
Definition: CalorimeterHitImpl.cc:22
The generic calorimeter hit - created from SimCalorimeterHit or RawCalorimeterHit.
Definition: CalorimeterHit.h:34
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: CalorimeterHitImpl.h:34
virtual const float * getPosition() const
Returns the position of the hit in world coordinates.
Definition: CalorimeterHitImpl.cc:42
virtual float getEnergyError() const
Returns the error of the hit energy.
Definition: CalorimeterHitImpl.cc:34
void setPosition(const float pos[3])
Sets the position.
Definition: CalorimeterHitImpl.cc:78