ATLAS Offline Software
MuonCalibRpcTruthHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //*********************************************************//
6 // Class to store truth information in //
7 //*********************************************************//
8 
9 #ifndef MuonCalibRpcTruthHit_h
10 #define MuonCalibRpcTruthHit_h
11 
12 #include <iostream>
13 
15 
16 namespace MuonCalib {
25  public:
26  MuonCalibRpcTruthHit() = default;
27  MuonCalibRpcTruthHit(const MuonCalibRpcTruthHit& truth) = default;
28  ~MuonCalibRpcTruthHit() = default;
30 
31  MuonCalibRpcTruthHit(MuonFixedId id, int barCode, double time);
32 
33  std::ostream& dump(std::ostream& stream) const;
34 
35  const MuonFixedId& identify() const;
36  int barCode() const;
37  double time() const;
38 
39  void setIdentifier(MuonFixedId id);
40  void setBarCode(int barCode);
41  void setTime(double time);
42 
43  private:
45  int m_barCode{0};
46  double m_time{0.};
47  };
48 
49 } // namespace MuonCalib
50 
51 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRpcTruthHit& truth);
52 
53 #endif // MuonCalibRpcTruth_h
MuonCalib::MuonCalibRpcTruthHit::operator=
MuonCalibRpcTruthHit & operator=(const MuonCalibRpcTruthHit &rhs)=default
assignment operator
MuonCalib::MuonCalibRpcTruthHit::setTime
void setTime(double time)
sets the time
Definition: MuonCalibRpcTruthHit.cxx:15
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRpcTruthHit &truth)
Definition: MuonCalibRpcTruthHit.cxx:28
MuonCalib::MuonCalibRpcTruthHit::barCode
int barCode() const
retrieve the barcode
Definition: MuonCalibRpcTruthHit.cxx:10
MuonCalib::MuonCalibRpcTruthHit::~MuonCalibRpcTruthHit
~MuonCalibRpcTruthHit()=default
destructor
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
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
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibRpcTruthHit::MuonCalibRpcTruthHit
MuonCalibRpcTruthHit()=default
default constructor
MuonCalib::MuonCalibRpcTruthHit::MuonCalibRpcTruthHit
MuonCalibRpcTruthHit(const MuonCalibRpcTruthHit &truth)=default
copyconstructor
MuonCalib::MuonCalibRpcTruthHit::m_ID
MuonFixedId m_ID
identifier of the truth hit, (is a MuonFixedId, not an Identifier)
Definition: MuonCalibRpcTruthHit.h:44
MuonFixedId.h
MuonCalib::MuonCalibRpcTruthHit::m_barCode
int m_barCode
barcode
Definition: MuonCalibRpcTruthHit.h:45