ATLAS Offline Software
Loading...
Searching...
No Matches
TgcPrepData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TgcPrepPdata.h
7// Header file for class TgcPrepData
9// (c) ATLAS Detector software
11// Class to implement Cluster for Muon - TGC
13// Version 1.0 03/30/2005 Ketevi A. Assamagan
15
16#ifndef MUONPREPRAWDATA_TGCPREPDATA_H
17#define MUONPREPRAWDATA_TGCPREPDATA_H
18
19// Base classes
21#include "TrkSurfaces/Surface.h"
23
25
26namespace Muon
27{
29
31 class TgcPrepData final: public MuonCluster
32 {
33
35 // Public methods:
37 public:
38
39 friend class ::TgcPrepDataContainerCnv;
41
44 TgcPrepData(TgcPrepData &&) noexcept = default;
45 TgcPrepData &operator=(const TgcPrepData &);
46 TgcPrepData &operator=(TgcPrepData &&) noexcept = default;
47
59 const Amg::Vector2D& locpos,
61 const Amg::MatrixX& locErrMat,
62 const MuonGM::TgcReadoutElement* detEl,
63 const uint16_t bcBitMap=0);
64
67 const Amg::Vector2D& locpos,
69 Amg::MatrixX&& locErrMat,
70 const MuonGM::TgcReadoutElement* detEl,
71 const uint16_t bcBitMap=0);
72
73
75 virtual ~TgcPrepData();
76
77 // /////////////////////////////////////////////////////////////////
78 // Virtual methods
79 // /////////////////////////////////////////////////////////////////
80
82 virtual const Amg::Vector3D& globalPosition() const override final;
83
86 virtual const MuonGM::TgcReadoutElement* detectorElement() const override final;
87
88 //** @brief Interface method returning the prdType */
89 virtual Trk::PrepRawDataType prdType() const override {
91 }
92
95 uint16_t getBcBitMap() const;
97
99 void setBcBitMap(const uint16_t);
100
102 virtual MsgStream& dump( MsgStream& stream) const override final;
103
105 virtual std::ostream& dump( std::ostream& stream) const override final;
106
107 private:
108
110 uint16_t m_bcBitMap;
111
112 };
113
114 // /////////////////////////////////////////////////////////////////
115 // Inline methods:
116 // /////////////////////////////////////////////////////////////////
117
118
120 {
121 return m_detEl;
122 }
123 // return globalPosition:
125 {
126 if (not m_globalPosition) {
127 m_globalPosition.set(std::make_unique<const Amg::Vector3D>(
128 m_detEl->surface(identify())
130 }
132 return *m_globalPosition;
133 }
134}
135
136#endif // MUONPREPRAWDATA_TGCPREPDATA_H
137
Eigen::Matrix< double, 3, 1 > Vector3D
This is a "hash" representation of an Identifier.
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
Global position of measurement.
void setBcBitMap(const uint16_t)
set the bcBitMap for this PRD
TgcPrepData(const TgcPrepData &)
const MuonGM::TgcReadoutElement * m_detEl
friend class TgcPrepDataContainerCnv_p1
Definition TgcPrepData.h:40
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
uint16_t getBcBitMap() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
virtual Trk::PrepRawDataType prdType() const override
Interface method returning the prdType.
Definition TgcPrepData.h:89
TgcPrepData(TgcPrepData &&) noexcept=default
virtual const MuonGM::TgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD The pointer will be zero if the det el is not ...
Create derived converter to customize the saving of identifiable container.
class thrown in the event of an variable not being defined.
Definition PrepRawData.h:59
const Amg::Vector2D & localPosition() const
return the local position reference
Identifier identify() const
return the identifier
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const =0
Specified by each surface type: LocalToGlobal method without dynamic memory allocation.
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Matrix< double, 3, 1 > Vector3D
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.