LCIO
02.17
|
Implementation of the real data RawCalorimeterHit. More...
#include <RawCalorimeterHitImpl.h>
Public Member Functions | |
RawCalorimeterHitImpl () | |
Default constructor, initializes values to 0. More... | |
virtual | ~RawCalorimeterHitImpl () |
Destructor. More... | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
virtual int | getCellID0 () const |
Returns the detector specific (geometrical) cell id. More... | |
virtual int | getCellID1 () const |
Returns the second detector specific (geometrical) cell id. More... | |
virtual int | getAmplitude () const |
Returns the amplitude of the hit in ADC counts. More... | |
virtual int | getTimeStamp () const |
Returns a time stamp for the hit. More... | |
void | setCellID0 (int id0) |
void | setCellID1 (int id1) |
Sets the second cell id; Only store if the flag word (bit CHBIT_ID1) of the collection is set. More... | |
void | setAmplitude (int amplitude) |
Sets the amplitude. More... | |
void | setTimeStamp (int time) |
Set the time stamp. More... | |
![]() | |
virtual | ~RawCalorimeterHit () |
Destructor. More... | |
![]() | |
virtual | ~LCObject () |
Destructor. More... | |
virtual LCObject * | clone () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
![]() | |
template<class V > | |
V::ext_type | ext () |
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More... | |
template<class V > | |
const V::ext_type | ext () const |
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More... | |
template<class V > | |
V::rel_type | rel () |
Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation. More... | |
![]() | |
AccessChecked () | |
virtual | ~AccessChecked () |
virtual int | simpleUID () const |
Protected Attributes | |
int | _cellID0 |
int | _cellID1 |
int | _amplitude |
int | _timeStamp |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Additional Inherited Members | |
![]() | |
typedef RawCalorimeterHit | lcobject_type |
Useful typedef for template programming with LCIO. More... | |
![]() | |
typedef std::type_index | ext_index |
typedef std::shared_ptr< void > | ext_type |
typedef std::map< ext_index, ext_type > | ext_map |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () |
void | checkAccess (const char *what) |
![]() | |
static std::atomic_int | _lCObjectId |
Implementation of the real data RawCalorimeterHit.
Definition at line 19 of file RawCalorimeterHitImpl.h.
IMPL::RawCalorimeterHitImpl::RawCalorimeterHitImpl | ( | ) |
Default constructor, initializes values to 0.
Definition at line 5 of file RawCalorimeterHitImpl.cc.
|
virtual |
Destructor.
Definition at line 13 of file RawCalorimeterHitImpl.cc.
|
virtual |
Returns the amplitude of the hit in ADC counts.
Implements EVENT::RawCalorimeterHit.
Definition at line 24 of file RawCalorimeterHitImpl.cc.
References _amplitude.
|
virtual |
Returns the detector specific (geometrical) cell id.
Implements EVENT::RawCalorimeterHit.
Definition at line 16 of file RawCalorimeterHitImpl.cc.
References _cellID0.
|
virtual |
Returns the second detector specific (geometrical) cell id.
Optional, check/set flag(LCIO::RCHBIT_ID1)==1.
Implements EVENT::RawCalorimeterHit.
Definition at line 20 of file RawCalorimeterHitImpl.cc.
References _cellID1.
|
virtual |
Returns a time stamp for the hit.
Optional, check/set flag(LCIO::RCHBIT_TIME)==1.
Implements EVENT::RawCalorimeterHit.
Definition at line 28 of file RawCalorimeterHitImpl.cc.
References _timeStamp.
|
inlinevirtual |
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 30 of file RawCalorimeterHitImpl.h.
References IMPL::AccessChecked::simpleUID().
void IMPL::RawCalorimeterHitImpl::setAmplitude | ( | int | amplitude | ) |
Sets the amplitude.
Definition at line 44 of file RawCalorimeterHitImpl.cc.
References _amplitude, and IMPL::AccessChecked::checkAccess().
void IMPL::RawCalorimeterHitImpl::setCellID0 | ( | int | id0 | ) |
Definition at line 34 of file RawCalorimeterHitImpl.cc.
References _cellID0, and IMPL::AccessChecked::checkAccess().
void IMPL::RawCalorimeterHitImpl::setCellID1 | ( | int | id1 | ) |
Sets the second cell id; Only store if the flag word (bit CHBIT_ID1) of the collection is set.
Default is to store only cellid0.
Definition at line 39 of file RawCalorimeterHitImpl.cc.
References _cellID1, and IMPL::AccessChecked::checkAccess().
void IMPL::RawCalorimeterHitImpl::setTimeStamp | ( | int | time | ) |
Set the time stamp.
Definition at line 49 of file RawCalorimeterHitImpl.cc.
References _timeStamp, and IMPL::AccessChecked::checkAccess().
|
protected |
Definition at line 71 of file RawCalorimeterHitImpl.h.
Referenced by getAmplitude(), and setAmplitude().
|
protected |
Definition at line 69 of file RawCalorimeterHitImpl.h.
Referenced by getCellID0(), and setCellID0().
|
protected |
Definition at line 70 of file RawCalorimeterHitImpl.h.
Referenced by getCellID1(), and setCellID1().
|
protected |
Definition at line 72 of file RawCalorimeterHitImpl.h.
Referenced by getTimeStamp(), and setTimeStamp().