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

Implementation of the tracker hit on a cylindrical surface parallel to z. More...

#include <TrackerHitZCylinderImpl.h>

+ Inheritance diagram for IMPL::TrackerHitZCylinderImpl:

Public Member Functions

 TrackerHitZCylinderImpl ()
 
virtual ~TrackerHitZCylinderImpl ()
 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 RTHZBIT_ID1) of the collection. More...
 
virtual const double * getPosition () const
 The hit position in [mm]. More...
 
virtual const float * getCenter () const
 Radius of cylinder. More...
 
virtual float getdRPhi () const
 Measurement error along RPhi. More...
 
virtual float getdZ () const
 Measurement error along z. 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 RTHZBIT_ID1) of the collection is set. More...
 
void setType (int type)
 
void setPosition (const double pos[3])
 
void setCenter (const float c[2])
 
void setCenter (float xc, float yc)
 
void setdRPhi (float drphi)
 
void setdZ (float dz)
 
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::TrackerHitZCylinder
virtual ~TrackerHitZCylinder ()
 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 _center [2] = {0,0}
 
float _drphi
 
float _dz
 
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::TrackerHitZCylinder
typedef TrackerHitZCylinder 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 tracker hit on a cylindrical surface parallel to z.

Author
gaede
Version
Id:

Definition at line 21 of file TrackerHitZCylinderImpl.h.

Constructor & Destructor Documentation

IMPL::TrackerHitZCylinderImpl::TrackerHitZCylinderImpl ( )

Definition at line 8 of file TrackerHitZCylinderImpl.cc.

IMPL::TrackerHitZCylinderImpl::~TrackerHitZCylinderImpl ( )
virtual

Destructor.

Definition at line 23 of file TrackerHitZCylinderImpl.cc.

Member Function Documentation

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

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

Implements EVENT::TrackerHitZCylinder.

Definition at line 35 of file TrackerHitZCylinderImpl.h.

References _cellID0.

virtual int IMPL::TrackerHitZCylinderImpl::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 RTHZBIT_ID1) of the collection.

Default is to store only cellid0.

Implements EVENT::TrackerHitZCylinder.

Definition at line 41 of file TrackerHitZCylinderImpl.h.

References _cellID1.

virtual const float* IMPL::TrackerHitZCylinderImpl::getCenter ( ) const
inlinevirtual

Radius of cylinder.

Center of cylinder in RPhi-plane - given as (x,y).

Implements EVENT::TrackerHitZCylinder.

Definition at line 54 of file TrackerHitZCylinderImpl.h.

References _center.

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

Covariance of the position (x,y,z)

Implements EVENT::TrackerHit.

Definition at line 27 of file TrackerHitZCylinderImpl.cc.

References _cov.

virtual float IMPL::TrackerHitZCylinderImpl::getdRPhi ( ) const
inlinevirtual

Measurement error along RPhi.

Implements EVENT::TrackerHitZCylinder.

Definition at line 57 of file TrackerHitZCylinderImpl.h.

References _drphi.

virtual float IMPL::TrackerHitZCylinderImpl::getdZ ( ) const
inlinevirtual

Measurement error along z.

Implements EVENT::TrackerHitZCylinder.

Definition at line 60 of file TrackerHitZCylinderImpl.h.

References _dz.

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

The deposited energy of the hit [GeV].

Implements EVENT::TrackerHit.

Definition at line 75 of file TrackerHitZCylinderImpl.h.

References _EDep.

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

The error measured on EDep [GeV].

Implements EVENT::TrackerHit.

Definition at line 79 of file TrackerHitZCylinderImpl.h.

References _EDepError.

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

The hit position in [mm].

Implements EVENT::TrackerHit.

Definition at line 46 of file TrackerHitZCylinderImpl.h.

References _pos.

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

The quality bit flag of the hit.

Implements EVENT::TrackerHit.

Definition at line 94 of file TrackerHitZCylinderImpl.h.

References _quality.

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

The raw data hits.

Check getType() to get actual data type.

Implements EVENT::TrackerHit.

Definition at line 99 of file TrackerHitZCylinderImpl.h.

References _rawHits.

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

The time of the hit in [ns].

Is this needed ?

Implements EVENT::TrackerHit.

Definition at line 83 of file TrackerHitZCylinderImpl.h.

References _time.

virtual int IMPL::TrackerHitZCylinderImpl::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 89 of file TrackerHitZCylinderImpl.h.

