| LCIO
    02.17
    | 
Implementation of the generic tracker hit. More...
#include <TrackerHitImpl.h>
 Inheritance diagram for IMPL::TrackerHitImpl:
 Inheritance diagram for IMPL::TrackerHitImpl:| Public Member Functions | |
| TrackerHitImpl () | |
| virtual | ~TrackerHitImpl () | 
| 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 RTHBIT_ID1) of the collection.  More... | |
| virtual const double * | getPosition () const | 
| The hit position in [mm].  More... | |
| virtual const EVENT::FloatVec & | getCovMatrix () 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 raw data hit, either one of LCIO::TPCHIT LCIO::SIMTRACKERHIT More... | |
| virtual int | getQuality () const | 
| The quality bit flag of the hit.  More... | |
| virtual const EVENT::LCObjectVec & | getRawHits () const | 
| The raw data hits.  More... | |
| virtual EVENT::LCObjectVec & | rawHits () | 
| 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 RTHBIT_ID1) of the collection is set.  More... | |
| void | setType (int type) | 
| void | setPosition (const double pos[3]) | 
| void | setCovMatrix (const EVENT::FloatVec &cov) | 
| void | setCovMatrix (const float cov[TRKHITNCOVMATRIX]) | 
| LCIO_DEPRECATED ("Use setEDep(float) instead", void setdEdx(float dedx)) | |
| 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::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 LCObject * | clone () 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 {0} | 
| int | _cellID1 {0} | 
| int | _type {0} | 
| double | _pos [3] = {0.,0.,0.} | 
| EVENT::FloatVec | _cov {} | 
| float | _EDep {0} | 
| float | _EDepError {0} | 
| float | _time {0} | 
| int | _quality {0} | 
| EVENT::LCObjectVec | _rawHits {} | 
|  Protected Attributes inherited from IMPL::AccessChecked | |
| bool | _readOnly {false} | 
| int | _id {-1} | 
| Additional Inherited Members | |
|  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 | 
Implementation of the generic tracker hit.
Definition at line 21 of file TrackerHitImpl.h.
| IMPL::TrackerHitImpl::TrackerHitImpl | ( | ) | 
Definition at line 8 of file TrackerHitImpl.cc.
References _cov, _pos, std::vector< T >::resize(), and TRKHITNCOVMATRIX.
| 
 | virtual | 
Destructor.
Definition at line 28 of file TrackerHitImpl.cc.
| 
 | virtual | 
Same name as in CalorimeterHit, even though there are no 'cells' in this case.
Implements EVENT::TrackerHit.
Definition at line 32 of file TrackerHitImpl.cc.
References _cellID0.
| 
 | virtual | 
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 RTHBIT_ID1) of the collection.
Default is to store only cellid0.
Implements EVENT::TrackerHit.
Definition at line 36 of file TrackerHitImpl.cc.
References _cellID1.
| 
 | virtual | 
Covariance of the position (x,y,z)
Implements EVENT::TrackerHit.
Definition at line 42 of file TrackerHitImpl.cc.
References _cov.
| 
 | inlinevirtual | 
The deposited energy of the hit [GeV].
Implements EVENT::TrackerHit.
Definition at line 59 of file TrackerHitImpl.h.
References _EDep.
| 
 | inlinevirtual | 
The error measured on EDep [GeV].
Implements EVENT::TrackerHit.
Definition at line 63 of file TrackerHitImpl.h.
References _EDepError.
| 
 | virtual | 
The hit position in [mm].
Implements EVENT::TrackerHit.
Definition at line 40 of file TrackerHitImpl.cc.
References _pos.
| 
 | inlinevirtual | 
The quality bit flag of the hit.
Implements EVENT::TrackerHit.
Definition at line 83 of file TrackerHitImpl.h.
References _quality.
| 
 | virtual | 
The raw data hits.
Check getType() to get actual data type.
Implements EVENT::TrackerHit.
Definition at line 55 of file TrackerHitImpl.cc.
References _rawHits.
| 
 | virtual | 
The time of the hit in [ns].
Is this needed ?
Implements EVENT::TrackerHit.
Definition at line 52 of file TrackerHitImpl.cc.
References _time.
| 
 | virtual | 
