ATLAS Offline Software
MuonCalibRpcTruthHit.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 
7 namespace MuonCalib {
8 
9  const MuonFixedId &MuonCalibRpcTruthHit::identify() const { return m_ID; }
10  int MuonCalibRpcTruthHit::barCode() const { return m_barCode; }
11  double MuonCalibRpcTruthHit::time() const { return m_time; }
12 
15  void MuonCalibRpcTruthHit::setTime(double time) { m_time = time; }
16 
17  MuonCalibRpcTruthHit::MuonCalibRpcTruthHit(MuonFixedId id, int barCode, double time) : m_ID{id}, m_barCode{barCode}, m_time{time} {}
18  std::ostream &MuonCalibRpcTruthHit::dump(std::ostream &stream) const {
19  stream << "MuonCalibRpcTruthHit: " << std::endl;
20  stream << " ID = " << identify() << std::endl;
21  stream << " barCode = " << barCode() << std::endl;
22  stream << " Time = " << time() << std::endl;
23  return stream;
24  }
25 
26 } // end namespace MuonCalib
27 
28 std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRpcTruthHit &truth) { return truth.dump(stream); }
MuonCalib::MuonCalibRpcTruthHit::setTime
void setTime(double time)
sets the time
Definition: MuonCalibRpcTruthHit.cxx:15
MuonCalib::MuonCalibRpcTruthHit::barCode
int barCode() const
retrieve the barcode
Definition: MuonCalibRpcTruthHit.cxx:10
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRpcTruthHit &truth)
Definition: MuonCalibRpcTruthHit.cxx:28
MuonCalib::MuonCalibRpcTruthHit::time
double time() const
retrieve the time
Definition: MuonCalibRpcTruthHit.cxx:11
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRpcTruthHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRpcTruthHit.cxx:9
MuonCalib::MuonCalibRpcTruthHit::m_time
double m_time
time
Definition: MuonCalibRpcTruthHit.h:46
MuonCalib::MuonCalibRpcTruthHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRpcTruthHit
Definition: MuonCalibRpcTruthHit.cxx:18
MuonCalib::MuonCalibRpcTruthHit
Definition: MuonCalibRpcTruthHit.h:24
MuonCalibRpcTruthHit.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRpcTruthHit::setIdentifier
void setIdentifier(MuonFixedId id)
sets the MuonFixedId
Definition: MuonCalibRpcTruthHit.cxx:13
MuonCalib::MuonCalibRpcTruthHit::setBarCode
void setBarCode(int barCode)
sets the barcode
Definition: MuonCalibRpcTruthHit.cxx:14
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibRpcTruthHit::MuonCalibRpcTruthHit
MuonCalibRpcTruthHit()=default
default constructor
MuonCalib::MuonCalibRpcTruthHit::m_ID
MuonFixedId m_ID
identifier of the truth hit, (is a MuonFixedId, not an Identifier)
Definition: MuonCalibRpcTruthHit.h:44
MuonCalib::MuonCalibRpcTruthHit::m_barCode
int m_barCode
barcode
Definition: MuonCalibRpcTruthHit.h:45