ATLAS Offline Software
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 
18 namespace 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() ),
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 
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:
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 
87 MsgStream& 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 
97 std::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 
Trk::LocalParameters
Definition: LocalParameters.h:98
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
Muon::RpcClusterOnTrack::operator=
RpcClusterOnTrack & operator=(const RpcClusterOnTrack &)
Definition: RpcClusterOnTrack.cxx:75
Muon::MuonClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition: MuonClusterOnTrack.cxx:62
MuonGM::RpcReadoutElement
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/RpcReadoutElement.h:54
Muon::RpcClusterOnTrack
Class to represent calibrated clusters formed from RPC strips.
Definition: RpcClusterOnTrack.h:35
Muon::RpcClusterOnTrack::m_time
float m_time
The time in ns.
Definition: RpcClusterOnTrack.h:114
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Muon::RpcClusterOnTrack::m_detEl
const MuonGM::RpcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Definition: RpcClusterOnTrack.h:111
Muon::RpcClusterOnTrack::m_rio
ElementLinkToIDC_RPC_Container m_rio
PrepRawData object assoicated with this measurement.
Definition: RpcClusterOnTrack.h:108
RpcClusterOnTrack.h
Muon::RpcPrepData
Class to represent RPC measurements.
Definition: RpcPrepData.h:35
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Muon::RpcClusterOnTrack::RpcClusterOnTrack
RpcClusterOnTrack()
Definition: RpcClusterOnTrack.cxx:22
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
LocalParameters.h
Muon::RpcClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
Definition: RpcClusterOnTrack.cxx:87
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
Muon::RpcClusterOnTrack::~RpcClusterOnTrack
virtual ~RpcClusterOnTrack()
Destructor.
Definition: RpcClusterOnTrack.cxx:69
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition: MuonClusterOnTrack.h:34
Muon::MuonClusterOnTrack::operator=
MuonClusterOnTrack & operator=(const MuonClusterOnTrack &)
Definition: MuonClusterOnTrack.cxx:52