ATLAS Offline Software
|
Class representing clusters in the muon system. More...
#include <MuonCluster.h>
Public Member Functions | |
MuonCluster () | |
Default constructor. More... | |
MuonCluster (const MuonCluster &) | |
MuonCluster (MuonCluster &&) noexcept=default | |
MuonCluster & | operator= (const MuonCluster &) |
MuonCluster & | operator= (MuonCluster &&) noexcept=default |
MuonCluster (const Identifier &RDOId, const IdentifierHash &collectionHash, const Amg::Vector2D &locpos, const std::vector< Identifier > &rdoList, const Amg::MatrixX &locErrMat) | |
Full constructor. More... | |
MuonCluster (const Identifier &RDOId, const IdentifierHash &collectionHash, const Amg::Vector2D &locpos, std::vector< Identifier > &&rdoList, Amg::MatrixX &&locErrMat) | |
virtual | ~MuonCluster () |
Destructor. More... | |
virtual const Amg::Vector3D & | globalPosition () const =0 |
Returns the global position of the measurement (calculated on the fly) More... | |
virtual IdentifierHash | collectionHash () const |
Returns the IdentifierHash corresponding to the PRD collection in the PRD container. More... | |
virtual const MuonGM::MuonClusterReadoutElement * | detectorElement () const override=0 |
Returns the detector element corresponding to this PRD. More... | |
virtual bool | type (Trk::PrepRawDataType type) const override=0 |
Interface method checking the type. 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 | |
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... | |
Class representing clusters in the muon system.
Definition at line 36 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h.
MuonCluster::MuonCluster | ( | ) |
Default constructor.
For use by POOL only - do not use!
Definition at line 50 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx.
MuonCluster::MuonCluster | ( | const MuonCluster & | RIO | ) |
Definition at line 56 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx.
|
defaultnoexcept |
MuonCluster::MuonCluster | ( | const Identifier & | RDOId, |
const IdentifierHash & | collectionHash, | ||
const Amg::Vector2D & | locpos, | ||
const std::vector< Identifier > & | rdoList, | ||
const Amg::MatrixX & | locErrMat | ||
) |
Full constructor.
RDOId | The channel identifier of the central measurement of the cluster. |
collectionHash | the hash associated with the PRD collection in storegate |
locpos | The position of the cluster in the surface reference frame. the first coordinate is the precision coordinate, the second is set to the centre of the strip. Ownership passes to this object! |
rdoList | List of channels associated with cluster |
locErrMat | The measurement errors. Ownership passes to this object! |
collectionHash | collectionHash |
Definition at line 22 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx.
MuonCluster::MuonCluster | ( | const Identifier & | RDOId, |
const IdentifierHash & | collectionHash, | ||
const Amg::Vector2D & | locpos, | ||
std::vector< Identifier > && | rdoList, | ||
Amg::MatrixX && | locErrMat | ||
) |
collectionHash | collectionHash |
Definition at line 33 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx.
|
virtualdefault |
Destructor.
|
inlinevirtual |
Returns the IdentifierHash corresponding to the PRD collection in the PRD container.
Definition at line 104 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h.
|
overridepure virtual |
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.
Implemented in Muon::RpcPrepData, Muon::CscPrepData, Muon::MMPrepData, Muon::TgcPrepData, and Muon::sTgcPrepData.
|
overridevirtual |
Dumps information about the PRD.
Reimplemented from Trk::PrepRawData.
Reimplemented in Muon::MMPrepData, Muon::CscPrepData, Muon::TgcPrepData, Muon::sTgcPrepData, Muon::RpcPrepData, and Muon::RpcCoinData.
Definition at line 78 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx.
|
overridevirtual |
Dumps information about the PRD.
Reimplemented from Trk::PrepRawData.
Reimplemented in Muon::MMPrepData, Muon::CscPrepData, Muon::TgcPrepData, Muon::sTgcPrepData, Muon::RpcPrepData, and Muon::RpcCoinData.
Definition at line 90 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx.
|
inherited |
|
pure virtual |
Returns the global position of the measurement (calculated on the fly)
Implemented in Muon::MMPrepData, Muon::CscPrepData, Muon::TgcPrepData, Muon::sTgcPrepData, and Muon::RpcPrepData.
|
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.
MuonCluster & MuonCluster::operator= | ( | const MuonCluster & | RIO | ) |
Definition at line 67 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx.
|
defaultnoexcept |
|
inherited |
return the List of rdo identifiers (pointers)
|
inherited |
TEMP for testing: might make some classes friends later ...
|
overridepure virtual |
Interface method checking the type.
Implements Trk::PrepRawData.
Implemented in Muon::RpcPrepData, Muon::CscPrepData, Muon::MMPrepData, Muon::TgcPrepData, and Muon::sTgcPrepData.
|
privateinherited |
PrepRawData ID, not const because of DataPool.
Definition at line 151 of file PrepRawData.h.
|
protected |
Global position of measurement.
Calculated on demand and cached
Definition at line 96 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.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.
|
inlinestaticinherited |
Definition at line 22 of file TrkObjectCounter.h.