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::TrackerDataImpl Class Reference

Default implementation of TrackerData. More...

#include <TrackerDataImpl.h>

+ Inheritance diagram for IMPL::TrackerDataImpl:

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::FloatVecgetChargeValues () 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::FloatVecchargeValues ()
 Allows direct access to the charge vector. More...
 
- Public Member Functions inherited from EVENT::TrackerData
virtual ~TrackerData ()
 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
 
float _time
 
EVENT::FloatVec _charge {}
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 

Additional Inherited Members

- Public Types inherited from EVENT::TrackerData
typedef TrackerData 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 TrackerData.

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

Definition at line 15 of file TrackerDataImpl.h.

Constructor & Destructor Documentation

IMPL::TrackerDataImpl::TrackerDataImpl ( )

Default Constructor - initializes all data to 0's.

Definition at line 11 of file TrackerDataImpl.cc.

IMPL::TrackerDataImpl::~TrackerDataImpl ( )
virtual

Destructor.

Definition at line 18 of file TrackerDataImpl.cc.

Member Function Documentation

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

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

Returns the first detector specific (geometrical) cell id.

Implements EVENT::TrackerData.

Definition at line 30 of file TrackerDataImpl.h.

References _cellID0.

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

virtual const EVENT::FloatVec& IMPL::TrackerDataImpl::getChargeValues ( ) const
inlinevirtual

The calibrated ADC values.

Implements EVENT::TrackerData.

Definition at line 43 of file TrackerDataImpl.h.

References _charge.

virtual float IMPL::TrackerDataImpl::getTime ( ) const
inlinevirtual

Returns the time.

Implements EVENT::TrackerData.

Definition at line 39 of file TrackerDataImpl.h.

References _time.

virtual int IMPL::TrackerDataImpl::id ( ) const
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)
void IMPL::TrackerDataImpl::setTime ( float  time)

Definition at line 31 of file TrackerDataImpl.cc.

References _time, and IMPL::AccessChecked::checkAccess().

Member Data Documentation

int IMPL::TrackerDataImpl::_cellID0
protected

Definition at line 65 of file TrackerDataImpl.h.

Referenced by getCellID0(), and setCellID0().

int IMPL::TrackerDataImpl::_cellID1
protected

Definition at line 66 of file TrackerDataImpl.h.

Referenced by getCellID1(), and setCellID1().

EVENT::FloatVec IMPL::TrackerDataImpl::_charge {}
protected

Definition at line 68 of file TrackerDataImpl.h.

Referenced by chargeValues(), getChargeValues(), and setChargeValues().

float IMPL::TrackerDataImpl::_time
protected

Definition at line 67 of file TrackerDataImpl.h.

Referenced by getTime(), and setTime().


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