Type of raw data hit, either one of
 LCIO::TPCHIT
 LCIO::SIMTRACKERHIT
 
Type of hit. Mapping of integer types to type names through collection parameters "TrackerHitTypeNames" and "TrackerHitTypeValues".
Implements EVENT::TrackerHit.
Definition at line 74 of file TrackerHitImpl.cc.
References _type.
| 
 | inlinevirtual | 
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 31 of file TrackerHitImpl.h.
References IMPL::AccessChecked::simpleUID().
| IMPL::TrackerHitImpl::LCIO_DEPRECATED | ( | "Use setEDep(float) instead" | , | 
| void | setdEdxfloat dedx | ||
| ) | 
| 
 | virtual | 
Use to manipulate the raw hits.
Definition at line 59 of file TrackerHitImpl.cc.
References _rawHits, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setCellID0 | ( | int | id0 | ) | 
Sets the first cell id;.
Definition at line 78 of file TrackerHitImpl.cc.
References _cellID0, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setCellID1 | ( | int | id1 | ) | 
Sets the second cell id; Only store if the flag word (bit RTHBIT_ID1) of the collection is set.
Default is to store only cellid0.
Definition at line 83 of file TrackerHitImpl.cc.
References _cellID1, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setCovMatrix | ( | const EVENT::FloatVec & | cov | ) | 
Definition at line 136 of file TrackerHitImpl.cc.
References _cov, IMPL::AccessChecked::checkAccess(), and TRKHITNCOVMATRIX.
| void IMPL::TrackerHitImpl::setCovMatrix | ( | const float | cov[TRKHITNCOVMATRIX] | ) | 
Definition at line 142 of file TrackerHitImpl.cc.
References _cov, IMPL::AccessChecked::checkAccess(), and TRKHITNCOVMATRIX.
| void IMPL::TrackerHitImpl::setEDep | ( | float | e | ) | 
Definition at line 107 of file TrackerHitImpl.cc.
References _EDep, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setEDepError | ( | float | e | ) | 
Definition at line 112 of file TrackerHitImpl.cc.
References _EDepError, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setPosition | ( | const double | pos[3] | ) | 
Definition at line 93 of file TrackerHitImpl.cc.
References _pos, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setQuality | ( | int | quality | ) | 
Definition at line 122 of file TrackerHitImpl.cc.
References _quality, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setQualityBit | ( | int | bit, | 
| bool | val = true | ||
| ) | 
Definition at line 127 of file TrackerHitImpl.cc.
References _quality, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setTime | ( | float | t | ) | 
Definition at line 117 of file TrackerHitImpl.cc.
References _time, and IMPL::AccessChecked::checkAccess().
| void IMPL::TrackerHitImpl::setType | ( | int | type | ) | 
Definition at line 88 of file TrackerHitImpl.cc.
References _type, and IMPL::AccessChecked::checkAccess().
| 
 | protected | 
Definition at line 122 of file TrackerHitImpl.h.
Referenced by getCellID0(), and setCellID0().
| 
 | protected | 
Definition at line 123 of file TrackerHitImpl.h.
Referenced by getCellID1(), and setCellID1().
| 
 | protected | 
Definition at line 127 of file TrackerHitImpl.h.
Referenced by getCovMatrix(), setCovMatrix(), and TrackerHitImpl().
| 
 | protected | 
Definition at line 128 of file TrackerHitImpl.h.
| 
 | protected | 
Definition at line 129 of file TrackerHitImpl.h.
Referenced by getEDepError(), and setEDepError().
| 
 | protected | 
Definition at line 126 of file TrackerHitImpl.h.
Referenced by getPosition(), setPosition(), and TrackerHitImpl().
| 
 | protected | 
Definition at line 131 of file TrackerHitImpl.h.
Referenced by getQuality(), setQuality(), and setQualityBit().
| 
 | protected | 
Definition at line 132 of file TrackerHitImpl.h.
Referenced by getRawHits(), and rawHits().
| 
 | protected | 
Definition at line 130 of file TrackerHitImpl.h.
| 
 | protected | 
Definition at line 125 of file TrackerHitImpl.h.
 1.8.5
 1.8.5