LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::TrackerRawDataImpl Class Reference

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::ShortVecgetADCValues () 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::ShortVecadcValues ()
 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 LCObjectclone () 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
 

Detailed Description

Default implementation of TrackerRawData.

Author
gaede
Version
Id:
TrackerRawDataImpl.h,v 1.2 2006-08-04 16:52:47 gaede Exp

Definition at line 15 of file TrackerRawDataImpl.h.

Constructor & Destructor Documentation

IMPL::TrackerRawDataImpl::TrackerRawDataImpl ( )

Default Constructor - initializes all data to 0's.

Definition at line 11 of file TrackerRawDataImpl.cc.

IMPL::TrackerRawDataImpl::~TrackerRawDataImpl ( )
virtual

Destructor.

Definition at line 19 of file TrackerRawDataImpl.cc.

Member Function Documentation

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().

virtual const EVENT::ShortVec& IMPL::TrackerRawDataImpl::getADCValues ( ) const
inlinevirtual

The measured ADC values.

Implements EVENT::TrackerRawData.

Definition at line 44 of file TrackerRawDataImpl.h.

References _adc.

virtual int IMPL::TrackerRawDataImpl::getCellID0 ( ) const
inlinevirtual

Returns the first detector specific (geometrical) cell id.

Implements EVENT::TrackerRawData.

Definition at line 30 of file TrackerRawDataImpl.h.

References _cellID0.

virtual int IMPL::TrackerRawDataImpl::getCellID1 ( ) const
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.

virtual int IMPL::TrackerRawDataImpl::getTime ( ) const
inlinevirtual

Returns the time.

Implements EVENT::TrackerRawData.

Definition at line 40 of file TrackerRawDataImpl.h.

References _time.

virtual int IMPL::TrackerRawDataImpl::id ( ) const
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)
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().

Member Data Documentation

EVENT::ShortVec IMPL::TrackerRawDataImpl::_adc {}
protected

Definition at line 69 of file TrackerRawDataImpl.h.

Referenced by adcValues(), getADCValues(), and setADCValues().

int IMPL::TrackerRawDataImpl::_cellID0
protected

Definition at line 65 of file TrackerRawDataImpl.h.

Referenced by getCellID0(), and setCellID0().

int IMPL::TrackerRawDataImpl::_cellID1
protected

Definition at line 66 of file TrackerRawDataImpl.h.

Referenced by getCellID1(), and setCellID1().

int IMPL::TrackerRawDataImpl::_channelID
protected

Definition at line 67 of file TrackerRawDataImpl.h.

int IMPL::TrackerRawDataImpl::_time
protected

Definition at line 68 of file TrackerRawDataImpl.h.

Referenced by getTime(), and setTime().


The documentation for this class was generated from the following files: