ATLAS Offline Software
Loading...
Searching...
No Matches
MdtPrepData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// MdtPrepData.cxx
7// Implementation file for class MdtPrepData
9// (c) ATLAS Detector software
11// Version 1.0 03/30/2005 Ketevi A. Assamagan
13
15#include "GaudiKernel/MsgStream.h"
16
17namespace Muon
18{
19
20 // Constructor with parameters:
22 const Amg::Vector2D& driftRadius,
23 const Amg::MatrixX& errDriftRadius,
24 const MuonGM::MdtReadoutElement* detEl,
25 const int tdc,
26 const int adc,
28 PrepRawData(id, driftRadius, errDriftRadius), //call base class constructor
29 m_detEl(detEl),
30 m_tdc(tdc),
31 m_adc(adc),
33
34{
35// assert(rdoList.size()==1);
36// assert( rdoList[0]==id);
37}
38
40MdtPrepData::MdtPrepData() = default;
41
42
43//Copy constructor:
45 PrepRawData( RIO ),
46 m_detEl(RIO.m_detEl),
47 m_tdc(RIO.m_tdc),
48 m_adc(RIO.m_adc),
49 m_status(RIO.m_status) {}
50
51//Move constructor:
53 PrepRawData( std::move(RIO) ),
54 m_detEl(RIO.m_detEl),
55 m_tdc(RIO.m_tdc),
56 m_adc(RIO.m_adc),
57 m_status(RIO.m_status) {}
58
59//assignment operator
61 if (&RIO !=this) {
63 m_detEl = RIO.m_detEl;
64 m_tdc = RIO.m_tdc;
65 m_adc = RIO.m_adc;
66 m_status = RIO.m_status;
68 }
69 return *this;
70}
71
72//assignment operator
74 if (&RIO !=this) {
75 m_detEl = RIO.m_detEl;
76 m_tdc = RIO.m_tdc;
77 m_adc = RIO.m_adc;
78 m_status = RIO.m_status;
79 Trk::PrepRawData::operator=(std::move(RIO));
80 if (m_globalPosition) {
81 m_globalPosition.release();
82 }
83 }
84 return *this;
85}
86
87MsgStream& MdtPrepData::dump( MsgStream& stream) const
88 {
89 stream << MSG::INFO<<"MdtPrepData {"<<std::endl;
90
92
93 //MdtPrepData methods
94 stream <<"TDC = "<<tdc()<<", ";
95 stream <<"ADC = "<<adc()<<", ";
96 stream <<"status = "<<status()<<", ";
97 stream <<"Id = "<<detectorElement()->idHelperSvc()->toString(identify())<<", ";
98 stream<<"} End MdtPrepData"<<endmsg;
99
100 return stream;
101 }
102
103 std::ostream& MdtPrepData::dump( std::ostream& stream) const
104 {
105 stream << "MdtPrepData {"<<std::endl;
106
108
109 //MdtPrepData methods
110 stream <<"TDC = "<<tdc()<<", ";
111 stream <<"ADC = "<<adc()<<", ";
112 stream <<"status = "<<status()<<", ";
113 stream <<"Id = "<<detectorElement()->idHelperSvc()->toString(identify())<<", ";
114 stream<<"} End MdtPrepData"<<std::endl;
115 return stream;
116 }
117
118
119
120}//end of ns
121
122
#define endmsg
virtual std::string toString(const Identifier &id) const =0
print all fields to string
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
Global position of measurement.
int m_adc
ADC value - typical ADC spectra can go from 0 up to 250.
const MuonGM::MdtReadoutElement * m_detEl
Cached pointer to detector element (not deleted in destructor, not written to disk).
MdtPrepData & operator=(const MdtPrepData &)
int adc() const
Returns the ADC (typically range is 0 to 250).
virtual const MuonGM::MdtReadoutElement * detectorElement() const override
Returns the detector element corresponding to this PRD.
int m_tdc
TDC value - typical TDC spectra can go from 0 up to 2500.
MdtDriftCircleStatus status() const
Returns the status of the measurement.
MdtDriftCircleStatus m_status
enum to hold 'status' of measurement
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
int tdc() const
Returns the TDC (typically range is 0 to 2500).
virtual ~MdtPrepData()
Destructor.
virtual MsgStream & dump(MsgStream &stream) const
dump information about the PRD object.
PrepRawData & operator=(const PrepRawData &)=default
Identifier identify() const
return the identifier
PrepRawData()
public because of DataPool
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
MdtDriftCircleStatus
Enum to represent the 'status' of Mdt measurements e.g.