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