Implementation of the real data CalorimeterHit. More...
#include <IMPL/CalorimeterHitImpl.h>
Public Member Functions | |
CalorimeterHitImpl () | |
Default constructor, initializes values to 0. | |
CalorimeterHitImpl (const IMPL::CalorimeterHitImpl &) | |
CalorimeterHitImpl & | operator= (const IMPL::CalorimeterHitImpl &) |
virtual | ~CalorimeterHitImpl () |
Destructor. | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. | |
virtual int | getCellID0 () const |
Returns the detector specific (geometrical) cell id. | |
virtual int | getCellID1 () const |
Returns the second detector specific (geometrical) cell id. | |
virtual float | getEnergy () const |
Returns the energy of the hit. | |
virtual float | getEnergyError () const |
Returns the error of the hit energy. | |
virtual float | getTime () const |
Returns the time of the hit in [ns]. | |
virtual const float * | getPosition () const |
Returns the position of the hit in world coordinates. | |
virtual int | getType () const |
Type of hit. | |
virtual EVENT::LCObject * | getRawHit () const |
The RawCalorimeterHit. | |
void | setCellID0 (int id0) |
Sets the first cell id;. | |
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. | |
void | setEnergyError (float enerr) |
Sets the error of the hit energy. | |
void | setTime (float t) |
Sets the time. | |
void | setPosition (const float pos[3]) |
Sets the position. | |
void | setType (int type) |
void | setRawHit (EVENT::LCObject *rawHit) |
Protected Attributes | |
int | _cellID0 |
int | _cellID1 |
float | _energy |
float | _energyError |
float | _time |
float | _position [3] |
int | _type |
EVENT::LCObject * | _rawHit |
Implementation of the real data CalorimeterHit.
int IMPL::CalorimeterHitImpl::getCellID1 | ( | ) | const [virtual] |
Returns the second detector specific (geometrical) cell id.
0 if information is not stored - check the flag word (bit RCHBIT_ID1) of the collection. Default is to store only cellid0.
Implements EVENT::CalorimeterHit.
float IMPL::CalorimeterHitImpl::getEnergyError | ( | ) | const [virtual] |
Returns the error of the hit energy.
Optional, check/set flag(LCIO::RCHBIT_ENERGY_ERROR)==1.
Implements EVENT::CalorimeterHit.
const float * IMPL::CalorimeterHitImpl::getPosition | ( | ) | const [virtual] |
Returns the position of the hit in world coordinates.
NULL if information is not stored. Ask collection for flag, only available if bit LCIO.RCHBIT_LONG is set.
Implements EVENT::CalorimeterHit.
EVENT::LCObject * IMPL::CalorimeterHitImpl::getRawHit | ( | ) | const [virtual] |
The RawCalorimeterHit.
As in the future there might be other types of raw calorimeter hits the return type is LCObject.
Implements EVENT::CalorimeterHit.
float IMPL::CalorimeterHitImpl::getTime | ( | ) | const [virtual] |
Returns the time of the hit in [ns].
Optional, check/set flag(LCIO::RCHBIT_TIME)==1.
Implements EVENT::CalorimeterHit.
int IMPL::CalorimeterHitImpl::getType | ( | ) | const [virtual] |
Type of hit.
Mapping of integer types to type names through collection parameters "CalorimeterHitTypeNames" and "CalorimeterHitTypeValues".
Implements EVENT::CalorimeterHit.
void IMPL::CalorimeterHitImpl::setCellID1 | ( | int | id1 | ) |
Sets the second cell id; Only store if the flag word (bit RCHBIT_ID1) of the collection is set.
Default is to store only cellid0.
void IMPL::CalorimeterHitImpl::setEnergyError | ( | float | enerr | ) |
Sets the error of the hit energy.
Not stored if flag RCHBIT_ENERGY_ERROR isn't set
void IMPL::CalorimeterHitImpl::setPosition | ( | const float | pos[3] | ) |
Sets the position.
Not stored if LCIO.RCHBIT_LONG isn't set.