ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonPrepRawData
src
RpcPrepData.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// RpcPrepData.cxx
7
// Implementation file for class RpcPrepData
9
10
11
#include <new>
12
#include <sstream>
13
#include "
MuonPrepRawData/RpcPrepData.h
"
14
#include "GaudiKernel/MsgStream.h"
15
16
namespace
Muon
17
{
18
19
20
21
RpcPrepData::RpcPrepData
(
const
Identifier
& RDOId,
22
const
IdentifierHash
&idDE,
23
const
Amg::Vector2D
& locpos,
24
const
std::vector<Identifier>&
rdoList
,
25
const
Amg::MatrixX
& locErrMat,
26
const
MuonGM::RpcReadoutElement
* detEl,
27
const
float
time
,
28
const
int
triggerInfo
,
29
const
int
ambiguityFlag
) :
30
MuonCluster
(RDOId, idDE, locpos,
rdoList
, locErrMat),
//call base class constructor
31
m_detEl
(detEl),
32
m_time
(
time
),
33
m_triggerInfo
(
triggerInfo
),
34
m_ambiguityFlag
(
ambiguityFlag
)
35
{ }
36
37
RpcPrepData::RpcPrepData
(
const
Identifier
& RDOId,
38
const
IdentifierHash
&idDE,
39
const
Amg::Vector2D
& locpos,
40
const
std::vector<Identifier>&
rdoList
,
41
const
Amg::MatrixX
& locErrMat,
42
const
MuonGM::RpcReadoutElement
* detEl,
43
const
float
time
,
44
const
float
timeOverThresh,
45
const
int
triggerInfo
,
46
const
int
ambiguityFlag
) :
47
MuonCluster
(RDOId, idDE, locpos,
rdoList
, locErrMat),
//call base class constructor
48
m_detEl
(detEl),
49
m_time
(
time
),
50
m_timeOverThreshold
(timeOverThresh),
51
m_triggerInfo
(
triggerInfo
),
52
m_ambiguityFlag
(
ambiguityFlag
)
53
{ }
54
55
RpcPrepData::RpcPrepData
(
const
Identifier
& RDOId,
56
const
IdentifierHash
&idDE,
57
const
Amg::Vector2D
& locpos,
58
const
std::vector<Identifier>&
rdoList
,
59
const
Amg::MatrixX
& locErrMat,
60
const
MuonGM::RpcReadoutElement
* detEl,
61
const
float
time
,
62
const
int
ambiguityFlag
) :
63
MuonCluster
(RDOId, idDE, locpos,
rdoList
, locErrMat),
//call base class constructor
64
m_detEl
(detEl),
65
m_time
(
time
),
66
m_ambiguityFlag
(
ambiguityFlag
){}
67
68
RpcPrepData::RpcPrepData
(
const
Identifier
& RDOId,
69
const
IdentifierHash
&idDE,
70
const
Amg::Vector2D
& locpos,
71
std::vector<Identifier>&&
rdoList
,
72
Amg::MatrixX
&& locErrMat,
73
const
MuonGM::RpcReadoutElement
* detEl,
74
const
float
time
,
75
const
int
triggerInfo
,
76
const
int
ambiguityFlag
) :
77
MuonCluster
(RDOId, idDE, locpos,
std
::move(
rdoList
),
std
::move(locErrMat)),
//call base class constructor
78
m_detEl
(detEl),
79
m_time
(
time
),
80
m_triggerInfo
(
triggerInfo
),
81
m_ambiguityFlag
(
ambiguityFlag
)
82
{ }
83
84
RpcPrepData::RpcPrepData
(
const
Identifier
& RDOId,
85
const
IdentifierHash
&idDE,
86
const
Amg::Vector2D
& locpos,
87
std::vector<Identifier>&&
rdoList
,
88
Amg::MatrixX
&& locErrMat,
89
const
MuonGM::RpcReadoutElement
* detEl,
90
const
float
time
,
91
const
float
timeOverThresh,
92
const
int
triggerInfo
,
93
const
int
ambiguityFlag
) :
94
MuonCluster
(RDOId, idDE, locpos,
std
::move(
rdoList
),
std
::move(locErrMat)),
//call base class constructor
95
m_detEl
(detEl),
96
m_time
(
time
),
97
m_timeOverThreshold
(timeOverThresh),
98
m_triggerInfo
(
triggerInfo
),
99
m_ambiguityFlag
(
ambiguityFlag
)
100
{ }
101
102
RpcPrepData::RpcPrepData
(
const
Identifier
& RDOId,
103
const
IdentifierHash
&idDE,
104
const
Amg::Vector2D
& locpos,
105
std::vector<Identifier>&&
rdoList
,
106
Amg::MatrixX
&& locErrMat,
107
const
MuonGM::RpcReadoutElement
* detEl,
108
const
float
time
,
109
const
int
ambiguityFlag
) :
110
MuonCluster
(RDOId, idDE, locpos,
std
::move(
rdoList
),
std
::move(locErrMat)),
//call base class constructor
111
m_detEl
(detEl),
112
m_time
(
time
),
113
m_ambiguityFlag
(
ambiguityFlag
)
114
{
115
116
}
117
118
MsgStream&
119
RpcPrepData::dump
( MsgStream& stream)
const
120
{
121
stream << MSG::INFO<<
"RpcPrepData {"
<<std::endl;
122
123
MuonCluster::dump
(stream);
124
125
stream <<
"time = "
<<this->
time
()<<
", "
;
126
stream<<
"triggerInfo = "
<<this->
triggerInfo
()<<
", "
;
127
stream<<
"ambiguityFlag = "
<<this->
ambiguityFlag
()<<
", "
;
128
stream<<
"}"
<<
endmsg
;
129
130
return
stream;
131
}
132
133
std::ostream&
134
RpcPrepData::dump
( std::ostream& stream)
const
135
{
136
stream <<
"RpcPrepData {"
<<std::endl;
137
138
MuonCluster::dump
(stream);
139
std::stringstream s;
140
s << std::setiosflags(std::ios::fixed);
141
s << std::setprecision(4);
142
s <<
"time = "
<<this->
time
()<<
", "
;
143
s <<
"triggerInfo = "
<<this->
triggerInfo
()<<
", "
;
144
s <<
"ambiguityFlag = "
<<this->
ambiguityFlag
()<<
", "
;
145
s <<
"}"
<<std::endl;
146
stream << s.str();
147
148
return
stream;
149
}
150
//end of classdef
151
}
//end of ns
152
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
RpcPrepData.h
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
MuonGM::RpcReadoutElement
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/RpcReadoutElement.h:55
Muon::MuonCluster::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition
MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx:69
Muon::MuonCluster::MuonCluster
MuonCluster()
Default constructor.
Definition
MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx:41
Muon::RpcPrepData::m_time
float m_time
Float since PRD produced from RDO, and RDO should contain the time calculated from the bcid and the R...
Definition
RpcPrepData.h:172
Muon::RpcPrepData::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition
RpcPrepData.cxx:119
Muon::RpcPrepData::m_ambiguityFlag
int m_ambiguityFlag
Trigger ambiguities.
Definition
RpcPrepData.h:186
Muon::RpcPrepData::triggerInfo
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
Definition
RpcPrepData.h:206
Muon::RpcPrepData::m_triggerInfo
int m_triggerInfo
usually false, unless ijk>5 or highpt&&ijk==0
Definition
RpcPrepData.h:181
Muon::RpcPrepData::m_detEl
const MuonGM::RpcReadoutElement * m_detEl
Cached pointer to the detector element - should never be zero.
Definition
RpcPrepData.h:168
Muon::RpcPrepData::RpcPrepData
RpcPrepData()=default
Muon::RpcPrepData::ambiguityFlag
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
Definition
RpcPrepData.h:211
Muon::RpcPrepData::time
float time() const
Returns the time.
Definition
RpcPrepData.h:196
Muon::RpcPrepData::m_timeOverThreshold
float m_timeOverThreshold
time over threshold (BIS78 chips only)
Definition
RpcPrepData.h:177
Trk::PrepRawData::rdoList
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
Identifier
Definition
IdentifierFieldParser.cxx:14
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0