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

Implementation of the real data TPCHit. More...

#include <TPCHitImpl.h>

+ Inheritance diagram for IMPL::TPCHitImpl:

Public Member Functions

 TPCHitImpl ()
 Default Constructor - initializes all data to 0's. More...
 
 TPCHitImpl (const TPCHitImpl &)=default
 default copy constructor - use with care More...
 
TPCHitImploperator= (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...
 
- Public Member Functions inherited from EVENT::TPCHit
virtual ~TPCHit ()
 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 Member Functions

virtual void initRawArray (int size)
 initialize the raw data array - for faster reading More...
 
- Protected Member Functions inherited from IMPL::AccessChecked
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
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 

Additional Inherited Members

- Public Types inherited from EVENT::TPCHit
typedef TPCHit 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
 
- Static Protected Attributes inherited from IMPL::AccessChecked
static std::atomic_int _lCObjectId
 

Detailed Description

Implementation of the real data TPCHit.

Author
gaede
Version
Sep 11, 2003

Definition at line 15 of file TPCHitImpl.h.

Constructor & Destructor Documentation

IMPL::TPCHitImpl::TPCHitImpl ( )

Default Constructor - initializes all data to 0's.

Definition at line 7 of file TPCHitImpl.cc.

IMPL::TPCHitImpl::TPCHitImpl ( const TPCHitImpl )
default

default copy constructor - use with care

IMPL::TPCHitImpl::~TPCHitImpl ( )
virtual

Destructor.

Definition at line 17 of file TPCHitImpl.cc.

References _rawArray.

Member Function Documentation

int IMPL::TPCHitImpl::getCellID ( ) const
virtual

Returns the detector specific cell id.

Implements EVENT::TPCHit.

Definition at line 23 of file TPCHitImpl.cc.

References _cellID.

float IMPL::TPCHitImpl::getCharge ( ) const
virtual

Returns the integrated charge of the hit.

Implements EVENT::TPCHit.

Definition at line 27 of file TPCHitImpl.cc.

References _charge.

int IMPL::TPCHitImpl::getNRawDataWords ( ) const
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.

int IMPL::TPCHitImpl::getQuality ( ) const
virtual

Returns a quality flag for the hit.

Implements EVENT::TPCHit.

Definition at line 29 of file TPCHitImpl.cc.

References _quality.

int IMPL::TPCHitImpl::getRawDataWord ( int  i) const
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.

References _rawArray, and _rawSize.

float IMPL::TPCHitImpl::getTime ( ) const
virtual

Returns the time of the hit.

Implements EVENT::TPCHit.

Definition at line 25 of file TPCHitImpl.cc.

References _time.

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

void IMPL::TPCHitImpl::initRawArray ( int  size)
protectedvirtual

initialize the raw data array - for faster reading

Definition at line 73 of file TPCHitImpl.cc.

References _rawArray, and _rawSize.

TPCHitImpl& IMPL::TPCHitImpl::operator= ( const TPCHitImpl )
default

default assignment operator - use with care

void IMPL::TPCHitImpl::setCellID ( int  cellID)
virtual

Set the cell id.

Definition at line 42 of file TPCHitImpl.cc.

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

void IMPL::TPCHitImpl::setCharge ( float  charge)
virtual

Set the charge.

Definition at line 52 of file TPCHitImpl.cc.

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

void IMPL::TPCHitImpl::setQuality ( int  quality)
virtual

Set the cell quality word.

Definition at line 57 of file TPCHitImpl.cc.

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

void IMPL::TPCHitImpl::setRawData ( const int *  raw,
int  size 
)
virtual

Set the raw data.

Definition at line 62 of file TPCHitImpl.cc.

References _rawArray, _rawSize, and IMPL::AccessChecked::checkAccess().

void IMPL::TPCHitImpl::setTime ( float  time)
virtual

Set the time.

Definition at line 47 of file TPCHitImpl.cc.

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

Member Data Documentation

int IMPL::TPCHitImpl::_cellID
protected

Definition at line 88 of file TPCHitImpl.h.

Referenced by getCellID(), and setCellID().

float IMPL::TPCHitImpl::_charge
protected

Definition at line 90 of file TPCHitImpl.h.

Referenced by getCharge(), and setCharge().

int IMPL::TPCHitImpl::_quality
protected

Definition at line 91 of file TPCHitImpl.h.

Referenced by getQuality(), and setQuality().

int* IMPL::TPCHitImpl::_rawArray
protected

Definition at line 93 of file TPCHitImpl.h.

Referenced by getRawDataWord(), initRawArray(), setRawData(), and ~TPCHitImpl().

int IMPL::TPCHitImpl::_rawSize
protected

Definition at line 92 of file TPCHitImpl.h.

Referenced by getNRawDataWords(), getRawDataWord(), initRawArray(), and setRawData().

float IMPL::TPCHitImpl::_time
protected

Definition at line 89 of file TPCHitImpl.h.

Referenced by getTime(), and setTime().


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