ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonRIO_OnTrack
MuonRIO_OnTrack
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
9
#include "
MuonRIO_OnTrack/MuonClusterOnTrack.h
"
10
#include "
MuonPrepRawData/sTgcPrepData.h
"
11
// needed classes
12
#include "
MuonPrepRawData/sTgcPrepDataContainer.h
"
13
#include "AthLinks/ElementLink.h"
14
15
using
ElementLinkToIDC_STGC_Container
=
ElementLink<Muon::sTgcPrepDataContainer>
;
16
17
class
STGC_ClusterOnTrackCnv_p1
;
18
19
20
namespace
Trk
21
{
22
class
ITrkEventCnvTool;
23
}
24
25
namespace
Muon
26
{
27
29
class
sTgcClusterOnTrack
final:
public
MuonClusterOnTrack
30
{
31
32
public
:
33
friend
class
Trk::ITrkEventCnvTool
;
34
friend
class ::STGC_ClusterOnTrackCnv_p1;
35
36
sTgcClusterOnTrack
();
37
sTgcClusterOnTrack
(
const
sTgcClusterOnTrack
&);
38
sTgcClusterOnTrack
&
operator=
(
const
sTgcClusterOnTrack
&);
39
48
sTgcClusterOnTrack
(
49
const
sTgcPrepData
* RIO,
50
Trk::LocalParameters
&& locpos,
51
Amg::MatrixX
&& locerr,
52
double
positionAlongStrip
53
);
54
55
// Alternate constructor that doesn't dereference the RIO link.
56
sTgcClusterOnTrack
(
57
const
ElementLinkToIDC_STGC_Container
& RIO,
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;
72
const
ElementLinkToIDC_STGC_Container
&
prepRawDataLink
()
const
;
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
95
ElementLinkToIDC_STGC_Container
m_rio
;
96
98
const
MuonGM
::sTgcReadoutElement*
m_detEl
;
99
100
};
101
103
// Inline methods:
105
106
107
inline
sTgcClusterOnTrack
*
sTgcClusterOnTrack
::
clone
()
const
108
{
109
return
new
sTgcClusterOnTrack
(*
this
);
110
}
111
112
inline
const
sTgcPrepData
*
sTgcClusterOnTrack::prepRawData
()
const
113
{
114
if
(
m_rio
.isValid())
return
m_rio
.cachedElement();
115
else
return
0;
116
}
117
118
inline
const
ElementLinkToIDC_STGC_Container
&
sTgcClusterOnTrack::prepRawDataLink
()
const
119
{
120
return
m_rio
;
121
}
122
123
inline
const
MuonGM::sTgcReadoutElement
*
sTgcClusterOnTrack::detectorElement
()
const
124
{
125
return
m_detEl
;
126
}
127
128
inline
const
Trk::Surface
&
sTgcClusterOnTrack::associatedSurface
()
const
129
{
130
assert(0!=
detectorElement
());
131
return
detectorElement
()->
surface
(
identify
());
132
}
133
134
inline
void
sTgcClusterOnTrack::setValues
(
const
Trk::TrkDetElementBase
* detEl,
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
MuonClusterOnTrack.h
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
MuonGM::MuonClusterReadoutElement::surface
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
Definition
MuonClusterReadoutElement.h:123
MuonGM::sTgcReadoutElement
An sTgcReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station c...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/sTgcReadoutElement.h:30
Muon::MuonClusterOnTrack::positionAlongStrip
virtual double positionAlongStrip() const
Definition
MuonClusterOnTrack.h:68
Muon::MuonClusterOnTrack::MuonClusterOnTrack
MuonClusterOnTrack()
Pool constructor.
Definition
MuonClusterOnTrack.cxx:12
Muon::sTgcClusterOnTrack::detectorElement
virtual const MuonGM::sTgcReadoutElement * detectorElement() const override final
Returns the detector element, assoicated with the PRD of this class.
Definition
sTgcClusterOnTrack.h:123
Muon::sTgcClusterOnTrack::setValues
virtual void setValues(const Trk::TrkDetElementBase *, const Trk::PrepRawData *) override final
Sets the DetElement and Trk::PrepRawData pointers after reading from disk.
Definition
sTgcClusterOnTrack.h:134
Muon::sTgcClusterOnTrack::sTgcClusterOnTrack
sTgcClusterOnTrack()
Definition
sTgcClusterOnTrack.cxx:12
Muon::sTgcClusterOnTrack::sTgcClusterOnTrack
sTgcClusterOnTrack(const sTgcClusterOnTrack &)
Muon::sTgcClusterOnTrack::prepRawDataLink
const ElementLinkToIDC_STGC_Container & prepRawDataLink() const
Definition
sTgcClusterOnTrack.h:118
Muon::sTgcClusterOnTrack::clone
virtual sTgcClusterOnTrack * clone() const override final
Clone this ROT.
Definition
sTgcClusterOnTrack.h:107
Muon::sTgcClusterOnTrack::operator=
sTgcClusterOnTrack & operator=(const sTgcClusterOnTrack &)
Definition
sTgcClusterOnTrack.cxx:56
Muon::sTgcClusterOnTrack::~sTgcClusterOnTrack
virtual ~sTgcClusterOnTrack()
Destructor.
Definition
sTgcClusterOnTrack.cxx:50
Muon::sTgcClusterOnTrack::associatedSurface
virtual const Trk::Surface & associatedSurface() const override final
Returns the surface on which this measurement was taken.
Definition
sTgcClusterOnTrack.h:128
Muon::sTgcClusterOnTrack::m_rio
ElementLinkToIDC_STGC_Container m_rio
PrepRawData object assoicated with this measurement.
Definition
sTgcClusterOnTrack.h:95
Muon::sTgcClusterOnTrack::m_detEl
const MuonGM::sTgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Definition
sTgcClusterOnTrack.h:98
Muon::sTgcClusterOnTrack::prepRawData
virtual const sTgcPrepData * prepRawData() const override final
Returns the sTgcPrepData - is a TRT_DriftCircle in this scope.
Definition
sTgcClusterOnTrack.h:112
Muon::sTgcPrepData
Class to represent sTgc measurements.
Definition
sTgcPrepData.h:20
STGC_ClusterOnTrackCnv_p1
Definition
STGC_ClusterOnTrackCnv_p1.h:31
Trk::ITrkEventCnvTool
Definition
ITrkEventCnvTool.h:31
Trk::LocalParameters
Definition
LocalParameters.h:100
Trk::PrepRawData
Definition
PrepRawData.h:62
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition
RIO_OnTrack.h:152
Trk::Surface
Abstract Base Class for tracking surfaces.
Definition
Surface.h:79
Trk::TrkDetElementBase
This is the base class for all tracking detector elements with read-out relevant information.
Definition
TrkDetElementBase.h:52
ostream
STL class.
const
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Identifier
Definition
IdentifierFieldParser.cxx:14
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition
GeoMuonHits.h:27
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
dump
-event-from-file
std
STL namespace.
ElementLinkToIDC_STGC_Container
ElementLink< Muon::sTgcPrepDataContainer > ElementLinkToIDC_STGC_Container
Definition
sTgcClusterOnTrack.h:15
sTgcPrepDataContainer.h
sTgcPrepData.h
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0