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 IdentifierHash &collectionHash, 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) More... | |
MdtPrepData (const Identifier &id, const IdentifierHash &collectionHash, const Amg::Vector2D &driftRadius, Amg::MatrixX &&errDriftRadius, std::vector< Identifier > &&rdoList, const MuonGM::MdtReadoutElement *detEl, const int tdc, const int adc, const MdtDriftCircleStatus status) | |
virtual | ~MdtPrepData () |
Destructor. More... | |
virtual const Amg::Vector3D & | globalPosition () const |
Returns the global position of the CENTER of the drift tube (i.e. More... | |
virtual const MuonGM::MdtReadoutElement * | detectorElement () const override |
Returns the detector element corresponding to this PRD. More... | |
virtual bool | type (Trk::PrepRawDataType type) const override |
Interface method checking the type. More... | |
int | tdc () const |
Returns the TDC (typically range is 0 to 2500). More... | |
int | adc () const |
Returns the ADC (typically range is 0 to 250) More... | |
MdtDriftCircleStatus | status () const |
Returns the status of the measurement. More... | |
virtual IdentifierHash | collectionHash () const |
Returns the IdentifierHash corresponding to the Mdt tube which was hit. More... | |
virtual MsgStream & | dump (MsgStream &stream) const override |
Dumps information about the PRD. More... | |
virtual std::ostream & | dump (std::ostream &stream) const override |
Dumps information about the PRD. More... | |
Identifier | identify () const |
return the identifier More... | |
const Amg::Vector2D & | localPosition () const |
return the local position reference More... | |
const std::vector< Identifier > & | rdoList () const |
return the List of rdo identifiers (pointers) More... | |
const Amg::MatrixX & | localCovariance () const |
return const ref to the error matrix More... | |
bool | hasLocalCovariance () const |
returns localCovariance().size()!=0 More... | |
void | setHashAndIndex (unsigned short collHash, unsigned short objIndex) |
TEMP for testing: might make some classes friends later ... More... | |
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. More... | |
Private Attributes | |
const MuonGM::MdtReadoutElement * | m_detEl |
Cached pointer to detector element (not deleted in destructor, not written to disk) More... | |
int | m_tdc |
TDC value - typical TDC spectra can go from 0 up to 2500. More... | |
int | m_adc |
ADC value - typical ADC spectra can go from 0 up to 250. More... | |
MdtDriftCircleStatus | m_status |
enum to hold 'status' of measurement More... | |
Identifier | m_clusId { 0 } |
PrepRawData ID, not const because of DataPool. More... | |
Amg::Vector2D | m_localPos {} |
see derived classes for definition of meaning of LocalPosition More... | |
std::vector< Identifier > | m_rdoList {} |
Stores the identifiers of the RDOs. More... | |
Amg::MatrixX | m_localCovariance {} |
See derived classes for definition of ErrorMatrix. More... | |
IdentContIndex | m_indexAndHash |
Stores its own position (index) in collection plus the hash id for the collection (needed for the EL to IDC) More... | |
Friends | |
class | ::MdtPrepDataContainerCnv |
class | Muon::MdtPrepDataContainerCnv_p1 |
Class to represent measurements from the Monitored Drift Tubes.
Definition at line 36 of file MdtPrepData.h.
Muon::MdtPrepData::MdtPrepData | ( | ) |
Definition at line 76 of file MdtPrepData.cxx.
Muon::MdtPrepData::MdtPrepData | ( | const MdtPrepData & | RIO | ) |
Definition at line 87 of file MdtPrepData.cxx.
|
noexcept |
Definition at line 98 of file MdtPrepData.cxx.
Muon::MdtPrepData::MdtPrepData | ( | const Identifier & | id, |
const IdentifierHash & | collectionHash, | ||
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.
Muon::MdtPrepData::MdtPrepData | ( | const Identifier & | id, |
const IdentifierHash & | collectionHash, | ||
const Amg::Vector2D & | driftRadius, | ||
Amg::MatrixX && | errDriftRadius, | ||
std::vector< Identifier > && | rdoList, | ||
const MuonGM::MdtReadoutElement * | detEl, | ||
const int | tdc, | ||
const int | adc, | ||
const MdtDriftCircleStatus | status | ||
) |
Definition at line 44 of file MdtPrepData.cxx.
|
virtualdefault |
Destructor.
|
inline |
Returns the ADC (typically range is 0 to 250)
Definition at line 166 of file MdtPrepData.h.
|
inlinevirtual |
Returns the IdentifierHash corresponding to the Mdt tube which was hit.
Definition at line 176 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 156 of file MdtPrepData.h.
|
overridevirtual |
Dumps information about the PRD.
Reimplemented from Trk::PrepRawData.
Reimplemented in Muon::MdtTwinPrepData.
Definition at line 139 of file MdtPrepData.cxx.
|
overridevirtual |
Dumps information about the PRD.
Reimplemented from Trk::PrepRawData.
Reimplemented in Muon::MdtTwinPrepData.
Definition at line 154 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 149 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 109 of file MdtPrepData.cxx.
|
noexcept |
Definition at line 124 of file MdtPrepData.cxx.
|
inherited |
return the List of rdo identifiers (pointers)
|
inherited |
TEMP for testing: might make some classes friends later ...
|
inline |
Returns the status of the measurement.
Definition at line 171 of file MdtPrepData.h.
|
inline |
Returns the TDC (typically range is 0 to 2500).
Definition at line 161 of file MdtPrepData.h.
|
inlineoverridevirtual |
Interface method checking the type.
Implements Trk::PrepRawData.
Definition at line 99 of file MdtPrepData.h.
|
friend |
Definition at line 44 of file MdtPrepData.h.
|
friend |
Definition at line 45 of file MdtPrepData.h.
|
private |
ADC value - typical ADC spectra can go from 0 up to 250.
Definition at line 131 of file MdtPrepData.h.
|
privateinherited |
PrepRawData ID, not const because of DataPool.
Definition at line 151 of file PrepRawData.h.
|
private |
Cached pointer to detector element (not deleted in destructor, not written to disk)
Definition at line 125 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 140 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 162 of file PrepRawData.h.
|
privateinherited |
See derived classes for definition of ErrorMatrix.
Definition at line 158 of file PrepRawData.h.
|
privateinherited |
see derived classes for definition of meaning of LocalPosition
Definition at line 154 of file PrepRawData.h.
|
privateinherited |
Stores the identifiers of the RDOs.
Definition at line 156 of file PrepRawData.h.
|
private |
enum to hold 'status' of measurement
Definition at line 134 of file MdtPrepData.h.
|
private |
TDC value - typical TDC spectra can go from 0 up to 2500.
Definition at line 128 of file MdtPrepData.h.
|
inlinestaticinherited |
Definition at line 22 of file TrkObjectCounter.h.