ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18namespace Muon
19{
20
21// Default constructor:
23 :
24 MuonClusterOnTrack(), // call base class ctor
25 m_rio(),
26 m_detEl(nullptr),
27 m_time(0.0)
28{}
29
30// copy constructor:
32
33
34// Constructor with parameters
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() ),
45{
46 //Set EL
47 // m_rio = ElementLinkToIDC_RPC_Container("RPC_Measurements", RIO->getHashAndIndex().hashAndIndex(), RIO);
48 m_rio.setElement(RIO);
49 }
50
51
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 ),
65{
66}
67
68// Destructor:
70{
71 // we don't own the m_rio object (it belongs to SG), so don't delete it.
72}
73
74// assignment operator:
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
87MsgStream& RpcClusterOnTrack::dump( MsgStream& stream) const
88{
89 stream << MSG::INFO<<"RpcClusterOnTrack {"<<std::endl;
90 stream <<"Time: "<<m_time<<std::endl;
92
93 stream<<"}"<<endmsg;
94 return stream;
95}
96
97std::ostream& RpcClusterOnTrack::dump( std::ostream& stream) const
98{
99 stream << "RpcClusterOnTrack {"<<std::endl;
100 stream <<"Time: "<<m_time<<std::endl;
101
103
104 stream<<"}"<<std::endl;
105 return stream;
106}
107
108}
109
110
#define endmsg
ElementLink< Muon::RpcPrepDataContainer > ElementLinkToIDC_RPC_Container
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
virtual double positionAlongStrip() const
MuonClusterOnTrack()
Pool constructor.
MuonClusterOnTrack & operator=(const MuonClusterOnTrack &)
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Class to represent calibrated clusters formed from RPC strips.
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
ElementLinkToIDC_RPC_Container m_rio
PrepRawData object assoicated with this measurement.
float m_time
The time in ns.
virtual const MuonGM::RpcReadoutElement * detectorElement() const override final
Returns the detector element, assoicated with the PRD of this class.
virtual ~RpcClusterOnTrack()
Destructor.
RpcClusterOnTrack & operator=(const RpcClusterOnTrack &)
float time() const
Return the time (ns)
const MuonGM::RpcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Class to represent RPC measurements.
Definition RpcPrepData.h:35
Identifier identify() const
return the identifier -extends MeasurementBase
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
STL namespace.