ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonRIO_OnTrack
src
RpcClusterOnTrack.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// RpcClusterOnTrack.cxx
7
// Implementation file for class RpcClusterOnTrack
9
// (c) ATLAS Detector software
11
// Version 1.0 06/07/2004 Ketevi A. Assamagan
12
// adapted from Veronique Boisvert
14
15
#include "
MuonRIO_OnTrack/RpcClusterOnTrack.h
"
16
#include "
TrkEventPrimitives/LocalParameters.h
"
17
18
namespace
Muon
19
{
20
21
// Default constructor:
22
RpcClusterOnTrack::RpcClusterOnTrack
()
23
:
24
MuonClusterOnTrack
(),
// call base class ctor
25
m_rio
(),
26
m_detEl
(nullptr),
27
m_time
(0.0)
28
{}
29
30
// copy constructor:
31
RpcClusterOnTrack::RpcClusterOnTrack
(
const
RpcClusterOnTrack
& rot) =
default
;
32
33
34
// Constructor with parameters
35
RpcClusterOnTrack::RpcClusterOnTrack
(
36
const
RpcPrepData
* RIO,
37
Trk::LocalParameters
&& locpos,
38
Amg::MatrixX
&& locerr,
39
double
positionAlongStrip
,
40
float
time
)
41
:
42
MuonClusterOnTrack
(
std
::move(locpos),
std
::move(locerr), RIO->
identify
(),
positionAlongStrip
),
//call base class constructor
43
m_detEl
( RIO->
detectorElement
() ),
44
m_time
(
time
)
45
{
46
//Set EL
47
// m_rio = ElementLinkToIDC_RPC_Container("RPC_Measurements", RIO->getHashAndIndex().hashAndIndex(), RIO);
48
m_rio
.setElement(RIO);
49
}
50
51
52
RpcClusterOnTrack::RpcClusterOnTrack
(
53
const
ElementLinkToIDC_RPC_Container
& RIO,
54
Trk::LocalParameters
&& locpos,
55
Amg::MatrixX
&& locerr,
56
const
Identifier
&
id
,
57
const
MuonGM::RpcReadoutElement
* detEl,
58
double
positionAlongStrip
,
59
float
time
)
60
:
61
MuonClusterOnTrack
(
std
::move(locpos),
std
::move(locerr), id,
positionAlongStrip
),
//call base class constructor
62
m_rio
(RIO),
63
m_detEl
( detEl ),
64
m_time
(
time
)
65
{
66
}
67
68
// Destructor:
69
RpcClusterOnTrack::~RpcClusterOnTrack
()
70
{
71
// we don't own the m_rio object (it belongs to SG), so don't delete it.
72
}
73
74
// assignment operator:
75
RpcClusterOnTrack
&
RpcClusterOnTrack::operator=
(
const
RpcClusterOnTrack
& rot)
76
{
77
if
( &rot !=
this
)
78
{
79
MuonClusterOnTrack::operator=
(rot);
//base class ass. op.
80
m_rio
= rot.
m_rio
;
81
m_detEl
= rot.
m_detEl
;
82
m_time
= rot.
m_time
;
83
}
84
return
*
this
;
85
}
86
87
MsgStream&
RpcClusterOnTrack::dump
( MsgStream& stream)
const
88
{
89
stream << MSG::INFO<<
"RpcClusterOnTrack {"
<<std::endl;
90
stream <<
"Time: "
<<
m_time
<<std::endl;
91
MuonClusterOnTrack::dump
(stream);
92
93
stream<<
"}"
<<
endmsg
;
94
return
stream;
95
}
96
97
std::ostream&
RpcClusterOnTrack::dump
( std::ostream& stream)
const
98
{
99
stream <<
"RpcClusterOnTrack {"
<<std::endl;
100
stream <<
"Time: "
<<
m_time
<<std::endl;
101
102
MuonClusterOnTrack::dump
(stream);
103
104
stream<<
"}"
<<std::endl;
105
return
stream;
106
}
107
108
}
109
110
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
LocalParameters.h
RpcClusterOnTrack.h
ElementLinkToIDC_RPC_Container
ElementLink< Muon::RpcPrepDataContainer > ElementLinkToIDC_RPC_Container
Definition
RpcClusterOnTrack.h:15
MuonGM::RpcReadoutElement
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/RpcReadoutElement.h:55
Muon::MuonClusterOnTrack::positionAlongStrip
virtual double positionAlongStrip() const
Definition
MuonClusterOnTrack.h:68
Muon::MuonClusterOnTrack::MuonClusterOnTrack
MuonClusterOnTrack()
Pool constructor.
Definition
MuonClusterOnTrack.cxx:12
Muon::MuonClusterOnTrack::operator=
MuonClusterOnTrack & operator=(const MuonClusterOnTrack &)
Definition
MuonClusterOnTrack.cxx:42
Muon::MuonClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition
MuonClusterOnTrack.cxx:52
Muon::RpcClusterOnTrack
Class to represent calibrated clusters formed from RPC strips.
Definition
RpcClusterOnTrack.h:35
Muon::RpcClusterOnTrack::RpcClusterOnTrack
RpcClusterOnTrack()
Definition
RpcClusterOnTrack.cxx:22
Muon::RpcClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
Definition
RpcClusterOnTrack.cxx:87
Muon::RpcClusterOnTrack::m_rio
ElementLinkToIDC_RPC_Container m_rio
PrepRawData object assoicated with this measurement.
Definition
RpcClusterOnTrack.h:108
Muon::RpcClusterOnTrack::m_time
float m_time
The time in ns.
Definition
RpcClusterOnTrack.h:114
Muon::RpcClusterOnTrack::detectorElement
virtual const MuonGM::RpcReadoutElement * detectorElement() const override final
Returns the detector element, assoicated with the PRD of this class.
Definition
RpcClusterOnTrack.h:138
Muon::RpcClusterOnTrack::~RpcClusterOnTrack
virtual ~RpcClusterOnTrack()
Destructor.
Definition
RpcClusterOnTrack.cxx:69
Muon::RpcClusterOnTrack::operator=
RpcClusterOnTrack & operator=(const RpcClusterOnTrack &)
Definition
RpcClusterOnTrack.cxx:75
Muon::RpcClusterOnTrack::time
float time() const
Return the time (ns).
Definition
RpcClusterOnTrack.h:159
Muon::RpcClusterOnTrack::m_detEl
const MuonGM::RpcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Definition
RpcClusterOnTrack.h:111
Muon::RpcPrepData
Class to represent RPC measurements.
Definition
RpcPrepData.h:35
Trk::LocalParameters
Definition
LocalParameters.h:100
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition
RIO_OnTrack.h:152
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Identifier
Definition
IdentifierFieldParser.cxx:14
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0