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

Implementation of the planar tracker hit. More...

#include <TrackerHitPlaneImpl.h>

+ Inheritance diagram for IMPL::TrackerHitPlaneImpl:

Public Member Functions

 TrackerHitPlaneImpl ()
 
virtual ~TrackerHitPlaneImpl ()
 Destructor. More...
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
virtual int getCellID0 () const
 Same name as in CalorimeterHit, even though there are no 'cells' in this case. More...
 
virtual int getCellID1 () const
 Same name as in CalorimeterHit, even though there are no 'cells' in this case 0 if information is not stored - check the flag word (bit RTHPBIT_ID1) of the collection. More...
 
virtual const double * getPosition () const
 The hit position in [mm]. More...
 
virtual const float * getU () const
 Direction of first measurement - given as (theta, phi). More...
 
virtual const float * getV () const
 Direction of second measurement - given as (theta, phi). More...
 
virtual float getdU () const
 Error along u. More...
 
virtual float getdV () const
 Error along v. More...
 
virtual const EVENT::FloatVecgetCovMatrix () const
 Covariance of the position (x,y,z) More...
 
 LCIO_DEPRECATED ("Use getEDep() instead", virtual float getdEdx() const )
 The dE/dx of the hit in [GeV/mm]. More...
 
virtual float getEDep () const
 The deposited energy of the hit [GeV]. More...
 
virtual float getEDepError () const
 The error measured on EDep [GeV]. More...
 
virtual float getTime () const
 The time of the hit in [ns]. More...
 
virtual int getType () const
 Type of hit. More...
 
virtual int getQuality () const
 The quality bit flag of the hit. More...
 
virtual const EVENT::LCObjectVecgetRawHits () const
 The raw data hits. More...
 
virtual EVENT::LCObjectVecrawHits ()
 Use to manipulate the raw hits. More...
 
void setCellID0 (int id0)
 Sets the first cell id;. More...
 
void setCellID1 (int id1)
 Sets the second cell id; Only store if the flag word (bit RTHPBIT_ID1) of the collection is set. More...
 
void setType (int type)
 
void setPosition (const double pos[3])
 
void setU (const float u[2])
 
void setU (float theta, float phi)
 
void setV (const float v[2])
 
void setV (float theta, float phi)
 
void setdU (float du)
 
void setdV (float dv)
 
void setEDep (float e)
 
void setEDepError (float e)
 
void setTime (float t)
 
void setQuality (int quality)
 
void setQualityBit (int bit, bool val=true)
 
- Public Member Functions inherited from EVENT::TrackerHitPlane
virtual ~TrackerHitPlane ()
 Destructor. More...
 
- Public Member Functions inherited from EVENT::TrackerHit
virtual ~TrackerHit ()
 Destructor. More...
 
virtual float getdEdx () const =0
 The dE/dx of the hit in [GeV]. 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 _type
 
double _pos [3] = {0,0,0}
 
float _u [2] = {0,0}
 
float _v [2] = {0,0}
 
float _du
 
float _dv
 
float _EDep
 
float _EDepError
 
float _time
 
int _quality
 
EVENT::FloatVec _cov
 
EVENT::LCObjectVec _rawHits
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 

Additional Inherited Members

- Public Types inherited from EVENT::TrackerHitPlane
typedef TrackerHitPlane lcobject_type
 Useful typedef for template programming with LCIO. More...
 
- Public Types inherited from EVENT::TrackerHit
typedef TrackerHit 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

Implementation of the planar tracker hit.

Author
gaede
Version
Id:

Definition at line 21 of file TrackerHitPlaneImpl.h.

Constructor & Destructor Documentation

IMPL::TrackerHitPlaneImpl::TrackerHitPlaneImpl ( )

Definition at line 8 of file TrackerHitPlaneImpl.cc.

IMPL::TrackerHitPlaneImpl::~TrackerHitPlaneImpl ( )
virtual

Destructor.

Definition at line 22 of file TrackerHitPlaneImpl.cc.

Member Function Documentation

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

Same name as in CalorimeterHit, even though there are no 'cells' in this case.

Implements EVENT::TrackerHitPlane.

Definition at line 36 of file TrackerHitPlaneImpl.h.

References _cellID0.

virtual int IMPL::TrackerHitPlaneImpl::getCellID1 ( ) const
inlinevirtual

