ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonRIO_OnTrack
MuonRIO_OnTrack
TgcClusterOnTrack.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//
6
// TgcClusterOnTrack.h
7
// Header file for class TgcClusterOnTrackOnTrack
8
//
9
// (c) ATLAS Detector software
10
//
11
// /** Class to implement Cluster On Track for Si */
12
//
13
// Version 1.0 06/07/2004 Ketevi A. Assamagan
14
// adapted from Veronique Boisvert
15
//
16
17
#ifndef MUONRIOONTRACK_TGCCLUSTERONTRACK_H
18
#define MUONRIOONTRACK_TGCCLUSTERONTRACK_H
19
20
// Base classes
21
#include "
MuonRIO_OnTrack/MuonClusterOnTrack.h
"
22
#include "
MuonPrepRawData/TgcPrepData.h
"
23
// needed classes
24
#include "
MuonPrepRawData/TgcPrepDataContainer.h
"
25
#include "AthLinks/ElementLink.h"
26
27
typedef
ElementLink<Muon::TgcPrepDataContainer>
ElementLinkToIDC_TGC_Container
;
28
29
namespace
MuonGM
30
{
31
class
TgcReadoutElement;
32
}
33
34
namespace
Trk
35
{
36
class
ITrkEventCnvTool
;
37
}
38
39
namespace
Muon
40
{
41
42
class
MuonEventCnvTool
;
43
45
class
TgcClusterOnTrack
:
public
MuonClusterOnTrack
46
{
47
48
public
:
49
friend
class
Trk::ITrkEventCnvTool
;
50
friend
class
Muon::MuonEventCnvTool
;
51
52
TgcClusterOnTrack
();
53
TgcClusterOnTrack
(
const
TgcClusterOnTrack
&);
54
TgcClusterOnTrack
&
operator=
(
const
TgcClusterOnTrack
&);
55
56
65
TgcClusterOnTrack
(
66
const
TgcPrepData
* RIO,
67
Trk::LocalParameters
&& locpos,
68
Amg::MatrixX
&& locerr,
69
double
positionAlongStrip
70
);
71
72
// Alternate constructor that doesn't dereference the RIO link.
73
TgcClusterOnTrack
(
74
const
ElementLinkToIDC_TGC_Container
& RIO,
75
Trk::LocalParameters
&& locpos,
76
Amg::MatrixX
&& locerr,
77
const
Identifier
&
id
,
78
const
MuonGM::TgcReadoutElement
* detEl,
79
double
positionAlongStrip
80
);
81
83
virtual
~TgcClusterOnTrack
();
84
86
virtual
TgcClusterOnTrack
*
clone
()
const
;
87
89
virtual
const
TgcPrepData
*
prepRawData
()
const
;
90
const
ElementLinkToIDC_TGC_Container
&
prepRawDataLink
()
const
;
91
93
virtual
const
MuonGM::TgcReadoutElement
*
detectorElement
()
const
;
94
97
virtual
const
Trk::Surface
&
associatedSurface
()
const
;
98
100
virtual
MsgStream&
dump
( MsgStream& stream)
const
;
101
103
virtual
std::ostream&
dump
( std::ostream& stream)
const
;
104
105
private
:
109
virtual
void
setValues
(
const
Trk::TrkDetElementBase
*,
const
Trk::PrepRawData
*);
110
112
ElementLinkToIDC_TGC_Container
m_rio
;
113
115
const
MuonGM::TgcReadoutElement
*
m_detEl
;
116
117
};
118
120
// Inline methods:
122
123
124
inline
TgcClusterOnTrack
*
TgcClusterOnTrack::clone
()
const
125
{
126
return
new
TgcClusterOnTrack
(*
this
);
127
}
128
129
inline
const
TgcPrepData
*
TgcClusterOnTrack::prepRawData
()
const
130
{
131
if
(
m_rio
.isValid())
return
m_rio
.cachedElement();
132
else
return
0;
133
}
134
135
inline
const
ElementLinkToIDC_TGC_Container
&
TgcClusterOnTrack::prepRawDataLink
()
const
136
{
137
return
m_rio
;
138
}
139
140
inline
const
MuonGM::TgcReadoutElement
*
TgcClusterOnTrack::detectorElement
()
const
141
{
142
return
m_detEl
;
143
}
144
145
inline
const
Trk::Surface
&
TgcClusterOnTrack::associatedSurface
()
const
146
{
147
assert(0!=
detectorElement
());
148
return
detectorElement
()->
surface
(
identify
());
149
}
150
151
inline
void
TgcClusterOnTrack::setValues
(
const
Trk::TrkDetElementBase
* detEl,
152
const
Trk::PrepRawData
*
/*rio*/
)
153
{
154
// m_rio = dynamic_cast<const TgcPrepData*>(rio);
155
//assert(0!=m_rio);
156
m_detEl
=
dynamic_cast<
const
MuonGM::TgcReadoutElement
*
>
(detEl);
157
assert(0!=
m_detEl
);
158
}
159
160
}
161
162
#endif
// MUONRIOONTRACK_MUONCLUSTERONTRACK_H
MuonClusterOnTrack.h
ElementLinkToIDC_TGC_Container
ElementLink< Muon::TgcPrepDataContainer > ElementLinkToIDC_TGC_Container
Definition
TgcClusterOnTrack.h:27
TgcPrepDataContainer.h
TgcPrepData.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::TgcReadoutElement
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/TgcReadoutElement.h:42
Muon::MuonClusterOnTrack::positionAlongStrip
virtual double positionAlongStrip() const
Definition
MuonClusterOnTrack.h:68
Muon::MuonClusterOnTrack::MuonClusterOnTrack
MuonClusterOnTrack()
Pool constructor.
Definition
MuonClusterOnTrack.cxx:12
Muon::MuonEventCnvTool
Tool used in the persisency convertors to help rebuild EDM objects.
Definition
MuonEventCnvTool.h:30
Muon::TgcClusterOnTrack::prepRawDataLink
const ElementLinkToIDC_TGC_Container & prepRawDataLink() const
Definition
TgcClusterOnTrack.h:135
Muon::TgcClusterOnTrack::detectorElement
virtual const MuonGM::TgcReadoutElement * detectorElement() const
Returns the detector element, assoicated with the PRD of this class.
Definition
TgcClusterOnTrack.h:140
Muon::TgcClusterOnTrack::clone
virtual TgcClusterOnTrack * clone() const
Clone this ROT.
Definition
TgcClusterOnTrack.h:124
Muon::TgcClusterOnTrack::TgcClusterOnTrack
TgcClusterOnTrack()
Definition
TgcClusterOnTrack.cxx:22
Muon::TgcClusterOnTrack::setValues
virtual void setValues(const Trk::TrkDetElementBase *, const Trk::PrepRawData *)
Sets the DetElement and Trk::PrepRawData pointers after reading from disk.
Definition
TgcClusterOnTrack.h:151
Muon::TgcClusterOnTrack::m_rio
ElementLinkToIDC_TGC_Container m_rio
PrepRawData object assoicated with this measurement.
Definition
TgcClusterOnTrack.h:112
Muon::TgcClusterOnTrack::m_detEl
const MuonGM::TgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
Definition
TgcClusterOnTrack.h:115
Muon::TgcClusterOnTrack::~TgcClusterOnTrack
virtual ~TgcClusterOnTrack()
Destructor.
Definition
TgcClusterOnTrack.cxx:59
Muon::TgcClusterOnTrack::prepRawData
virtual const TgcPrepData * prepRawData() const
Returns the TgcPrepData - is a TRT_DriftCircle in this scope.
Definition
TgcClusterOnTrack.h:129
Muon::TgcClusterOnTrack::associatedSurface
virtual const Trk::Surface & associatedSurface() const
Returns the surface on which this measurement was taken.
Definition
TgcClusterOnTrack.h:145
Muon::TgcClusterOnTrack::TgcClusterOnTrack
TgcClusterOnTrack(const TgcClusterOnTrack &)
Muon::TgcClusterOnTrack::operator=
TgcClusterOnTrack & operator=(const TgcClusterOnTrack &)
Definition
TgcClusterOnTrack.cxx:65
Muon::TgcPrepData
Class to represent TGC measurements.
Definition
TgcPrepData.h:32
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
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
Generated on
for ATLAS Offline Software by
1.17.0