ATLAS Offline Software
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 
26 namespace Muon
27 {
28  class TgcPrepDataContainerCnv_p1;
29 
31  class TgcPrepData final: public MuonCluster
32  {
33 
35  // Public methods:
37  public:
38 
39  friend class ::TgcPrepDataContainerCnv;
41 
42  TgcPrepData();
45  TgcPrepData &operator=(const TgcPrepData &);
46  TgcPrepData &operator=(TgcPrepData &&) noexcept = default;
47 
58  const IdentifierHash &idDE,
59  const Amg::Vector2D& locpos,
61  const Amg::MatrixX& locErrMat,
62  const MuonGM::TgcReadoutElement* detEl,
63  const uint16_t bcBitMap=0);
64 
66  const IdentifierHash &idDE,
67  const Amg::Vector2D& locpos,
68  std::vector<Identifier>&& rdoList,
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 
89  virtual bool type(Trk::PrepRawDataType type) const override final
90  {
92  }
93 
96  uint16_t getBcBitMap() const;
98 
100  void setBcBitMap(const uint16_t);
101 
103  virtual MsgStream& dump( MsgStream& stream) const override final;
104 
106  virtual std::ostream& dump( std::ostream& stream) const override final;
107 
108  private:
109 
112 
113  };
114 
115  // /////////////////////////////////////////////////////////////////
116  // Inline methods:
117  // /////////////////////////////////////////////////////////////////
118 
119 
121  {
122  return m_detEl;
123  }
124  // return globalPosition:
126  {
127  if (not m_globalPosition) {
128  m_globalPosition.set(std::make_unique<const Amg::Vector3D>(
131  }
133  return *m_globalPosition;
134  }
135 }
136 
137 #endif // MUONPREPRAWDATA_TGCPREPDATA_H
138 
MuonCluster.h
Muon::TgcPrepData::TgcPrepData
TgcPrepData(const TgcPrepData &)
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
Trk::PrepRawDataType
PrepRawDataType
Definition: PrepRawData.h:39
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
Trk::PrepRawDataType::TgcPrepData
@ TgcPrepData
Surface.h
Muon::TgcPrepData::TgcPrepData
TgcPrepData()
Definition: TgcPrepData.cxx:52
Muon::TgcPrepData::BCBIT_PREVIOUS
@ BCBIT_PREVIOUS
Definition: TgcPrepData.h:97
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
TgcPrepDataContainerCnv
Create derived converter to customize the saving of identifiable container.
Definition: TgcPrepDataContainerCnv.h:29
Muon::TgcPrepData::dump
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
Definition: TgcPrepData.cxx:85
Trk::PrepRawData::rdoList
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
Muon::TgcPrepData::detectorElement
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 ...
Definition: TgcPrepData.h:120
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
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
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Muon::TgcPrepData::BCBIT_CURRENT
@ BCBIT_CURRENT
Definition: TgcPrepData.h:97
Muon::TgcPrepData::getBcBitMap
uint16_t getBcBitMap() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
Definition: TgcPrepData.cxx:75
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
vector
Definition: MultiHisto.h:13
Muon::TgcPrepData::m_detEl
const MuonGM::TgcReadoutElement * m_detEl
Definition: TgcPrepData.h:110
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::TgcPrepData::BCBIT_NEXT
@ BCBIT_NEXT
Definition: TgcPrepData.h:97
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Muon::TgcPrepData::setBcBitMap
void setBcBitMap(const uint16_t)
set the bcBitMap for this PRD
Definition: TgcPrepData.cxx:80
Amg
Definition of ATLAS Math & Geometry primitives (Amg)
Definition: AmgStringHelpers.h:19
Trk::PrepRawData::localPosition
const Amg::Vector2D & localPosition() const
return the local position reference
Muon::TgcPrepData::BCBIT_UNDEFINED
@ BCBIT_UNDEFINED
Definition: TgcPrepData.h:97
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Muon::TgcPrepDataContainerCnv_p1
Definition: TgcPrepDataContainerCnv_p1.h:28
Muon::TgcPrepData::type
virtual bool type(Trk::PrepRawDataType type) const override final
Interface method checking the type.
Definition: TgcPrepData.h:89
Muon::MuonCluster::m_globalPosition
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
Global position of measurement.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:96
Muon::TgcPrepData
Class to represent TGC measurements.
Definition: TgcPrepData.h:32
Muon::MuonCluster
Class representing clusters in the muon system.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:37
TgcReadoutElement.h
Muon::TgcPrepData::globalPosition
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
Definition: TgcPrepData.h:125
Muon::TgcPrepData::TgcPrepData
TgcPrepData(TgcPrepData &&) noexcept=default
Muon::TgcPrepData::m_bcBitMap
uint16_t m_bcBitMap
Definition: TgcPrepData.h:111
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
IdentifierHash
Definition: IdentifierHash.h:38
Trk::Surface::localToGlobal
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.
Trk::PrepRawDataUndefinedVariable
class thrown in the event of an variable not being defined.
Definition: PrepRawData.h:59