Same name as in CalorimeterHit, even though there are no 'cells' in this case 0 if information is not stored - check the flag word (bit RTHPBIT_ID1) of the collection.

Default is to store only cellid0.

Implements EVENT::TrackerHitPlane.

Definition at line 42 of file TrackerHitPlaneImpl.h.

References _cellID1.

const FloatVec & IMPL::TrackerHitPlaneImpl::getCovMatrix ( ) const
virtual

Covariance of the position (x,y,z)

Implements EVENT::TrackerHit.

Definition at line 26 of file TrackerHitPlaneImpl.cc.

References _cov.

virtual float IMPL::TrackerHitPlaneImpl::getdU ( ) const
inlinevirtual

Error along u.

Implements EVENT::TrackerHitPlane.

Definition at line 60 of file TrackerHitPlaneImpl.h.

References _du.

virtual float IMPL::TrackerHitPlaneImpl::getdV ( ) const
inlinevirtual

Error along v.

Implements EVENT::TrackerHitPlane.

Definition at line 63 of file TrackerHitPlaneImpl.h.

References _dv.

virtual float IMPL::TrackerHitPlaneImpl::getEDep ( ) const
inlinevirtual

The deposited energy of the hit [GeV].

Implements EVENT::TrackerHit.

Definition at line 78 of file TrackerHitPlaneImpl.h.

References _EDep.

virtual float IMPL::TrackerHitPlaneImpl::getEDepError ( ) const
inlinevirtual

The error measured on EDep [GeV].

Implements EVENT::TrackerHit.

Definition at line 82 of file TrackerHitPlaneImpl.h.

References _EDepError.

virtual const double* IMPL::TrackerHitPlaneImpl::getPosition ( ) const
inlinevirtual

The hit position in [mm].

Implements EVENT::TrackerHit.

Definition at line 47 of file TrackerHitPlaneImpl.h.

References _pos.

virtual int IMPL::TrackerHitPlaneImpl::getQuality ( ) const
inlinevirtual

The quality bit flag of the hit.

Implements EVENT::TrackerHit.

Definition at line 97 of file TrackerHitPlaneImpl.h.

References _quality.

virtual const EVENT::LCObjectVec& IMPL::TrackerHitPlaneImpl::getRawHits ( ) const
inlinevirtual

The raw data hits.

Check getType() to get actual data type.

Implements EVENT::TrackerHit.

Definition at line 102 of file TrackerHitPlaneImpl.h.

References _rawHits.

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

The time of the hit in [ns].

Is this needed ?

Implements EVENT::TrackerHit.

Definition at line 86 of file TrackerHitPlaneImpl.h.

References _time.

virtual int IMPL::TrackerHitPlaneImpl::getType ( ) const
inlinevirtual

Type of hit.

Mapping of integer types to type names through collection parameters "TrackerHitTypeNames" and "TrackerHitTypeValues".

Implements EVENT::TrackerHit.

Definition at line 92 of file TrackerHitPlaneImpl.h.

References _type.

virtual const float* IMPL::TrackerHitPlaneImpl::getU ( ) const
inlinevirtual

Direction of first measurement - given as (theta, phi).

Defines spanning vector of measurement plane.

Implements EVENT::TrackerHitPlane.

Definition at line 52 of file TrackerHitPlaneImpl.h.

References _u.

virtual const float* IMPL::TrackerHitPlaneImpl::getV ( ) const
inlinevirtual

Direction of second measurement - given as (theta, phi).

Defines spanning vector of measurement plane.

Implements EVENT::TrackerHitPlane.

Definition at line 57 of file TrackerHitPlaneImpl.h.

References _v.

virtual int IMPL::TrackerHitPlaneImpl::id ( ) const
inlinevirtual

Returns an object id for internal (debugging) use in LCIO.

Implements EVENT::LCObject.

Definition at line 31 of file TrackerHitPlaneImpl.h.

References IMPL::AccessChecked::simpleUID().

IMPL::TrackerHitPlaneImpl::LCIO_DEPRECATED ( "Use getEDep() instead"  ,
virtual float getdEdx()  const 
)

The dE/dx of the hit in [GeV/mm].

Deprecated:
See Also
getEDep()
virtual EVENT::LCObjectVec& IMPL::TrackerHitPlaneImpl::rawHits ( )
inlinevirtual

