ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonPrepRawData
MuonPrepRawData
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
20
#include "
MuonPrepRawData/MuonCluster.h
"
21
#include "
TrkSurfaces/Surface.h
"
22
#include "
MuonReadoutGeometry/TgcReadoutElement.h
"
23
24
class
TgcPrepDataContainerCnv
;
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;
40
friend
class
TgcPrepDataContainerCnv_p1
;
41
42
TgcPrepData
();
43
TgcPrepData
(
const
TgcPrepData
&);
44
TgcPrepData
(
TgcPrepData
&&) noexcept = default;
45
TgcPrepData
&operator=(
const
TgcPrepData
&);
46
TgcPrepData
&operator=(
TgcPrepData
&&) noexcept = default;
47
57
TgcPrepData
(
const
Identifier
& RDOId,
58
const
IdentifierHash
&idDE,
59
const
Amg
::Vector2D& locpos,
60
const
std
::
vector
<
Identifier
>&
rdoList
,
61
const
Amg
::MatrixX& locErrMat,
62
const
MuonGM
::TgcReadoutElement* detEl,
63
const
uint16_t bcBitMap=0);
64
65
TgcPrepData
(
const
Identifier
& RDOId,
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
88
//** @brief Interface method returning the prdType */
89
virtual
Trk
::
PrepRawDataType
prdType
()
const override
{
90
return
Trk::PrepRawDataType::TgcPrepData
;
91
}
92
95
uint16_t
getBcBitMap
()
const
;
96
enum
{
BCBIT_UNDEFINED
=0,
BCBIT_NEXT
=1,
BCBIT_CURRENT
=2,
BCBIT_PREVIOUS
=4};
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
109
const
MuonGM::TgcReadoutElement
*
m_detEl
;
110
uint16_t
m_bcBitMap
;
111
112
};
113
114
// /////////////////////////////////////////////////////////////////
115
// Inline methods:
116
// /////////////////////////////////////////////////////////////////
117
118
119
inline
const
MuonGM::TgcReadoutElement
*
TgcPrepData::detectorElement
()
const
120
{
121
return
m_detEl
;
122
}
123
// return globalPosition:
124
inline
const
Amg::Vector3D
&
TgcPrepData::globalPosition
()
const
125
{
126
if
(not
m_globalPosition
) {
127
m_globalPosition
.set(std::make_unique<const Amg::Vector3D>(
128
m_detEl
->surface(
identify
())
129
.
Trk::Surface::localToGlobal
(
localPosition
())));
130
}
131
if
(not
m_globalPosition
)
throw
Trk::PrepRawDataUndefinedVariable
();
132
return
*
m_globalPosition
;
133
}
134
}
135
136
#endif
// MUONPREPRAWDATA_TGCPREPDATA_H
137
TgcReadoutElement.h
MuonCluster.h
PrepRawDataType
PrepRawDataType
Definition
PrepRawData.h:39
Surface.h
Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
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::MuonCluster::MuonCluster
MuonCluster()
Default constructor.
Definition
MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx:41
Muon::MuonCluster::m_globalPosition
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
Global position of measurement.
Definition
MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:89
Muon::TgcPrepDataContainerCnv_p1
Definition
TgcPrepDataContainerCnv_p1.h:27
Muon::TgcPrepData::setBcBitMap
void setBcBitMap(const uint16_t)
set the bcBitMap for this PRD
Definition
TgcPrepData.cxx:80
Muon::TgcPrepData::TgcPrepData
TgcPrepData(const TgcPrepData &)
Muon::TgcPrepData::m_detEl
const MuonGM::TgcReadoutElement * m_detEl
Definition
TgcPrepData.h:109
Muon::TgcPrepData::TgcPrepDataContainerCnv_p1
friend class TgcPrepDataContainerCnv_p1
Definition
TgcPrepData.h:40
Muon::TgcPrepData::m_bcBitMap
uint16_t m_bcBitMap
Definition
TgcPrepData.h:110
Muon::TgcPrepData::globalPosition
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
Definition
TgcPrepData.h:124
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
Muon::TgcPrepData::prdType
virtual Trk::PrepRawDataType prdType() const override
Interface method returning the prdType.
Definition
TgcPrepData.h:89
Muon::TgcPrepData::TgcPrepData
TgcPrepData()
Definition
TgcPrepData.cxx:52
Muon::TgcPrepData::TgcPrepData
TgcPrepData(TgcPrepData &&) noexcept=default
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:119
Muon::TgcPrepData::BCBIT_NEXT
@ BCBIT_NEXT
Definition
TgcPrepData.h:96
Muon::TgcPrepData::BCBIT_UNDEFINED
@ BCBIT_UNDEFINED
Definition
TgcPrepData.h:96
Muon::TgcPrepData::BCBIT_PREVIOUS
@ BCBIT_PREVIOUS
Definition
TgcPrepData.h:96
Muon::TgcPrepData::BCBIT_CURRENT
@ BCBIT_CURRENT
Definition
TgcPrepData.h:96
TgcPrepDataContainerCnv
Create derived converter to customize the saving of identifiable container.
Definition
TgcPrepDataContainerCnv.h:29
Trk::PrepRawDataUndefinedVariable
class thrown in the event of an variable not being defined.
Definition
PrepRawData.h:59
Trk::PrepRawData::localPosition
const Amg::Vector2D & localPosition() const
return the local position reference
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Trk::PrepRawData::rdoList
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
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.
vector
Definition
MultiHisto.h:13
const
Amg
Definition of ATLAS Math & Geometry primitives (Amg).
Definition
AmgStringHelpers.h:19
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
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
Trk::PrepRawDataType::TgcPrepData
@ TgcPrepData
Definition
PrepRawData.h:51
dump
-event-from-file
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0