LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CalorimeterHitImpl.h
Go to the documentation of this file.
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 
31  virtual ~CalorimeterHitImpl() ;
32 
33  virtual int id() const { return simpleUID() ; }
34 
37  virtual int getCellID0() const ;
38 
43  virtual int getCellID1() const ;
44 
47  virtual float getEnergy() const ;
48 
52  virtual float getEnergyError() const ;
53 
57  virtual float getTime() const ;
58 
64  virtual const float * getPosition() const ;
65 
70  virtual int getType() const ;
71 
75  virtual EVENT::LCObject * getRawHit() const ;
76 
77  // setters
78 
81  void setCellID0(int id0) ;
82 
87  void setCellID1(int id1) ;
88 
91  void setEnergy(float en) ;
92 
96  void setEnergyError(float enerr) ;
97 
100  void setTime(float t) ;
101 
104  void setPosition(const float pos[3]) ;
105 
106  void setType(int type) ;
107 
108  void setRawHit(EVENT::LCObject* rawHit ) ;
109 
110  protected:
111 
112  int _cellID0 ;
113  int _cellID1 ;
114  float _energy ;
115  float _energyError ;
116  float _time ;
117  float _position[3] ;
118  int _type ;
119 
121 
122  }; // class
123 } // namespace IMPL
124 #endif /* ifndef EVENT_CALORIMETERHITIMPL_H */
Implementation of the real data CalorimeterHit.
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual EVENT::LCObject * getRawHit() const
The RawCalorimeterHit.
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit RCHBIT_ID1) of the collection is set...
void setEnergy(float en)
Sets the energy/amplitude.
CalorimeterHitImpl()
Default constructor, initializes values to 0.
CalorimeterHitImpl & operator=(const IMPL::CalorimeterHitImpl &)=default
void setRawHit(EVENT::LCObject *rawHit)
virtual float getTime() const
Returns the time of the hit in [ns].
virtual int getCellID1() const
Returns the second detector specific (geometrical) cell id.
void setEnergyError(float enerr)
Sets the error of the hit energy.
virtual ~CalorimeterHitImpl()
Destructor.
virtual int getType() const
Type of hit.
void setTime(float t)
Sets the time.
virtual int simpleUID() const
Definition: AccessChecked.h:26
void setCellID0(int id0)
Sets the first cell id;.
Controls access to objects.
Definition: AccessChecked.h:18
virtual float getEnergy() const
Returns the energy of the hit.
virtual int getCellID0() const
Returns the detector specific (geometrical) cell id.
The generic calorimeter hit - created from SimCalorimeterHit or RawCalorimeterHit.
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
virtual const float * getPosition() const
Returns the position of the hit in world coordinates.
virtual float getEnergyError() const
Returns the error of the hit energy.
void setPosition(const float pos[3])
Sets the position.