ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonPrepRawData
src
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
14
#include "
MuonPrepRawData/MdtPrepData.h
"
15
#include "GaudiKernel/MsgStream.h"
16
17
namespace
Muon
18
{
19
20
// Constructor with parameters:
21
MdtPrepData::MdtPrepData
(
const
Identifier
&
id
,
22
const
Amg::Vector2D
& driftRadius,
23
const
Amg::MatrixX
& errDriftRadius,
24
const
MuonGM::MdtReadoutElement
* detEl,
25
const
int
tdc
,
26
const
int
adc
,
27
const
MdtDriftCircleStatus
status
) :
28
PrepRawData
(id, driftRadius, errDriftRadius),
//call base class constructor
29
m_detEl
(detEl),
30
m_tdc
(
tdc
),
31
m_adc
(
adc
),
32
m_status
(
status
)
33
34
{
35
// assert(rdoList.size()==1);
36
// assert( rdoList[0]==id);
37
}
38
39
MdtPrepData::~MdtPrepData
() =
default
;
40
MdtPrepData::MdtPrepData
() =
default
;
41
42
43
//Copy constructor:
44
MdtPrepData::MdtPrepData
(
const
MdtPrepData
& RIO) :
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:
52
MdtPrepData::MdtPrepData
(
MdtPrepData
&& RIO) noexcept :
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
60
MdtPrepData
&
MdtPrepData::operator=
(
const
MdtPrepData
& RIO) {
61
if
(&RIO !=
this
) {
62
Trk::PrepRawData::operator=
(RIO);
63
m_detEl
= RIO.
m_detEl
;
64
m_tdc
= RIO.
m_tdc
;
65
m_adc
= RIO.
m_adc
;
66
m_status
= RIO.
m_status
;
67
if
(
m_globalPosition
)
m_globalPosition
.release();
68
}
69
return
*
this
;
70
}
71
72
//assignment operator
73
MdtPrepData
&
MdtPrepData::operator=
(
MdtPrepData
&& RIO)
noexcept
{
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
87
MsgStream&
MdtPrepData::dump
( MsgStream& stream)
const
88
{
89
stream << MSG::INFO<<
"MdtPrepData {"
<<std::endl;
90
91
Trk::PrepRawData::dump
(stream);
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
107
Trk::PrepRawData::dump
(stream);
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
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
MdtPrepData.h
MuonGM::MdtReadoutElement
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:51
MuonGM::MuonReadoutElement::idHelperSvc
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:130
Muon::IMuonIdHelperSvc::toString
virtual std::string toString(const Identifier &id) const =0
print all fields to string
Muon::MdtPrepData::m_globalPosition
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
Global position of measurement.
Definition
MdtPrepData.h:124
Muon::MdtPrepData::m_adc
int m_adc
ADC value - typical ADC spectra can go from 0 up to 250.
Definition
MdtPrepData.h:115
Muon::MdtPrepData::m_detEl
const MuonGM::MdtReadoutElement * m_detEl
Cached pointer to detector element (not deleted in destructor, not written to disk).
Definition
MdtPrepData.h:109
Muon::MdtPrepData::operator=
MdtPrepData & operator=(const MdtPrepData &)
Definition
MdtPrepData.cxx:60
Muon::MdtPrepData::MdtPrepData
MdtPrepData()
Muon::MdtPrepData::adc
int adc() const
Returns the ADC (typically range is 0 to 250).
Definition
MdtPrepData.h:146
Muon::MdtPrepData::detectorElement
virtual const MuonGM::MdtReadoutElement * detectorElement() const override
Returns the detector element corresponding to this PRD.
Definition
MdtPrepData.h:141
Muon::MdtPrepData::m_tdc
int m_tdc
TDC value - typical TDC spectra can go from 0 up to 2500.
Definition
MdtPrepData.h:112
Muon::MdtPrepData::status
MdtDriftCircleStatus status() const
Returns the status of the measurement.
Definition
MdtPrepData.h:147
Muon::MdtPrepData::m_status
MdtDriftCircleStatus m_status
enum to hold 'status' of measurement
Definition
MdtPrepData.h:118
Muon::MdtPrepData::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition
MdtPrepData.cxx:87
Muon::MdtPrepData::tdc
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Definition
MdtPrepData.h:145
Muon::MdtPrepData::~MdtPrepData
virtual ~MdtPrepData()
Destructor.
Trk::PrepRawData::dump
virtual MsgStream & dump(MsgStream &stream) const
dump information about the PRD object.
Definition
PrepRawData.cxx:79
Trk::PrepRawData::operator=
PrepRawData & operator=(const PrepRawData &)=default
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Trk::PrepRawData::PrepRawData
PrepRawData()
public because of DataPool
Definition
PrepRawData.cxx:68
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
Identifier
Definition
IdentifierFieldParser.cxx:14
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Muon::MdtDriftCircleStatus
MdtDriftCircleStatus
Enum to represent the 'status' of Mdt measurements e.g.
Definition
MdtDriftCircleStatus.h:25
Generated on
for ATLAS Offline Software by
1.17.0