ATLAS Offline Software
Loading...
Searching...
No Matches
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>
14#include "GaudiKernel/MsgStream.h"
15
16namespace Muon
17{
18 // Constructor
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),
38 m_parentCmId(parent_cmId),
39 m_parentPadId(parent_padId),
40 m_parentSectorId(parent_sectorId),
42{ }
43
44// Destructor:
46= default;
47
48
49// << operator
50
51MsgStream& 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
70std::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}
89{
90 return m_lowPtCm && m_ijk == 6;
91}
93{
94 return (!m_lowPtCm) && m_ijk == 6;
95}
97{
98 return m_ijk == 0;
99}
100
101
102}//end of namespace
103
#define endmsg
This is a "hash" representation of an Identifier.
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
unsigned short m_parentSectorId
Definition RpcCoinData.h:96
bool isLowPtInputToHighPtCm() const
virtual ~RpcCoinData()
Destructor:
unsigned short ijk() const
return ijk of the trigger hit (can be 6, 7 or 0)
unsigned short m_threshold
Definition RpcCoinData.h:92
unsigned short threshold() const
return highest threshold for the trigger pattern this hit is contributing
bool lowPtCm() const
virtual MsgStream & dump(MsgStream &stream) const
Dumps information about the RpcCoinData.
unsigned short m_parentPadId
Definition RpcCoinData.h:95
bool isLowPtCoin() const
Low Pt, High Pt or Low Pt input to High Pt CM.
unsigned short m_parentCmId
Definition RpcCoinData.h:94
unsigned short parentPadId() const
RpcCoinData()=default
Public, Copy, operator=, constructor.
unsigned short parentCmId() const
parent ID (online-style) of CM, PAD and Sector
unsigned short parentSectorId() const
unsigned short m_overlap
Definition RpcCoinData.h:93
bool isHighPtCoin() const
unsigned short m_ijk
Definition RpcCoinData.h:91
unsigned short overlap() const
return the overlap flag
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
RpcPrepData()=default
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
float time() const
Returns the time.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.