1 #ifndef EVENT_CALORIMETERHITIMPL_H
2 #define EVENT_CALORIMETERHITIMPL_H 1
5 #include "EVENT/MCParticle.h"
6 #include "EVENT/CalorimeterHit.h"
8 #include "AccessChecked.h"
34 virtual int id()
const {
return simpleUID() ; }
107 void setType(
int type) ;
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