ATLAS Offline Software
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 
16 namespace 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),
33  m_triggerInfo(triggerInfo),
34  m_ambiguityFlag(ambiguityFlag)
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),
51  m_triggerInfo(triggerInfo),
52  m_ambiguityFlag(ambiguityFlag)
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),
66  m_ambiguityFlag(ambiguityFlag){}
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),
80  m_triggerInfo(triggerInfo),
81  m_ambiguityFlag(ambiguityFlag)
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),
98  m_triggerInfo(triggerInfo),
99  m_ambiguityFlag(ambiguityFlag)
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),
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 
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 
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 
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
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
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
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Muon::RpcPrepData::time
float time() const
Returns the time.
Definition: RpcPrepData.h:197
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Muon::RpcPrepData::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition: RpcPrepData.cxx:119
Muon::RpcPrepData::triggerInfo
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
Definition: RpcPrepData.h:207
Muon::MuonCluster::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx:78
Muon::MuonCluster
Class representing clusters in the muon system.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:37
RpcPrepData.h
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
Muon::RpcPrepData::ambiguityFlag
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
Definition: RpcPrepData.h:212
Muon::RpcPrepData::RpcPrepData
RpcPrepData()=default
Identifier
Definition: IdentifierFieldParser.cxx:14