ATLAS Offline Software
|
Class to represent TGC measurements. More...
#include <TgcPrepData.h>
Public Types | |
enum | { BCBIT_UNDEFINED =0, BCBIT_NEXT =1, BCBIT_CURRENT =2, BCBIT_PREVIOUS =4 } |
Public Member Functions | |
TgcPrepData () | |
TgcPrepData (const TgcPrepData &) | |
TgcPrepData (TgcPrepData &&) noexcept=default | |
TgcPrepData & | operator= (const TgcPrepData &) |
TgcPrepData & | operator= (TgcPrepData &&) noexcept=default |
TgcPrepData (const Identifier &RDOId, const IdentifierHash &idDE, const Amg::Vector2D &locpos, const std::vector< Identifier > &rdoList, const Amg::MatrixX &locErrMat, const MuonGM::TgcReadoutElement *detEl, const uint16_t bcBitMap=0) | |
Full constructor. More... | |
TgcPrepData (const Identifier &RDOId, const IdentifierHash &idDE, const Amg::Vector2D &locpos, std::vector< Identifier > &&rdoList, Amg::MatrixX &&locErrMat, const MuonGM::TgcReadoutElement *detEl, const uint16_t bcBitMap=0) | |
virtual | ~TgcPrepData () |
Destructor: More... | |
virtual const Amg::Vector3D & | globalPosition () const override final |
Returns the global position. More... | |
virtual const MuonGM::TgcReadoutElement * | detectorElement () const override final |
Returns the detector element corresponding to this PRD The pointer will be zero if the det el is not defined (i.e. More... | |
virtual bool | type (Trk::PrepRawDataType type) const override final |
Interface method checking the type. More... | |
uint16_t | getBcBitMap () const |
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC. More... | |
void | setBcBitMap (const uint16_t) |
set the bcBitMap for this PRD More... | |
virtual MsgStream & | dump (MsgStream &stream) const override final |
Dumps information about the PRD. More... | |
virtual std::ostream & | dump (std::ostream &stream) const override final |
Dumps information about the PRD. More... | |
virtual IdentifierHash | collectionHash () const |
Returns the IdentifierHash corresponding to the PRD collection in the PRD container. 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::TgcReadoutElement * | m_detEl |
uint16_t | m_bcBitMap |
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 | ::TgcPrepDataContainerCnv |
class | TgcPrepDataContainerCnv_p1 |
Class to represent TGC measurements.
Definition at line 31 of file TgcPrepData.h.
anonymous enum |
Enumerator | |
---|---|
BCBIT_UNDEFINED | |
BCBIT_NEXT | |
BCBIT_CURRENT | |
BCBIT_PREVIOUS |
Definition at line 97 of file TgcPrepData.h.
Muon::TgcPrepData::TgcPrepData | ( | ) |
Definition at line 52 of file TgcPrepData.cxx.
|
default |
|
defaultnoexcept |
Muon::TgcPrepData::TgcPrepData | ( | const Identifier & | RDOId, |
const IdentifierHash & | idDE, | ||
const Amg::Vector2D & | locpos, | ||
const std::vector< Identifier > & | rdoList, | ||
const Amg::MatrixX & | locErrMat, | ||
const MuonGM::TgcReadoutElement * | detEl, | ||
const uint16_t | bcBitMap = 0 |
||
) |
Full constructor.
RDOId | The identifier of the central strip of the cluster |
idDE | The IdenifierHash of the collection used to store this object (i.e. of Muon::CscPrepDataCollection) |
locpos | The local coords of the measurement (this object will now own the LocalPostion) |
rdoList | Vector of all the Identifiers of the strips used in this cluster |
locErrMat | The error of the measurement (this object will now own the ErrorMatrix) |
detEl | The pointer to the Detector Element on which this measurement was made (must NOT be zero). Ownership is NOT taken (the pointer is assumed to belong to GeoModel and will not be deleted) |
Definition at line 21 of file TgcPrepData.cxx.
Muon::TgcPrepData::TgcPrepData | ( | const Identifier & | RDOId, |
const IdentifierHash & | idDE, | ||
const Amg::Vector2D & | locpos, | ||
std::vector< Identifier > && | rdoList, | ||
Amg::MatrixX && | locErrMat, | ||
const MuonGM::TgcReadoutElement * | detEl, | ||
const uint16_t | bcBitMap = 0 |
||
) |
Definition at line 33 of file TgcPrepData.cxx.
|
virtualdefault |
Destructor:
|
inlinevirtualinherited |
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.
|
inlinefinaloverridevirtual |
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 Muon::MuonCluster.
Definition at line 120 of file TgcPrepData.h.
|
finaloverridevirtual |
Dumps information about the PRD.
Reimplemented from Muon::MuonCluster.
Definition at line 85 of file TgcPrepData.cxx.
|
finaloverridevirtual |
Dumps information about the PRD.
Reimplemented from Muon::MuonCluster.
Definition at line 96 of file TgcPrepData.cxx.
uint16_t Muon::TgcPrepData::getBcBitMap | ( | ) | const |
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
Definition at line 75 of file TgcPrepData.cxx.
|
inherited |
|
inlinefinaloverridevirtual |
Returns the global position.
Implements Muon::MuonCluster.
Definition at line 125 of file TgcPrepData.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.
TgcPrepData & Muon::TgcPrepData::operator= | ( | const TgcPrepData & | RIO | ) |
Definition at line 64 of file TgcPrepData.cxx.
|
defaultnoexcept |
|
inherited |
return the List of rdo identifiers (pointers)
void Muon::TgcPrepData::setBcBitMap | ( | const uint16_t | bcBitMap | ) |
set the bcBitMap for this PRD
Definition at line 80 of file TgcPrepData.cxx.
|
inherited |
TEMP for testing: might make some classes friends later ...
|
inlinefinaloverridevirtual |
Interface method checking the type.
Implements Muon::MuonCluster.
Definition at line 89 of file TgcPrepData.h.
|
friend |
Definition at line 39 of file TgcPrepData.h.
|
friend |
Definition at line 40 of file TgcPrepData.h.
|
private |
Definition at line 111 of file TgcPrepData.h.
|
privateinherited |
PrepRawData ID, not const because of DataPool.
Definition at line 151 of file PrepRawData.h.
|
private |
Definition at line 110 of file TgcPrepData.h.
|
protectedinherited |
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.