ATLAS Offline Software
Loading...
Searching...
No Matches
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>
14#include "GaudiKernel/MsgStream.h"
15
16namespace Muon
17{
18
19
20
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),
35{ }
36
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),
53{ }
54
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),
67
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),
82{ }
83
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),
100{ }
101
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),
114{
115
116}
117
118MsgStream&
119RpcPrepData::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
133std::ostream&
134RpcPrepData::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
#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...
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
float m_time
Float since PRD produced from RDO, and RDO should contain the time calculated from the bcid and the R...
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
int m_ambiguityFlag
Trigger ambiguities.
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
int m_triggerInfo
usually false, unless ijk>5 or highpt&&ijk==0
const MuonGM::RpcReadoutElement * m_detEl
Cached pointer to the detector element - should never be zero.
RpcPrepData()=default
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
float time() const
Returns the time.
float m_timeOverThreshold
time over threshold (BIS78 chips only)
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
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.
STL namespace.