References _type.

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

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

Implements EVENT::LCObject.

Definition at line 31 of file TrackerHitZCylinderImpl.h.

References IMPL::AccessChecked::simpleUID().

IMPL::TrackerHitZCylinderImpl::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::TrackerHitZCylinderImpl::rawHits ( )
inlinevirtual

Use to manipulate the raw hits.

Definition at line 104 of file TrackerHitZCylinderImpl.h.

References _rawHits.

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

Sets the first cell id;.

Definition at line 39 of file TrackerHitZCylinderImpl.cc.

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

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

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

Default is to store only cellid0.

Definition at line 44 of file TrackerHitZCylinderImpl.cc.

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

void IMPL::TrackerHitZCylinderImpl::setCenter ( const float  c[2])
inline

Definition at line 121 of file TrackerHitZCylinderImpl.h.

References setCenter().

Referenced by setCenter().

void IMPL::TrackerHitZCylinderImpl::setCenter ( float  xc,
float  yc 
)

Definition at line 62 of file TrackerHitZCylinderImpl.cc.

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

void IMPL::TrackerHitZCylinderImpl::setdRPhi ( float  drphi)

Definition at line 73 of file TrackerHitZCylinderImpl.cc.

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

void IMPL::TrackerHitZCylinderImpl::setdZ ( float  dz)

Definition at line 78 of file TrackerHitZCylinderImpl.cc.

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

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

Definition at line 83 of file TrackerHitZCylinderImpl.cc.

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

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

Definition at line 88 of file TrackerHitZCylinderImpl.cc.

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

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

Definition at line 55 of file TrackerHitZCylinderImpl.cc.

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

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

Definition at line 98 of file TrackerHitZCylinderImpl.cc.

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

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

Definition at line 103 of file TrackerHitZCylinderImpl.cc.

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

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

Definition at line 93 of file TrackerHitZCylinderImpl.cc.

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

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

Definition at line 50 of file TrackerHitZCylinderImpl.cc.

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

Member Data Documentation

int IMPL::TrackerHitZCylinderImpl::_cellID0
protected

Definition at line 137 of file TrackerHitZCylinderImpl.h.

Referenced by getCellID0(), and setCellID0().

int IMPL::TrackerHitZCylinderImpl::_cellID1
protected

Definition at line 138 of file TrackerHitZCylinderImpl.h.

Referenced by getCellID1(), and setCellID1().

float IMPL::TrackerHitZCylinderImpl::_center[2] = {0,0}
protected

Definition at line 142 of file TrackerHitZCylinderImpl.h.

Referenced by getCenter(), and setCenter().

EVENT::FloatVec IMPL::TrackerHitZCylinderImpl::_cov
mutableprotected

Definition at line 149 of file TrackerHitZCylinderImpl.h.

Referenced by getCovMatrix().

float IMPL::TrackerHitZCylinderImpl::_drphi
protected

Definition at line 143 of file TrackerHitZCylinderImpl.h.

Referenced by getdRPhi(), and setdRPhi().

float IMPL::TrackerHitZCylinderImpl::_dz
protected

Definition at line 144 of file TrackerHitZCylinderImpl.h.

Referenced by getdZ(), and setdZ().

float IMPL::TrackerHitZCylinderImpl::_EDep
protected

Definition at line 145 of file TrackerHitZCylinderImpl.h.

Referenced by getEDep(), and setEDep().

float IMPL::TrackerHitZCylinderImpl::_EDepError
protected

Definition at line 146 of file TrackerHitZCylinderImpl.h.

Referenced by getEDepError(), and setEDepError().

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

Definition at line 141 of file TrackerHitZCylinderImpl.h.

Referenced by getPosition(), and setPosition().

int IMPL::TrackerHitZCylinderImpl::_quality
protected

Definition at line 148 of file TrackerHitZCylinderImpl.h.

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

EVENT::LCObjectVec IMPL::TrackerHitZCylinderImpl::_rawHits
protected

Definition at line 150 of file TrackerHitZCylinderImpl.h.

Referenced by getRawHits(), and rawHits().

float IMPL::TrackerHitZCylinderImpl::_time
protected

Definition at line 147 of file TrackerHitZCylinderImpl.h.

Referenced by getTime(), and setTime().

int IMPL::TrackerHitZCylinderImpl::_type
protected

Definition at line 140 of file TrackerHitZCylinderImpl.h.

Referenced by getType(), and setType().


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