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<<"} End MdtPrepData"<<endmsg;
98
99 return stream;
100 }
101
102 std::ostream& MdtPrepData::dump( std::ostream& stream) const
103 {
104 stream << "MdtPrepData {"<<std::endl;
105
107
108 //MdtPrepData methods
109 stream <<"TDC = "<<tdc()<<", ";
110 stream <<"ADC = "<<adc()<<", ";
111 stream <<"status = "<<status()<<", ";
112 stream<<"} End MdtPrepData"<<std::endl;
113 return stream;
114 }
115
116
117
118}//end of ns
119
120
#define endmsg
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)
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
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.