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