ATLAS Offline Software
Loading...
Searching...
No Matches
TgcClusterOnTrack.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// TgcClusterOnTrack.cxx
7// Implementation file for class TgcClusterOnTrack
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 MuonClusterOnTrack(), // call base class ctor
24 m_rio(),
25 m_detEl(nullptr)
26{}
27
28// copy constructor:
30
31// Constructor with parameters
33 const TgcPrepData* RIO,
34 Trk::LocalParameters&& locpos,
35 Amg::MatrixX&& locerr,
36 double positionAlongStrip) :
37 MuonClusterOnTrack(std::move(locpos), std::move(locerr), RIO->identify(), positionAlongStrip), //call base class constructor
38 m_detEl( RIO->detectorElement() )
39{
40 //Set EL
41 // m_rio = ElementLinkToIDC_TGC_Container("TGC_Measurements", RIO->getHashAndIndex().hashAndIndex(), RIO);
42 m_rio.setElement(RIO);
43}
44
47 Trk::LocalParameters&& locpos,
48 Amg::MatrixX&& locerr,
49 const Identifier& id,
50 const MuonGM::TgcReadoutElement* detEl,
51 double positionAlongStrip) :
52 MuonClusterOnTrack(std::move(locpos), std::move(locerr), id, positionAlongStrip), //call base class constructor
53 m_rio(RIO),
54 m_detEl( detEl )
55{
56}
57
58// Destructor:
60{
61 // we don't own the m_rio object (it belongs to SG), so don't delete it.
62}
63
64// assignment operator:
66{
67 if ( &rot != this)
68 {
69 MuonClusterOnTrack::operator=(rot);//base class ass. op.
70 m_rio = rot.m_rio;
71 m_detEl = rot.m_detEl;
72 }
73 return *this;
74}
75
76MsgStream& TgcClusterOnTrack::dump( MsgStream& stream) const
77{
78 stream << MSG::INFO<<"TgcClusterOnTrack {"<<std::endl;
79
81
82 stream<<"}"<<endmsg;
83 return stream;
84}
85
86std::ostream& TgcClusterOnTrack::dump( std::ostream& stream) const
87{
88 stream << "TgcClusterOnTrack {"<<std::endl;
89
91
92 stream<<"}"<<std::endl;
93 return stream;
94}
95
96
97}
98
99
#define endmsg
ElementLink< Muon::TgcPrepDataContainer > ElementLinkToIDC_TGC_Container
Class to implement Cluster On Track for Si.
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
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::TgcReadoutElement * detectorElement() const
Returns the detector element, assoicated with the PRD of this class.
virtual MsgStream & dump(MsgStream &stream) const
Dumps information about the PRD.
ElementLinkToIDC_TGC_Container m_rio
PrepRawData object assoicated with this measurement.
const MuonGM::TgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
virtual ~TgcClusterOnTrack()
Destructor.
TgcClusterOnTrack & operator=(const TgcClusterOnTrack &)
Class to represent TGC measurements.
Definition TgcPrepData.h:32
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.