Class representing the raw data of one CSC strip (for clusters look at Muon::CscPrepData).
More...
#include <CscStripPrepData.h>
|
| | CscStripPrepData () |
| | CscStripPrepData (const CscStripPrepData &) |
| CscStripPrepData & | operator= (const CscStripPrepData &) |
| | CscStripPrepData (const Identifier &RDOId, const IdentifierHash &collectionHash, const Amg::Vector2D &locpos, const Amg::MatrixX &locErrMat, const MuonGM::CscReadoutElement *detEl, const std::vector< float > &sampleCharges, float timeOfFirstSample, unsigned short samplingRate) |
| | Constructor.
|
| | CscStripPrepData (const Identifier &RDOId, const IdentifierHash &collectionHash, const Amg::Vector2D &locpos, Amg::MatrixX &&locErrMat, const MuonGM::CscReadoutElement *detEl, const std::vector< float > &sampleCharges, float timeOfFirstSample, unsigned short samplingRate) |
| virtual | ~CscStripPrepData () |
| | Destructor:
|
| const Amg::Vector3D & | globalPosition () const |
| | return global position reference
|
| virtual const MuonGM::CscReadoutElement * | detectorElement () const override final |
| | return the detector element corresponding to this PRD The pointer will be zero if the det el is not defined (i.e.
|
| virtual Trk::PrepRawDataType | prdType () const override final |
| | Interface method checking the type.
|
| const IdentifierHash | collectionHash () const |
| | returns the IdentifierHash corresponding to the channel.
|
| const std::vector< float > & | sampleCharges () const |
| | Return the time samples.
|
| double | timeOfFirstSample () const |
| | return the time of the first sample
|
| bool | samplingPhase () const |
| | return the sampling phase
|
| unsigned short | samplingTime () const |
| | return the sampling time in ns: the time between samplings
|
| virtual MsgStream & | dump (MsgStream &stream) const override final |
| | dump information about the PRD
|
| virtual std::ostream & | dump (std::ostream &stream) const override final |
| | dump information about the PRD
|
| void | set_samplingPhase () |
| | set the sampling phase
|
| 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 |
Class representing the raw data of one CSC strip (for clusters look at Muon::CscPrepData).
- Author
- niels van Eldik niels.nosp@m..van.nosp@m..eldi.nosp@m.k@ce.nosp@m.rn.ch
Definition at line 39 of file CscStripPrepData.h.
◆ CscStripPrepData() [1/4]
| Muon::CscStripPrepData::CscStripPrepData |
( |
| ) |
|
Definition at line 69 of file CscStripPrepData.cxx.
69 :
78 { }
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
The global position is calculated 'on the fly' and is not written to disk.
const MuonGM::CscReadoutElement * m_detEl
unsigned short m_samplingTime
float m_timeOfFirstSample
IdentifierHash m_collectionHash
The IdenifierHash of the collection used to store this PRD.
std::vector< float > m_sampleCharges
PrepRawData()
public because of DataPool
◆ CscStripPrepData() [2/4]
Definition at line 81 of file CscStripPrepData.cxx.
81 :
90 { }
const MuonGM::CscReadoutElement * m_detEl
unsigned short m_samplingTime
float m_timeOfFirstSample
IdentifierHash m_collectionHash
The IdenifierHash of the collection used to store this PRD.
std::vector< float > m_sampleCharges
◆ CscStripPrepData() [3/4]
Constructor.
- Parameters
-
| RDOId | The identifier of the strip |
| collectionHash | 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) |
| 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) |
| sampleCharges | The vector of charges measured by the strip. |
- Todo
- More info.
- Parameters
-
- Todo
- More info.
- Parameters
-
| samplingRate | The sampling rate. |
Definition at line 23 of file CscStripPrepData.cxx.
31 :
40 {
41 }
double timeOfFirstSample() const
return the time of the first sample
const std::vector< float > & sampleCharges() const
Return the time samples.
const IdentifierHash collectionHash() const
returns the IdentifierHash corresponding to the channel.
unsigned short samplingTime() const
return the sampling time in ns: the time between samplings
◆ CscStripPrepData() [4/4]
◆ ~CscStripPrepData()
| Muon::CscStripPrepData::~CscStripPrepData |
( |
| ) |
|
|
virtualdefault |
◆ collectionHash()
◆ detectorElement()
|
|
inlinefinaloverridevirtual |
return 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 152 of file CscStripPrepData.h.
◆ dump() [1/2]
| MsgStream & Muon::CscStripPrepData::dump |
( |
MsgStream & | stream | ) |
const |
|
finaloverridevirtual |
dump information about the PRD
Reimplemented from Trk::PrepRawData.
Definition at line 109 of file CscStripPrepData.cxx.
110 {
112
114 s << std::setiosflags(std::ios::fixed);
115 s << std::setprecision(4);
121 s <<
"} End CscStripPrepData" << std::endl;
123
125 }
bool samplingPhase() const
return the sampling phase
◆ dump() [2/2]
| std::ostream & Muon::CscStripPrepData::dump |
( |
std::ostream & | stream | ) |
const |
|
finaloverridevirtual |
dump information about the PRD
Reimplemented from Trk::PrepRawData.
Definition at line 127 of file CscStripPrepData.cxx.
128 {
129 stream <<
"CscStripPrepData {"<<std::endl;
130
132 s << std::setiosflags(std::ios::fixed);
133 s << std::setprecision(4);
134
140 s <<
"} End CscStripPrepData" << std::endl;
142
144 }
◆ getHashAndIndex()
◆ globalPosition()
return global position reference
Definition at line 140 of file CscStripPrepData.h.
141 {
146 }
147
150 }
const Amg::Vector2D & localPosition() const
return the local position reference
Identifier identify() const
return the identifier
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const =0
Specified by each surface type: LocalToGlobal method without dynamic memory allocation.
◆ hasLocalCovariance()
| bool Trk::PrepRawData::hasLocalCovariance |
( |
| ) |
const |
|
inherited |
◆ identify()
◆ localCovariance()
return const ref to the error matrix
◆ localPosition()
return the local position reference
◆ numberOfInstantiations()
Definition at line 25 of file TrkObjectCounter.h.
26 {
27#ifndef NDEBUG
29#endif
30 return 0;
31 }
Helper to enable counting number of instantiations in debug builds.
◆ operator=()
Definition at line 93 of file CscStripPrepData.cxx.
94 {
95 if (&RIO !=this)
96 {
104 PrepRawData::operator=(RIO);
105 }
106 return *this;
107 }
◆ prdType()
|
|
inlinefinaloverridevirtual |
◆ rdoList()
return the List of rdo identifiers (pointers)
◆ sampleCharges()
| const std::vector< float > & Muon::CscStripPrepData::sampleCharges |
( |
| ) |
const |
|
inline |
◆ samplingPhase()
| bool Muon::CscStripPrepData::samplingPhase |
( |
| ) |
const |
|
inline |
◆ samplingTime()
| unsigned short Muon::CscStripPrepData::samplingTime |
( |
| ) |
const |
|
inline |
return the sampling time in ns: the time between samplings
Definition at line 172 of file CscStripPrepData.h.
◆ set_samplingPhase()
| void Muon::CscStripPrepData::set_samplingPhase |
( |
| ) |
|
|
inline |
set the sampling phase
- Warning
- This does not conform to ATLAS Coding Conventions and will be renamed to setSamplingPhase()
Definition at line 182 of file CscStripPrepData.h.
◆ setHashAndIndex()
| void Trk::PrepRawData::setHashAndIndex |
( |
unsigned short | collHash, |
|
|
unsigned short | objIndex ) |
|
inherited |
TEMP for testing: might make some classes friends later ...
◆ timeOfFirstSample()
| double Muon::CscStripPrepData::timeOfFirstSample |
( |
| ) |
const |
|
inline |
◆ type()
Interface method checking the type.
Reimplemented in InDet::PixelCluster, and InDet::SCT_Cluster.
Definition at line 133 of file PrepRawData.h.
133 {
135 }
virtual bool type(PrepRawDataType type) const
Interface method checking the type.
virtual PrepRawDataType prdType() const =0
Interface method returning the prdType.
◆ ::CscStripPrepDataContainerCnv
| friend class ::CscStripPrepDataContainerCnv |
|
friend |
◆ Muon::CscStripPrepDataContainerCnv_p1
◆ m_clusId
◆ m_collectionHash
The IdenifierHash of the collection used to store this PRD.
Definition at line 125 of file CscStripPrepData.h.
◆ m_detEl
◆ m_globalPosition
The global position is calculated 'on the fly' and is not written to disk.
Definition at line 127 of file CscStripPrepData.h.
◆ m_indexAndHash
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.
◆ m_localCovariance
See derived classes for definition of ErrorMatrix.
Definition at line 163 of file PrepRawData.h.
◆ m_localPos
see derived classes for definition of meaning of LocalPosition
Definition at line 159 of file PrepRawData.h.
◆ m_rdoList
| std::vector<Identifier> Trk::PrepRawData::m_rdoList {} |
|
privateinherited |
Stores the identifiers of the RDOs.
Definition at line 161 of file PrepRawData.h.
◆ m_sampleCharges
| std::vector<float> Muon::CscStripPrepData::m_sampleCharges |
|
private |
◆ m_samplingPhase
| bool Muon::CscStripPrepData::m_samplingPhase |
|
private |
◆ m_samplingTime
| unsigned short Muon::CscStripPrepData::m_samplingTime |
|
private |
◆ m_timeOfFirstSample
| float Muon::CscStripPrepData::m_timeOfFirstSample |
|
private |
◆ s_numberOfInstantiations
The documentation for this class was generated from the following files: