LCIO
02.17
|
Implementation of the real data TPCHit. More...
#include <TPCHitImpl.h>
Public Member Functions | |
TPCHitImpl () | |
Default Constructor - initializes all data to 0's. More... | |
TPCHitImpl (const TPCHitImpl &)=default | |
default copy constructor - use with care More... | |
TPCHitImpl & | operator= (const TPCHitImpl &)=default |
default assignment operator - use with care More... | |
virtual | ~TPCHitImpl () |
Destructor. More... | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
virtual int | getCellID () const |
Returns the detector specific cell id. More... | |
virtual float | getTime () const |
Returns the time of the hit. More... | |
virtual float | getCharge () const |
Returns the integrated charge of the hit. More... | |
virtual int | getQuality () const |
Returns a quality flag for the hit. More... | |
virtual int | getNRawDataWords () const |
Return the number of raw data (32-bit) words stored for the hit. More... | |
virtual int | getRawDataWord (int i) const |
Return the raw data (32-bit) word at i. More... | |
virtual void | setCellID (int cellID) |
Set the cell id. More... | |
virtual void | setTime (float time) |
Set the time. More... | |
virtual void | setCharge (float charge) |
Set the charge. More... | |
virtual void | setQuality (int quality) |
Set the cell quality word. More... | |
virtual void | setRawData (const int *raw, int size) |
Set the raw data. More... | |
![]() | |
virtual | ~TPCHit () |
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 Member Functions | |
virtual void | initRawArray (int size) |
initialize the raw data array - for faster reading More... | |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () |
void | checkAccess (const char *what) |
Protected Attributes | |
int | _cellID |
float | _time |
float | _charge |
int | _quality |
int | _rawSize |
int * | _rawArray |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Additional Inherited Members | |
![]() | |
typedef TPCHit | 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 |
![]() | |
static std::atomic_int | _lCObjectId |
Implementation of the real data TPCHit.
Definition at line 15 of file TPCHitImpl.h.
IMPL::TPCHitImpl::TPCHitImpl | ( | ) |
Default Constructor - initializes all data to 0's.
Definition at line 7 of file TPCHitImpl.cc.
|
default |
default copy constructor - use with care
|
virtual |
|
virtual |
Returns the detector specific cell id.
Implements EVENT::TPCHit.
Definition at line 23 of file TPCHitImpl.cc.
References _cellID.
|
virtual |
Returns the integrated charge of the hit.
Implements EVENT::TPCHit.
Definition at line 27 of file TPCHitImpl.cc.
References _charge.
|
virtual |
Return the number of raw data (32-bit) words stored for the hit.
Check the flag word (bit TPCBIT_RAW) of the collection if raw data is stored at all.
Implements EVENT::TPCHit.
Definition at line 31 of file TPCHitImpl.cc.
References _rawSize.
|
virtual |
Returns a quality flag for the hit.
Implements EVENT::TPCHit.
Definition at line 29 of file TPCHitImpl.cc.
References _quality.
|
virtual |
Return the raw data (32-bit) word at i.
Check the flag word (bit TPCBIT_RAW) of the collection if raw data is stored at all.
Implements EVENT::TPCHit.
Definition at line 33 of file TPCHitImpl.cc.
|
virtual |
Returns the time of the hit.
Implements EVENT::TPCHit.
Definition at line 25 of file TPCHitImpl.cc.
References _time.
|
inlinevirtual |
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 32 of file TPCHitImpl.h.
References IMPL::AccessChecked::simpleUID().
|
protectedvirtual |
initialize the raw data array - for faster reading
Definition at line 73 of file TPCHitImpl.cc.
|
default |
default assignment operator - use with care
|
virtual |
Set the cell id.
Definition at line 42 of file TPCHitImpl.cc.
References _cellID, and IMPL::AccessChecked::checkAccess().
|
virtual |
Set the charge.
Definition at line 52 of file TPCHitImpl.cc.
References _charge, and IMPL::AccessChecked::checkAccess().
|
virtual |
Set the cell quality word.
Definition at line 57 of file TPCHitImpl.cc.
References _quality, and IMPL::AccessChecked::checkAccess().
|
virtual |
Set the raw data.
Definition at line 62 of file TPCHitImpl.cc.
References _rawArray, _rawSize, and IMPL::AccessChecked::checkAccess().
|
virtual |
Set the time.
Definition at line 47 of file TPCHitImpl.cc.
References _time, and IMPL::AccessChecked::checkAccess().
|
protected |
Definition at line 88 of file TPCHitImpl.h.
Referenced by getCellID(), and setCellID().
|
protected |
Definition at line 90 of file TPCHitImpl.h.
Referenced by getCharge(), and setCharge().
|
protected |
Definition at line 91 of file TPCHitImpl.h.
Referenced by getQuality(), and setQuality().
|
protected |
Definition at line 93 of file TPCHitImpl.h.
Referenced by getRawDataWord(), initRawArray(), setRawData(), and ~TPCHitImpl().
|
protected |
Definition at line 92 of file TPCHitImpl.h.
Referenced by getNRawDataWords(), getRawDataWord(), initRawArray(), and setRawData().
|
protected |
Definition at line 89 of file TPCHitImpl.h.