ATLAS Offline Software
Loading...
Searching...
No Matches
sTgcClusterOnTrack.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8namespace Muon
9{
10
11 // Default constructor:
13 MuonClusterOnTrack(), // call base class ctor
14 m_rio(),
15 m_detEl(nullptr)
16 {}
17
18 // copy constructor:
20
21 // Constructor with parameters
23 const sTgcPrepData* RIO,
24 Trk::LocalParameters&& locpos,
25 Amg::MatrixX&& locerr,
26 double positionAlongStrip) :
27 MuonClusterOnTrack(std::move(locpos), std::move(locerr), RIO->identify(), positionAlongStrip), //call base class constructor
28 m_detEl( RIO->detectorElement() )
29 {
30 //Set EL
31 // m_rio = ElementLinkToIDC_TGC_Container("TGC_Measurements", RIO->getHashAndIndex().hashAndIndex(), RIO);
32 m_rio.setElement(RIO);
33 }
34
35 // Alternate constructor that doesn't dereference the RIO link.
38 Trk::LocalParameters&& locpos,
39 Amg::MatrixX&& locerr,
40 const Identifier& id,
41 const MuonGM::sTgcReadoutElement* detEl,
42 double positionAlongStrip)
43 : MuonClusterOnTrack(std::move(locpos), std::move(locerr), id, positionAlongStrip),
44 m_rio (RIO),
45 m_detEl( detEl )
46 {
47 }
48
49// Destructor:
51 {
52 // we don't own the m_rio object (it belongs to SG), so don't delete it.
53 }
54
55 // assignment operator:
57 {
58 if ( &rot != this)
59 {
60 MuonClusterOnTrack::operator=(rot);//base class ass. op.
61 m_rio = rot.m_rio;
62 m_detEl = rot.m_detEl;
63 }
64 return *this;
65 }
66
67 MsgStream& sTgcClusterOnTrack::dump( MsgStream& stream) const
68 {
69 stream << MSG::INFO<<"sTgcClusterOnTrack {"<<std::endl;
70
72
73 stream<<"}"<<endmsg;
74 return stream;
75 }
76
77 std::ostream& sTgcClusterOnTrack::dump( std::ostream& stream) const
78 {
79 stream << "sTgcClusterOnTrack {"<<std::endl;
80
82
83 stream<<"}"<<std::endl;
84 return stream;
85 }
86
87
88}
89
90
#define endmsg
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
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 TGC strips.
virtual const MuonGM::sTgcReadoutElement * detectorElement() const override final
Returns the detector element, assoicated with the PRD of this class.
sTgcClusterOnTrack & operator=(const sTgcClusterOnTrack &)
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
virtual ~sTgcClusterOnTrack()
Destructor.
ElementLinkToIDC_STGC_Container m_rio
PrepRawData object assoicated with this measurement.
const MuonGM::sTgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Class to represent sTgc measurements.
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.
ElementLink< Muon::sTgcPrepDataContainer > ElementLinkToIDC_STGC_Container