ATLAS Offline Software
Loading...
Searching...
No Matches
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
23// needed classes
25#include "AthLinks/ElementLink.h"
26
28
29namespace MuonGM
30{
31 class TgcReadoutElement;
32}
33
34namespace Trk
35{
36 class ITrkEventCnvTool;
37}
38
39namespace Muon
40{
41
43
46{
47
48public:
51
55
56
66 const TgcPrepData* RIO,
67 Trk::LocalParameters&& locpos,
68 Amg::MatrixX&& locerr,
70 );
71
72 // Alternate constructor that doesn't dereference the RIO link.
75 Trk::LocalParameters&& locpos,
76 Amg::MatrixX&& locerr,
77 const Identifier& id,
78 const MuonGM::TgcReadoutElement* detEl,
80 );
81
83 virtual ~TgcClusterOnTrack();
84
86 virtual TgcClusterOnTrack* clone() const ;
87
89 virtual const TgcPrepData* prepRawData() 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
105private:
109 virtual void setValues(const Trk::TrkDetElementBase*, const Trk::PrepRawData*);
110
113
116
117};
118
120// Inline methods:
122
123
125{
126 return new TgcClusterOnTrack(*this);
127}
128
130{
131 if (m_rio.isValid()) return m_rio.cachedElement();
132 else return 0;
133}
134
139
141{
142 return m_detEl;
143}
144
146{
147 assert(0!=detectorElement());
148 return detectorElement()->surface(identify());
149}
150
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
ElementLink< Muon::TgcPrepDataContainer > ElementLinkToIDC_TGC_Container
Class to implement Cluster On Track for Si.
virtual const Trk::PlaneSurface & surface() const override
access to chamber surface (phi orientation), uses the first gas gap
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
virtual double positionAlongStrip() const
MuonClusterOnTrack()
Pool constructor.
Tool used in the persisency convertors to help rebuild EDM objects.
const ElementLinkToIDC_TGC_Container & prepRawDataLink() const
virtual const MuonGM::TgcReadoutElement * detectorElement() const
Returns the detector element, assoicated with the PRD of this class.
virtual TgcClusterOnTrack * clone() const
Clone this ROT.
virtual void setValues(const Trk::TrkDetElementBase *, const Trk::PrepRawData *)
Sets the DetElement and Trk::PrepRawData pointers after reading from disk.
ElementLinkToIDC_TGC_Container m_rio
PrepRawData object assoicated with this measurement.
const MuonGM::TgcReadoutElement * m_detEl
The detector element, assoicated with this measurement.
virtual ~TgcClusterOnTrack()
Destructor.
virtual const TgcPrepData * prepRawData() const
Returns the TgcPrepData - is a TRT_DriftCircle in this scope.
virtual const Trk::Surface & associatedSurface() const
Returns the surface on which this measurement was taken.
TgcClusterOnTrack(const TgcClusterOnTrack &)
TgcClusterOnTrack & operator=(const TgcClusterOnTrack &)
Class to represent TGC measurements.
Definition TgcPrepData.h:32
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.
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