Use to manipulate the raw hits.

Definition at line 107 of file TrackerHitPlaneImpl.h.

References _rawHits.

void IMPL::TrackerHitPlaneImpl::setCellID0 ( int  id0)

Sets the first cell id;.

Definition at line 38 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setCellID1 ( int  id1)

Sets the second cell id; Only store if the flag word (bit RTHPBIT_ID1) of the collection is set.

Default is to store only cellid0.

Definition at line 43 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setdU ( float  du)

Definition at line 72 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setdV ( float  dv)

Definition at line 77 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setEDep ( float  e)

Definition at line 82 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setEDepError ( float  e)

Definition at line 87 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setPosition ( const double  pos[3])

Definition at line 53 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setQuality ( int  quality)

Definition at line 97 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setQualityBit ( int  bit,
bool  val = true 
)

Definition at line 102 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setTime ( float  t)

Definition at line 92 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setType ( int  type)

Definition at line 48 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setU ( const float  u[2])
inline

Definition at line 123 of file TrackerHitPlaneImpl.h.

References setU().

Referenced by setU().

void IMPL::TrackerHitPlaneImpl::setU ( float  theta,
float  phi 
)

Definition at line 60 of file TrackerHitPlaneImpl.cc.

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

void IMPL::TrackerHitPlaneImpl::setV ( const float  v[2])
inline

Definition at line 125 of file TrackerHitPlaneImpl.h.

References setV().

Referenced by setV().

void IMPL::TrackerHitPlaneImpl::setV ( float  theta,
float  phi 
)

Definition at line 66 of file TrackerHitPlaneImpl.cc.

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

Member Data Documentation

int IMPL::TrackerHitPlaneImpl::_cellID0
protected

Definition at line 137 of file TrackerHitPlaneImpl.h.

Referenced by getCellID0(), and setCellID0().

int IMPL::TrackerHitPlaneImpl::_cellID1
protected

Definition at line 138 of file TrackerHitPlaneImpl.h.

Referenced by getCellID1(), and setCellID1().

EVENT::FloatVec IMPL::TrackerHitPlaneImpl::_cov
mutableprotected

Definition at line 150 of file TrackerHitPlaneImpl.h.

Referenced by getCovMatrix().

float IMPL::TrackerHitPlaneImpl::_du
protected

Definition at line 144 of file TrackerHitPlaneImpl.h.

Referenced by getdU(), and setdU().

float IMPL::TrackerHitPlaneImpl::_dv
protected

Definition at line 145 of file TrackerHitPlaneImpl.h.

Referenced by getdV(), and setdV().

float IMPL::TrackerHitPlaneImpl::_EDep
protected

Definition at line 146 of file TrackerHitPlaneImpl.h.

Referenced by getEDep(), and setEDep().

float IMPL::TrackerHitPlaneImpl::_EDepError
protected

Definition at line 147 of file TrackerHitPlaneImpl.h.

Referenced by getEDepError(), and setEDepError().

double IMPL::TrackerHitPlaneImpl::_pos[3] = {0,0,0}
protected

Definition at line 141 of file TrackerHitPlaneImpl.h.

Referenced by getPosition(), and setPosition().

int IMPL::TrackerHitPlaneImpl::_quality
protected

Definition at line 149 of file TrackerHitPlaneImpl.h.

Referenced by getQuality(), setQuality(), and setQualityBit().

EVENT::LCObjectVec IMPL::TrackerHitPlaneImpl::_rawHits
protected

Definition at line 151 of file TrackerHitPlaneImpl.h.

Referenced by getRawHits(), and rawHits().

float IMPL::TrackerHitPlaneImpl::_time
protected

Definition at line 148 of file TrackerHitPlaneImpl.h.

Referenced by getTime(), and setTime().

int IMPL::TrackerHitPlaneImpl::_type
protected

Definition at line 140 of file TrackerHitPlaneImpl.h.

Referenced by getType(), and setType().

float IMPL::TrackerHitPlaneImpl::_u[2] = {0,0}
protected

Definition at line 142 of file TrackerHitPlaneImpl.h.

Referenced by getU(), and setU().

float IMPL::TrackerHitPlaneImpl::_v[2] = {0,0}
protected

Definition at line 143 of file TrackerHitPlaneImpl.h.

Referenced by getV(), and setV().


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