ATLAS Offline Software
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 
8 namespace 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 
Trk::LocalParameters
Definition: LocalParameters.h:98
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
sTgcClusterOnTrack.h
Muon::sTgcClusterOnTrack::m_rio
ElementLinkToIDC_STGC_Container m_rio
PrepRawData object assoicated with this measurement.
Definition: sTgcClusterOnTrack.h:95
Muon::sTgcClusterOnTrack::sTgcClusterOnTrack
sTgcClusterOnTrack()
Definition: sTgcClusterOnTrack.cxx:12
Muon::MuonClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition: MuonClusterOnTrack.cxx:62
Muon::sTgcClusterOnTrack::m_detEl
const MuonGM::sTgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Definition: sTgcClusterOnTrack.h:98
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::sTgcClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
Definition: sTgcClusterOnTrack.cxx:67
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuonGM::sTgcReadoutElement
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/sTgcReadoutElement.h:28
Muon::sTgcClusterOnTrack::operator=
sTgcClusterOnTrack & operator=(const sTgcClusterOnTrack &)
Definition: sTgcClusterOnTrack.cxx:56
Muon::sTgcClusterOnTrack
Class to represent calibrated clusters formed from TGC strips.
Definition: sTgcClusterOnTrack.h:30
Muon::sTgcClusterOnTrack::~sTgcClusterOnTrack
virtual ~sTgcClusterOnTrack()
Destructor.
Definition: sTgcClusterOnTrack.cxx:50
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
LocalParameters.h
Muon::sTgcPrepData
Class to represent sTgc measurements.
Definition: sTgcPrepData.h:20
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition: MuonClusterOnTrack.h:34
Muon::MuonClusterOnTrack::operator=
MuonClusterOnTrack & operator=(const MuonClusterOnTrack &)
Definition: MuonClusterOnTrack.cxx:52