|
LCIO
02.17
|
Default implementation of TrackerRawData. More...
#include <TrackerRawDataImpl.h>
Inheritance diagram for IMPL::TrackerRawDataImpl:Public Member Functions | |
| TrackerRawDataImpl () | |
| Default Constructor - initializes all data to 0's. More... | |
| virtual | ~TrackerRawDataImpl () |
| 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 int | getTime () const |
| Returns the time. More... | |
| virtual const EVENT::ShortVec & | getADCValues () const |
| The measured ADC values. More... | |
| void | setCellID0 (int cellID0) |
| void | setCellID1 (int cellID1) |
| void | setTime (int time) |
| void | setADCValues (const EVENT::ShortVec &adc) |
| Set the ADC vector by copying the values. More... | |
| EVENT::ShortVec & | adcValues () |
| Allows direct access to the adc vector. More... | |
Public Member Functions inherited from EVENT::TrackerRawData | |
| virtual | ~TrackerRawData () |
| Destructor. More... | |
Public Member Functions inherited from EVENT::LCObject | |
| virtual | ~LCObject () |
| Destructor. More... | |
| virtual LCObject * | clone () const |
| Returns an object id for internal (debugging) use in LCIO. More... | |
Public Member Functions inherited from lcrtrel::LCRTRelations | |
| 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... | |
Public Member Functions inherited from IMPL::AccessChecked | |
| AccessChecked () | |
| virtual | ~AccessChecked () |
| virtual int | simpleUID () const |
Protected Attributes | |
| int | _cellID0 |
| int | _cellID1 |
| int | _channelID |
| int | _time |
| EVENT::ShortVec | _adc {} |
Protected Attributes inherited from IMPL::AccessChecked | |
| bool | _readOnly {false} |
| int | _id {-1} |
Additional Inherited Members | |
Public Types inherited from EVENT::TrackerRawData | |
| typedef TrackerRawData | lcobject_type |
| Useful typedef for template programming with LCIO. More... | |
Public Types inherited from lcrtrel::LCRTRelations | |
| typedef std::type_index | ext_index |
| typedef std::shared_ptr< void > | ext_type |
| typedef std::map< ext_index, ext_type > | ext_map |
Protected Member Functions inherited from IMPL::AccessChecked | |
| virtual void | setReadOnly (bool readOnly) |
| void | checkAccess () |
| void | checkAccess (const char *what) |
Static Protected Attributes inherited from IMPL::AccessChecked | |
| static std::atomic_int | _lCObjectId |
Default implementation of TrackerRawData.
Definition at line 15 of file TrackerRawDataImpl.h.
| IMPL::TrackerRawDataImpl::TrackerRawDataImpl | ( | ) |
Default Constructor - initializes all data to 0's.
Definition at line 11 of file TrackerRawDataImpl.cc.
|
virtual |
Destructor.
Definition at line 19 of file TrackerRawDataImpl.cc.
| ShortVec & IMPL::TrackerRawDataImpl::adcValues | ( | ) |
Allows direct access to the adc vector.
Can be used e.g. to set the values: raw->adcValues().clear() ; raw->adcValues().resize( n ) ; raw->adcValues()[i] = 42 ;
Definition at line 45 of file TrackerRawDataImpl.cc.
References _adc, and IMPL::AccessChecked::checkAccess().
|
inlinevirtual |
The measured ADC values.
Implements EVENT::TrackerRawData.
Definition at line 44 of file TrackerRawDataImpl.h.
References _adc.
|
inlinevirtual |
Returns the first detector specific (geometrical) cell id.
Implements EVENT::TrackerRawData.
Definition at line 30 of file TrackerRawDataImpl.h.
References _cellID0.
|
inlinevirtual |
Returns the second detector specific (geometrical) cell id.
Optional, check/set flag(LCIO::TRAWBIT_ID1)==1.
Implements EVENT::TrackerRawData.
Definition at line 35 of file TrackerRawDataImpl.h.
References _cellID1.
|
inlinevirtual |
Returns the time.
Implements EVENT::TrackerRawData.
Definition at line 40 of file TrackerRawDataImpl.h.
References _time.
|
inlinevirtual |
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 26 of file TrackerRawDataImpl.h.
References IMPL::AccessChecked::simpleUID().
| void IMPL::TrackerRawDataImpl::setADCValues | ( | const EVENT::ShortVec & | adc | ) |
Set the ADC vector by copying the values.
Definition at line 38 of file TrackerRawDataImpl.cc.
References _adc, 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::TrackerRawDataImpl::setCellID0 | ( | int | cellID0 | ) |
Definition at line 22 of file TrackerRawDataImpl.cc.
References _cellID0, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerRawDataImpl::setCellID1 | ( | int | cellID1 | ) |
Definition at line 27 of file TrackerRawDataImpl.cc.
References _cellID1, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerRawDataImpl::setTime | ( | int | time | ) |
Definition at line 32 of file TrackerRawDataImpl.cc.
References _time, and IMPL::AccessChecked::checkAccess().
|
protected |
Definition at line 69 of file TrackerRawDataImpl.h.
Referenced by adcValues(), getADCValues(), and setADCValues().
|
protected |
Definition at line 65 of file TrackerRawDataImpl.h.
Referenced by getCellID0(), and setCellID0().
|
protected |
Definition at line 66 of file TrackerRawDataImpl.h.
Referenced by getCellID1(), and setCellID1().
|
protected |
Definition at line 67 of file TrackerRawDataImpl.h.
|
protected |
Definition at line 68 of file TrackerRawDataImpl.h.
1.8.5