ATLAS Offline Software
Loading...
Searching...
No Matches
sTgcClusterOnTrack.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONRIOONTRACK_STGCCLUSTERONTRACK_H
6#define MUONRIOONTRACK_STGCCLUSTERONTRACK_H
7
8// Base classes
11// needed classes
13#include "AthLinks/ElementLink.h"
14
16
18
19
20namespace Trk
21{
22 class ITrkEventCnvTool;
23}
24
25namespace Muon
26{
27
30 {
31
32 public:
34 friend class ::STGC_ClusterOnTrackCnv_p1;
35
39
49 const sTgcPrepData* RIO,
50 Trk::LocalParameters&& locpos,
51 Amg::MatrixX&& locerr,
53 );
54
55 // Alternate constructor that doesn't dereference the RIO link.
58 Trk::LocalParameters&& locpos,
59 Amg::MatrixX&& locerr,
60 const Identifier& id,
61 const MuonGM::sTgcReadoutElement* detEl,
62 double positionAlongStrip);
63
65 virtual ~sTgcClusterOnTrack();
66
68 virtual sTgcClusterOnTrack* clone() const override final;
69
71 virtual const sTgcPrepData* prepRawData() const override final;
73
75 virtual const MuonGM::sTgcReadoutElement* detectorElement() const override final;
76
79 virtual const Trk::Surface& associatedSurface() const override final;
80
82 virtual MsgStream& dump( MsgStream& stream) const override final;
83
85 virtual std::ostream& dump( std::ostream& stream) const override final;
86
87 private:
91 virtual void setValues(const Trk::TrkDetElementBase*,
92 const Trk::PrepRawData*) override final;
93
96
98 const MuonGM::sTgcReadoutElement* m_detEl;
99
100 };
101
103 // Inline methods:
105
106
108 {
109 return new sTgcClusterOnTrack(*this);
110 }
111
113 {
114 if (m_rio.isValid()) return m_rio.cachedElement();
115 else return 0;
116 }
117
119 {
120 return m_rio;
121 }
122
124 {
125 return m_detEl;
126 }
127
129 {
130 assert(0!=detectorElement());
131 return detectorElement()->surface(identify());
132 }
133
135 const Trk::PrepRawData* /*rio*/)
136 {
137 // m_rio = dynamic_cast<const sTgcPrepData*>(rio);
138 //assert(0!=m_rio);
139 m_detEl = dynamic_cast<const MuonGM::sTgcReadoutElement*>(detEl);
140 assert(0!=m_detEl);
141 }
142
143}
144
145#endif
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
virtual double positionAlongStrip() const
MuonClusterOnTrack()
Pool constructor.
virtual const MuonGM::sTgcReadoutElement * detectorElement() const override final
Returns the detector element, assoicated with the PRD of this class.
virtual void setValues(const Trk::TrkDetElementBase *, const Trk::PrepRawData *) override final
Sets the DetElement and Trk::PrepRawData pointers after reading from disk.
sTgcClusterOnTrack(const sTgcClusterOnTrack &)
const ElementLinkToIDC_STGC_Container & prepRawDataLink() const
virtual sTgcClusterOnTrack * clone() const override final
Clone this ROT.
sTgcClusterOnTrack & operator=(const sTgcClusterOnTrack &)
virtual ~sTgcClusterOnTrack()
Destructor.
virtual const Trk::Surface & associatedSurface() const override final
Returns the surface on which this measurement was taken.
ElementLinkToIDC_STGC_Container m_rio
PrepRawData object assoicated with this measurement.
const MuonGM::sTgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
virtual const sTgcPrepData * prepRawData() const override final
Returns the sTgcPrepData - is a TRT_DriftCircle in this scope.
Class to represent sTgc measurements.
Identifier identify() const
return the identifier -extends MeasurementBase
Abstract Base Class for tracking surfaces.
This is the base class for all tracking detector elements with read-out relevant information.
STL class.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Ensure that the Athena extensions are properly loaded.
Definition GeoMuonHits.h:27
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Ensure that the ATLAS eigen extensions are properly loaded.
-event-from-file
STL namespace.
ElementLink< Muon::sTgcPrepDataContainer > ElementLinkToIDC_STGC_Container
#define private