ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonTrigCoinData
src
RpcCoinData.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// TgcCoinData.cxx
7
// Implementation file for class TgcCoinData
9
// (c) ATLAS Detector software
11
12
#include <new>
13
#include "
MuonTrigCoinData/RpcCoinData.h
"
14
#include "GaudiKernel/MsgStream.h"
15
16
namespace
Muon
17
{
18
// Constructor
19
RpcCoinData::RpcCoinData
(
const
Identifier
& stripId,
20
const
IdentifierHash
&idDE,
21
const
Amg::Vector2D
& locpos,
22
const
std::vector<Identifier>& stripList,
23
const
Amg::MatrixX
& locErrMat,
24
const
MuonGM::RpcReadoutElement
* detEl,
25
const
float
time
,
26
const
unsigned
short
ambiguityFlag
,
27
const
unsigned
short
ijk
,
28
const
unsigned
short
threshold
,
29
const
unsigned
short
overlap
,
30
const
unsigned
short
parent_cmId,
31
const
unsigned
short
parent_padId,
32
const
unsigned
short
parent_sectorId,
33
bool
lowPtCm
):
34
RpcPrepData
(stripId, idDE, locpos, stripList, locErrMat, detEl,
time
,
ambiguityFlag
),
35
m_ijk
(
ijk
),
36
m_threshold
(
threshold
),
37
m_overlap
(
overlap
),
38
m_parentCmId
(parent_cmId),
39
m_parentPadId
(parent_padId),
40
m_parentSectorId
(parent_sectorId),
41
m_lowPtCm
(
lowPtCm
)
42
{ }
43
44
// Destructor:
45
RpcCoinData::~RpcCoinData
()
46
=
default
;
47
48
49
// << operator
50
51
MsgStream&
RpcCoinData::dump
( MsgStream& stream)
const
52
{
53
stream << MSG::INFO<<
"RpcCoinData {"
<<std::endl;
54
55
RpcPrepData::dump
(stream);
56
57
stream<<
"ijk = "
<<
ijk
()<<
", "
;
58
stream<<
"threshold = "
<<
threshold
()<<
", "
;
59
stream<<
"overlap = "
<<
overlap
()<<
", "
;
60
stream<<
"parentCmId = "
<<
parentCmId
()<<
", "
;
61
stream<<
"parentPadId = "
<<
parentPadId
()<<
", "
;
62
stream<<
"parentSectorId = "
<<
parentSectorId
()<<
", "
;
63
stream<<
"lowPtCm = "
<<
isLowPtCoin
()<<
", "
;
64
stream<<
"lowPtInputToHighPtCm = "
<<
isLowPtInputToHighPtCm
()<<
", "
;
65
stream<<
"}"
<<
endmsg
;
66
67
return
stream;
68
}
69
70
std::ostream&
RpcCoinData::dump
( std::ostream& stream)
const
71
{
72
stream <<
"RpcCoinData {"
<<std::endl;
73
74
RpcPrepData::dump
(stream);
75
76
stream<<
"ijk = "
<<
ijk
()<<
", "
;
77
stream<<
"threshold = "
<<
threshold
()<<
", "
;
78
stream<<
"overlap = "
<<
overlap
()<<
", "
;
79
stream<<
"parentCmId = "
<<
parentCmId
()<<
", "
;
80
stream<<
"parentPadId = "
<<
parentPadId
()<<
", "
;
81
stream<<
"parentSectorId = "
<<
parentSectorId
()<<
", "
;
82
stream<<
"lowPtCm = "
<<
isLowPtCoin
()<<
", "
;
83
stream<<
"lowPtInputToHighPtCm = "
<<
isLowPtInputToHighPtCm
()<<
", "
;
84
stream<<
"}"
<<std::endl;
85
86
return
stream;
87
}
88
bool
RpcCoinData::isLowPtCoin
()
const
89
{
90
return
m_lowPtCm
&&
m_ijk
== 6;
91
}
92
bool
RpcCoinData::isHighPtCoin
()
const
93
{
94
return
(!
m_lowPtCm
) &&
m_ijk
== 6;
95
}
96
bool
RpcCoinData::isLowPtInputToHighPtCm
()
const
97
{
98
return
m_ijk
== 0;
99
}
100
101
102
}
//end of namespace
103
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
RpcCoinData.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::RpcCoinData::m_parentSectorId
unsigned short m_parentSectorId
Definition
RpcCoinData.h:96
Muon::RpcCoinData::isLowPtInputToHighPtCm
bool isLowPtInputToHighPtCm() const
Definition
RpcCoinData.cxx:96
Muon::RpcCoinData::~RpcCoinData
virtual ~RpcCoinData()
Destructor:
Muon::RpcCoinData::m_lowPtCm
bool m_lowPtCm
Definition
RpcCoinData.h:97
Muon::RpcCoinData::ijk
unsigned short ijk() const
return ijk of the trigger hit (can be 6, 7 or 0)
Definition
RpcCoinData.h:105
Muon::RpcCoinData::m_threshold
unsigned short m_threshold
Definition
RpcCoinData.h:92
Muon::RpcCoinData::threshold
unsigned short threshold() const
return highest threshold for the trigger pattern this hit is contributing
Definition
RpcCoinData.h:108
Muon::RpcCoinData::lowPtCm
bool lowPtCm() const
Definition
RpcCoinData.h:117
Muon::RpcCoinData::dump
virtual MsgStream & dump(MsgStream &stream) const
Dumps information about the RpcCoinData.
Definition
RpcCoinData.cxx:51
Muon::RpcCoinData::m_parentPadId
unsigned short m_parentPadId
Definition
RpcCoinData.h:95
Muon::RpcCoinData::isLowPtCoin
bool isLowPtCoin() const
Low Pt, High Pt or Low Pt input to High Pt CM.
Definition
RpcCoinData.cxx:88
Muon::RpcCoinData::m_parentCmId
unsigned short m_parentCmId
Definition
RpcCoinData.h:94
Muon::RpcCoinData::parentPadId
unsigned short parentPadId() const
Definition
RpcCoinData.h:115
Muon::RpcCoinData::RpcCoinData
RpcCoinData()=default
Public, Copy, operator=, constructor.
Muon::RpcCoinData::parentCmId
unsigned short parentCmId() const
parent ID (online-style) of CM, PAD and Sector
Definition
RpcCoinData.h:114
Muon::RpcCoinData::parentSectorId
unsigned short parentSectorId() const
Definition
RpcCoinData.h:116
Muon::RpcCoinData::m_overlap
unsigned short m_overlap
Definition
RpcCoinData.h:93
Muon::RpcCoinData::isHighPtCoin
bool isHighPtCoin() const
Definition
RpcCoinData.cxx:92
Muon::RpcCoinData::m_ijk
unsigned short m_ijk
Definition
RpcCoinData.h:91
Muon::RpcCoinData::overlap
unsigned short overlap() const
return the overlap flag
Definition
RpcCoinData.h:111
Muon::RpcPrepData::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition
RpcPrepData.cxx:119
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
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
Generated on
for ATLAS Offline Software by
1.17.0