ATLAS Offline Software
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 
18 namespace 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 
76 MsgStream& TgcClusterOnTrack::dump( MsgStream& stream) const
77 {
78  stream << MSG::INFO<<"TgcClusterOnTrack {"<<std::endl;
79 
81 
82  stream<<"}"<<endmsg;
83  return stream;
84 }
85 
86 std::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 
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::TgcClusterOnTrack::operator=
TgcClusterOnTrack & operator=(const TgcClusterOnTrack &)
Definition: TgcClusterOnTrack.cxx:65
Muon::TgcClusterOnTrack::~TgcClusterOnTrack
virtual ~TgcClusterOnTrack()
Destructor.
Definition: TgcClusterOnTrack.cxx:59
Muon::TgcClusterOnTrack::TgcClusterOnTrack
TgcClusterOnTrack()
Definition: TgcClusterOnTrack.cxx:22
Muon::MuonClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition: MuonClusterOnTrack.cxx:62
Muon::TgcClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const
Dumps information about the PRD.
Definition: TgcClusterOnTrack.cxx:76
Muon::TgcClusterOnTrack
Class to represent calibrated clusters formed from TGC strips.
Definition: TgcClusterOnTrack.h:46
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
TgcClusterOnTrack.h
Muon::TgcClusterOnTrack::m_rio
ElementLinkToIDC_TGC_Container m_rio
PrepRawData object assoicated with this measurement.
Definition: TgcClusterOnTrack.h:112
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuonGM::TgcReadoutElement
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/TgcReadoutElement.h:42
Muon::TgcClusterOnTrack::m_detEl
const MuonGM::TgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Definition: TgcClusterOnTrack.h:115
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
LocalParameters.h
Muon::TgcPrepData
Class to represent TGC measurements.
Definition: TgcPrepData.h:32
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition: MuonClusterOnTrack.h:34
Muon::MuonClusterOnTrack::operator=
MuonClusterOnTrack & operator=(const MuonClusterOnTrack &)
Definition: MuonClusterOnTrack.cxx:52