LCIO
02.17
|
Default implementation of TrackerData. More...
#include <TrackerDataImpl.h>
Public Member Functions | |
TrackerDataImpl () | |
Default Constructor - initializes all data to 0's. More... | |
virtual | ~TrackerDataImpl () |
Destructor. More... | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
virtual int | getCellID0 () const |
Returns the first detector specific (geometrical) cell id. More... | |
virtual int | getCellID1 () const |
Returns the second detector specific (geometrical) cell id. More... | |
virtual float | getTime () const |
Returns the time. More... | |
virtual const EVENT::FloatVec & | getChargeValues () const |
The calibrated ADC values. More... | |
void | setCellID0 (int cellID0) |
void | setCellID1 (int cellID1) |
void | setTime (float time) |
void | setChargeValues (const EVENT::FloatVec &charge) |
Set the charge vector by copying the values. More... | |
EVENT::FloatVec & | chargeValues () |
Allows direct access to the charge vector. More... | |
![]() | |
virtual | ~TrackerData () |
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 |
float | _time |
EVENT::FloatVec | _charge {} |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Additional Inherited Members | |
![]() | |
typedef TrackerData | 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 |
Default implementation of TrackerData.
Definition at line 15 of file TrackerDataImpl.h.
IMPL::TrackerDataImpl::TrackerDataImpl | ( | ) |
Default Constructor - initializes all data to 0's.
Definition at line 11 of file TrackerDataImpl.cc.
|
virtual |
Destructor.
Definition at line 18 of file TrackerDataImpl.cc.
FloatVec & IMPL::TrackerDataImpl::chargeValues | ( | ) |
Allows direct access to the charge vector.
Can be used e.g. to set the values: raw->chargeValues().clear() ; raw->chargeValues().resize( n ) ; raw->chargeValues()[i] = 42. ;
Definition at line 44 of file TrackerDataImpl.cc.
References _charge, and IMPL::AccessChecked::checkAccess().
|
inlinevirtual |
Returns the first detector specific (geometrical) cell id.
Implements EVENT::TrackerData.
Definition at line 30 of file TrackerDataImpl.h.
References _cellID0.
|
inlinevirtual |
Returns the second detector specific (geometrical) cell id.
Optional, check/set flag(LCIO::TRAWBIT_ID1)==1.
Implements EVENT::TrackerData.
Definition at line 35 of file TrackerDataImpl.h.
References _cellID1.
|
inlinevirtual |
The calibrated ADC values.
Implements EVENT::TrackerData.
Definition at line 43 of file TrackerDataImpl.h.
References _charge.
|
inlinevirtual |
Returns the time.
Implements EVENT::TrackerData.
Definition at line 39 of file TrackerDataImpl.h.
References _time.
|
inlinevirtual |
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 26 of file TrackerDataImpl.h.
References IMPL::AccessChecked::simpleUID().
void IMPL::TrackerDataImpl::setCellID0 | ( | int | cellID0 | ) |
Definition at line 21 of file TrackerDataImpl.cc.
References _cellID0, and IMPL::AccessChecked::checkAccess().
void IMPL::TrackerDataImpl::setCellID1 | ( | int | cellID1 | ) |
Definition at line 26 of file TrackerDataImpl.cc.
References _cellID1, and IMPL::AccessChecked::checkAccess().
void IMPL::TrackerDataImpl::setChargeValues | ( | const EVENT::FloatVec & | charge | ) |
Set the charge vector by copying the values.
Definition at line 37 of file TrackerDataImpl.cc.
References _charge, std::vector< T >::begin(), IMPL::AccessChecked::checkAccess(), std::vector< T >::clear(), std::copy(), std::vector< T >::end(), std::vector< T >::resize(), and std::vector< T >::size().
void IMPL::TrackerDataImpl::setTime | ( | float | time | ) |
Definition at line 31 of file TrackerDataImpl.cc.
References _time, and IMPL::AccessChecked::checkAccess().
|
protected |
Definition at line 65 of file TrackerDataImpl.h.
Referenced by getCellID0(), and setCellID0().
|
protected |
Definition at line 66 of file TrackerDataImpl.h.
Referenced by getCellID1(), and setCellID1().
|
protected |
Definition at line 68 of file TrackerDataImpl.h.
Referenced by chargeValues(), getChargeValues(), and setChargeValues().
|
protected |
Definition at line 67 of file TrackerDataImpl.h.