![]() |
ATLAS Offline Software
|
Class to represent measurements from the Monitored Drift Tubes. More...
#include <MdtPrepData.h>
Public Member Functions | |
| MdtPrepData () | |
| MdtPrepData (const MdtPrepData &) | |
| MdtPrepData (MdtPrepData &&) noexcept | |
| MdtPrepData & | operator= (const MdtPrepData &) |
| MdtPrepData & | operator= (MdtPrepData &&) noexcept |
| MdtPrepData (const Identifier &id, const Amg::Vector2D &driftRadius, const Amg::MatrixX &errDriftRadius, const MuonGM::MdtReadoutElement *detEl, const int tdc, const int adc, const MdtDriftCircleStatus status) | |
| Constructor with parameters: this class owns the pointers passed (except the MuonDetectorElement) | |
| virtual | ~MdtPrepData () |
| Destructor. | |
| virtual const Amg::Vector3D & | globalPosition () const |
| Returns the global position of the CENTER of the drift tube (i.e. | |
| virtual const MuonGM::MdtReadoutElement * | detectorElement () const override |
| Returns the detector element corresponding to this PRD. | |
| virtual Trk::PrepRawDataType | prdType () const override |
| Interface method returning the prdType. | |
| unsigned int | dimension () const |
| Returns the dimension of the MdtPrepData. | |
| int | tdc () const |
| Returns the TDC (typically range is 0 to 2500). | |
| int | adc () const |
| Returns the ADC (typically range is 0 to 250) | |
| MdtDriftCircleStatus | status () const |
| Returns the status of the measurement. | |
| virtual IdentifierHash | collectionHash () const |
| Returns the IdentifierHash corresponding to the Mdt tube which was hit. | |
| virtual MsgStream & | dump (MsgStream &stream) const override |
| Dumps information about the PRD. | |
| virtual std::ostream & | dump (std::ostream &stream) const override |
| Dumps information about the PRD. | |
| Identifier | identify () const |
| return the identifier | |
| const Amg::Vector2D & | localPosition () const |
| return the local position reference | |
| const std::vector< Identifier > & | rdoList () const |
| return the List of rdo identifiers (pointers) | |
| const Amg::MatrixX & | localCovariance () const |
| return const ref to the error matrix | |
| bool | hasLocalCovariance () const |
| returns localCovariance().size()!=0 | |
| virtual bool | type (PrepRawDataType type) const |
| Interface method checking the type. | |
| void | setHashAndIndex (unsigned short collHash, unsigned short objIndex) |
| TEMP for testing: might make some classes friends later ... | |
| const IdentContIndex & | getHashAndIndex () const |
Static Public Member Functions | |
| static std::size_t | numberOfInstantiations () |
Static Public Attributes | |
| static std::atomic_size_t | s_numberOfInstantiations |
Protected Attributes | |
| CxxUtils::CachedUniquePtr< const Amg::Vector3D > | m_globalPosition {} |
| Global position of measurement. | |
Private Attributes | |
| const MuonGM::MdtReadoutElement * | m_detEl {nullptr} |
| Cached pointer to detector element (not deleted in destructor, not written to disk) | |
| int | m_tdc {0} |
| TDC value - typical TDC spectra can go from 0 up to 2500. | |
| int | m_adc {0} |
| ADC value - typical ADC spectra can go from 0 up to 250. | |
| MdtDriftCircleStatus | m_status {MdtDriftCircleStatus::MdtStatusUnDefined} |
| enum to hold 'status' of measurement | |
| Identifier | m_clusId { 0 } |
| PrepRawData ID, not const because of DataPool. | |
| Amg::Vector2D | m_localPos {} |
| see derived classes for definition of meaning of LocalPosition | |
| std::vector< Identifier > | m_rdoList {} |
| Stores the identifiers of the RDOs. | |
| Amg::MatrixX | m_localCovariance {} |
| See derived classes for definition of ErrorMatrix. | |
| IdentContIndex | m_indexAndHash |
| Stores its own position (index) in collection plus the hash id for the collection (needed for the EL to IDC) | |
Friends | |
| class | ::MdtPrepDataContainerCnv |
| class | Muon::MdtPrepDataContainerCnv_p1 |
Class to represent measurements from the Monitored Drift Tubes.
Definition at line 32 of file MdtPrepData.h.
|
default |
| Muon::MdtPrepData::MdtPrepData | ( | const MdtPrepData & | RIO | ) |
Definition at line 44 of file MdtPrepData.cxx.
|
noexcept |
Definition at line 52 of file MdtPrepData.cxx.
| Muon::MdtPrepData::MdtPrepData | ( | const Identifier & | id, |
| const Amg::Vector2D & | driftRadius, | ||
| const Amg::MatrixX & | errDriftRadius, | ||
| const MuonGM::MdtReadoutElement * | detEl, | ||
| const int | tdc, | ||
| const int | adc, | ||
| const MdtDriftCircleStatus | status ) |
Constructor with parameters: this class owns the pointers passed (except the MuonDetectorElement)
| id | Identifier of the tube which generated DriftCircle, |
| collectionHash | IdentifierHash of the PRD collection in which the MdtPrepData is stored |
| driftRadius | this local position object should contain the drift radius |
| errDriftRadius | the error on the driftRadius (i.e. 1d error matix) |
| detEl | pointer to the associated detectr element (will not be owned by MdtPrepData - i.e. will not be deleted) |
| tdc | TDC count |
| adc | ADC count |
| status | enum to indicate whether the measurement is masked, in time, etc (see MdtPrepDataStatus for details). |
Definition at line 21 of file MdtPrepData.cxx.
|
virtualdefault |
Destructor.
|
inline |
|
inlinevirtual |
Returns the IdentifierHash corresponding to the Mdt tube which was hit.
Definition at line 148 of file MdtPrepData.h.
|
inlineoverridevirtual |
Returns the detector element corresponding to this PRD.
The pointer will be zero if the det el is not defined (i.e. it was not passed in by the ctor)
Implements Trk::PrepRawData.
Definition at line 141 of file MdtPrepData.h.
|
inline |
Returns the dimension of the MdtPrepData.
Ordinary prepData has dimension one twin drift circles have dimension 2
Definition at line 85 of file MdtPrepData.h.
|
overridevirtual |
Dumps information about the PRD.
Reimplemented from Trk::PrepRawData.
Reimplemented in Muon::MdtTwinPrepData.
Definition at line 87 of file MdtPrepData.cxx.
|
overridevirtual |
Dumps information about the PRD.
Reimplemented from Trk::PrepRawData.
Reimplemented in Muon::MdtTwinPrepData.
Definition at line 102 of file MdtPrepData.cxx.
|
inherited |
|
inlinevirtual |
Returns the global position of the CENTER of the drift tube (i.e.
it is important to realise that this is NOT the true position of the measurement). The reason that this is done here, and not simply through the detector element is that here it can be cached for better performance.
Reimplemented in Muon::MdtTwinPrepData.
Definition at line 133 of file MdtPrepData.h.
|
inherited |
returns localCovariance().size()!=0
|
inherited |
return the identifier
|
inherited |
return const ref to the error matrix
|
inherited |
return the local position reference
|
inlinestaticinherited |
Definition at line 25 of file TrkObjectCounter.h.
| MdtPrepData & Muon::MdtPrepData::operator= | ( | const MdtPrepData & | RIO | ) |
Definition at line 60 of file MdtPrepData.cxx.
|
noexcept |
Definition at line 73 of file MdtPrepData.cxx.
|
inlineoverridevirtual |
Interface method returning the prdType.
Implements Trk::PrepRawData.
Definition at line 80 of file MdtPrepData.h.
|
inherited |
return the List of rdo identifiers (pointers)
|
inherited |
TEMP for testing: might make some classes friends later ...
|
inline |
|
inline |
|
inlinevirtualinherited |
Interface method checking the type.
Reimplemented in InDet::PixelCluster, and InDet::SCT_Cluster.
Definition at line 133 of file PrepRawData.h.
|
friend |
Definition at line 40 of file MdtPrepData.h.
|
friend |
Definition at line 41 of file MdtPrepData.h.
|
private |
ADC value - typical ADC spectra can go from 0 up to 250.
Definition at line 115 of file MdtPrepData.h.
|
privateinherited |
PrepRawData ID, not const because of DataPool.
Definition at line 156 of file PrepRawData.h.
|
private |
Cached pointer to detector element (not deleted in destructor, not written to disk)
Definition at line 109 of file MdtPrepData.h.
|
protected |
Global position of measurement.
Calculated on demand and cached (not deleted in destructor, not written to disk)
Definition at line 124 of file MdtPrepData.h.
|
privateinherited |
Stores its own position (index) in collection plus the hash id for the collection (needed for the EL to IDC)
Definition at line 167 of file PrepRawData.h.
|
privateinherited |
See derived classes for definition of ErrorMatrix.
Definition at line 163 of file PrepRawData.h.
|
privateinherited |
see derived classes for definition of meaning of LocalPosition
Definition at line 159 of file PrepRawData.h.
|
privateinherited |
|
private |
enum to hold 'status' of measurement
Definition at line 118 of file MdtPrepData.h.
|
private |
TDC value - typical TDC spectra can go from 0 up to 2500.
Definition at line 112 of file MdtPrepData.h.
|
inlinestaticinherited |
Definition at line 22 of file TrkObjectCounter.h.