ATLAS Offline Software
|
Class to represent MM measurements. More...
#include <MMPrepData.h>
Public Types | |
enum | Author : short { Author::RDOTOPRDConverter = -1, Author::SimpleClusterBuilder, Author::ClusterTimeProjectionClusterBuilder, Author::uTPCClusterBuilder, Author::nAuthorsPRD } |
enum | Quality : uint8_t { Quality::unKnown = 0 } |
Public Member Functions | |
MMPrepData ()=default | |
MMPrepData (const MMPrepData &)=delete | |
MMPrepData & | operator= (const MMPrepData &)=delete |
MMPrepData (MMPrepData &&) noexcept=default | |
MMPrepData & | operator= (MMPrepData &&) noexcept=default |
MMPrepData (const Identifier &RDOId, const IdentifierHash &idDE, Amg::Vector2D &&locpos, std::vector< Identifier > &&rdoList, Amg::MatrixX &&locErrMat, const MuonGM::MMReadoutElement *detEl, const short int time, const int charge, const float driftDist, std::vector< uint16_t > &&stripNumbers, std::vector< short int > &&stripTimes, std::vector< int > &&stripCharges) | |
Constructor. More... | |
MMPrepData (const Identifier &RDOId, const IdentifierHash &idDE, Amg::Vector2D &&locpos, std::vector< Identifier > &&rdoList, Amg::MatrixX &&locErrMat, const MuonGM::MMReadoutElement *detEl, const short int time, const int charge, const float driftDist) | |
constructor including time and charge and drift distance More... | |
MMPrepData (const Identifier &RDOId, const IdentifierHash &idDE, Amg::Vector2D &&locpos, std::vector< Identifier > &&rdoList, Amg::MatrixX &&locErrMat, const MuonGM::MMReadoutElement *detEl, const short int time, const int charge) | |
constructor including time and charge More... | |
MMPrepData (const Identifier &RDOId, const IdentifierHash &idDE, Amg::Vector2D &&locpos, std::vector< Identifier > &&rdoList, Amg::MatrixX &&locErrMat, const MuonGM::MMReadoutElement *detEl) | |
virtual | ~MMPrepData ()=default |
Destructor: More... | |
void | setMicroTPC (float angle, float chisqProb) |
set microTPC parameters More... | |
void | setDriftDist (std::vector< float > &&driftDist, std::vector< AmgVector(2)> &&driftDistErrors) |
set drift distances and uncertainties More... | |
void | setDriftDist (std::vector< float > &&driftDist, std::vector< float > &&stripDriftErrors_0_0, std::vector< float > &&stripDriftErrors_1_1) |
virtual const Amg::Vector3D & | globalPosition () const override final |
Returns the global position. More... | |
virtual const MuonGM::MMReadoutElement * | detectorElement () const override final |
Returns the detector element corresponding to this PRD. More... | |
virtual bool | type (Trk::PrepRawDataType type) const override final |
Interface method checking the type. More... | |
short int | time () const |
Returns the time (in ns) More... | |
int | charge () const |
Returns the AD. More... | |
float | driftDist () const |
Returns the Drift Distance. More... | |
float | angle () const |
Returns the microTPC angle. More... | |
float | chisqProb () const |
Returns the microTPC chisq Prob. More... | |
const std::vector< uint16_t > & | stripNumbers () const |
returns the list of strip numbers More... | |
const std::vector< short int > & | stripTimes () const |
returns the list of times More... | |
const std::vector< int > & | stripCharges () const |
returns the list of charges More... | |
const std::vector< float > & | stripDriftDist () const |
returns the list of drift distances More... | |
const std::vector< AmgVector(2)> & | stripDriftErrors () const |
returns the list of drift distances More... | |
std::vector< float > | stripDriftErrors_0_0 () const |
std::vector< float > | stripDriftErrors_1_1 () const |
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... | |
Quality | quality () const |
void | setQuality (const Quality q) |
Author | author () const |
void | setAuthor (Author author) |
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::MMReadoutElement * | m_detEl {nullptr} |
Cached pointer to the detector element - should never be zero. More... | |
short int | m_time {0} |
measured time More... | |
int | m_charge {0} |
measured charge More... | |
float | m_driftDist {0.f} |
drift distance More... | |
float | m_angle {0.f} |
@angle and chisquare from micro-TPC fit More... | |
float | m_chisqProb {0.f} |
std::vector< uint16_t > | m_stripNumbers {} |
@list of strip numbers, time and charge, of the strips associated to the PRD More... | |
std::vector< short int > | m_stripTimes {} |
std::vector< int > | m_stripCharges {} |
std::vector< float > | m_stripDriftDist {} |
std::vector< AmgVector(2)> | m_stripDriftErrors {} |
Author | m_author {Author::nAuthorsPRD} |
Quality | m_quality {Quality::unKnown} |
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 to represent MM measurements.
Definition at line 22 of file MMPrepData.h.
|
strong |
Enumerator | |
---|---|
RDOTOPRDConverter | |
SimpleClusterBuilder | |
ClusterTimeProjectionClusterBuilder | |
uTPCClusterBuilder | |
nAuthorsPRD |
Definition at line 156 of file MMPrepData.h.
|
strong |
Enumerator | |
---|---|
unKnown |
Definition at line 164 of file MMPrepData.h.
|
default |
|
delete |
|
defaultnoexcept |
Muon::MMPrepData::MMPrepData | ( | const Identifier & | RDOId, |
const IdentifierHash & | idDE, | ||
Amg::Vector2D && | locpos, | ||
std::vector< Identifier > && | rdoList, | ||
Amg::MatrixX && | locErrMat, | ||
const MuonGM::MMReadoutElement * | detEl, | ||
const short int | time, | ||
const int | charge, | ||
const float | driftDist, | ||
std::vector< uint16_t > && | stripNumbers, | ||
std::vector< short int > && | stripTimes, | ||
std::vector< int > && | stripCharges | ||
) |
Constructor.
RDOId | The identifier of the central strip of the cluster |
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) |
full constructor including time, charge and strip vectors
Definition at line 11 of file MMPrepData.cxx.
Muon::MMPrepData::MMPrepData | ( | const Identifier & | RDOId, |
const IdentifierHash & | idDE, | ||
Amg::Vector2D && | locpos, | ||
std::vector< Identifier > && | rdoList, | ||
Amg::MatrixX && | locErrMat, | ||
const MuonGM::MMReadoutElement * | detEl, | ||
const short int | time, | ||
const int | charge, | ||
const float | driftDist | ||
) |
constructor including time and charge and drift distance
Definition at line 45 of file MMPrepData.cxx.
Muon::MMPrepData::MMPrepData | ( | const Identifier & | RDOId, |
const IdentifierHash & | idDE, | ||
Amg::Vector2D && | locpos, | ||
std::vector< Identifier > && | rdoList, | ||
Amg::MatrixX && | locErrMat, | ||
const MuonGM::MMReadoutElement * | detEl, | ||
const short int | time, | ||
const int | charge | ||
) |
constructor including time and charge
Definition at line 32 of file MMPrepData.cxx.
Muon::MMPrepData::MMPrepData | ( | const Identifier & | RDOId, |
const IdentifierHash & | idDE, | ||
Amg::Vector2D && | locpos, | ||
std::vector< Identifier > && | rdoList, | ||
Amg::MatrixX && | locErrMat, | ||
const MuonGM::MMReadoutElement * | detEl | ||
) |
Definition at line 60 of file MMPrepData.cxx.
|
virtualdefault |
Destructor:
|
inline |
Returns the microTPC angle.
Definition at line 237 of file MMPrepData.h.
|
inline |
Definition at line 272 of file MMPrepData.h.
|
inline |
|
inline |
Returns the microTPC chisq Prob.
Definition at line 242 of file MMPrepData.h.
|
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 206 of file MMPrepData.h.
|
inline |
Returns the Drift Distance.
Definition at line 232 of file MMPrepData.h.
|
finaloverridevirtual |
Dumps information about the PRD.
Reimplemented from Muon::MuonCluster.
Definition at line 102 of file MMPrepData.cxx.
|
finaloverridevirtual |
Dumps information about the PRD.
Reimplemented from Muon::MuonCluster.
Definition at line 109 of file MMPrepData.cxx.
|
inherited |
|
inlinefinaloverridevirtual |
Returns the global position.
Implements Muon::MuonCluster.
Definition at line 211 of file MMPrepData.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.
|
delete |
|
defaultnoexcept |
|
inline |
Definition at line 168 of file MMPrepData.h.
|
inherited |
return the List of rdo identifiers (pointers)
void Muon::MMPrepData::setAuthor | ( | MMPrepData::Author | author | ) |
Definition at line 96 of file MMPrepData.cxx.
void Muon::MMPrepData::setDriftDist | ( | std::vector< float > && | driftDist, |
std::vector< AmgVector(2)> && | driftDistErrors | ||
) |
set drift distances and uncertainties
set drift distances and errors
Definition at line 78 of file MMPrepData.cxx.
void Muon::MMPrepData::setDriftDist | ( | std::vector< float > && | driftDist, |
std::vector< float > && | stripDriftErrors_0_0, | ||
std::vector< float > && | stripDriftErrors_1_1 | ||
) |
Definition at line 83 of file MMPrepData.cxx.
|
inherited |
TEMP for testing: might make some classes friends later ...
void Muon::MMPrepData::setMicroTPC | ( | float | angle, |
float | chisqProb | ||
) |
Definition at line 169 of file MMPrepData.h.
|
inline |
returns the list of charges
Definition at line 257 of file MMPrepData.h.
|
inline |
returns the list of drift distances
Definition at line 262 of file MMPrepData.h.
returns the list of drift distances
Definition at line 267 of file MMPrepData.h.
std::vector< float > Muon::MMPrepData::stripDriftErrors_0_0 | ( | ) | const |
Definition at line 116 of file MMPrepData.cxx.
std::vector< float > Muon::MMPrepData::stripDriftErrors_1_1 | ( | ) | const |
Definition at line 125 of file MMPrepData.cxx.
|
inline |
returns the list of strip numbers
Definition at line 247 of file MMPrepData.h.
|
inline |
returns the list of times
Definition at line 252 of file MMPrepData.h.
|
inline |
Returns the time (in ns)
Definition at line 222 of file MMPrepData.h.
|
inlinefinaloverridevirtual |
Interface method checking the type.
Implements Muon::MuonCluster.
Definition at line 110 of file MMPrepData.h.
|
private |
@angle and chisquare from micro-TPC fit
Definition at line 192 of file MMPrepData.h.
|
private |
Definition at line 201 of file MMPrepData.h.
|
private |
measured charge
the charge is calibrated, i.e. it is in units of electrons, after pedestal subtraction
Definition at line 186 of file MMPrepData.h.
|
private |
Definition at line 193 of file MMPrepData.h.
|
privateinherited |
PrepRawData ID, not const because of DataPool.
Definition at line 151 of file PrepRawData.h.
|
private |
Cached pointer to the detector element - should never be zero.
Definition at line 178 of file MMPrepData.h.
|
private |
drift distance
Definition at line 189 of file MMPrepData.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.
|
private |
Definition at line 202 of file MMPrepData.h.
|
privateinherited |
Stores the identifiers of the RDOs.
Definition at line 156 of file PrepRawData.h.
|
private |
Definition at line 198 of file MMPrepData.h.
|
private |
Definition at line 199 of file MMPrepData.h.
|
private |
Definition at line 200 of file MMPrepData.h.
|
private |
@list of strip numbers, time and charge, of the strips associated to the PRD
Definition at line 196 of file MMPrepData.h.
|
private |
Definition at line 197 of file MMPrepData.h.
|
private |
measured time
the time is calibrated, i.e. it is in units of ns, after t0 subtraction
Definition at line 182 of file MMPrepData.h.
|
inlinestaticinherited |
Definition at line 22 of file TrkObjectCounter.h.