ATLAS Offline Software
MuonCalibTgcTruthHit.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 MuonCalibTgcTruthHit_h
10 #define MuonCalibTgcTruthHit_h
11 
12 #include <iostream>
13 
15 
16 namespace MuonCalib {
25  public:
26  MuonCalibTgcTruthHit() = default;
28  MuonCalibTgcTruthHit(const MuonCalibTgcTruthHit& truth) = default;
29  ~MuonCalibTgcTruthHit() = default;
30 
31  MuonCalibTgcTruthHit(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::MuonCalibTgcTruthHit& truth);
52 
53 #endif // MuonCalibTgcTruth_h
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
MuonCalib::MuonCalibTgcTruthHit::operator=
MuonCalibTgcTruthHit & operator=(const MuonCalibTgcTruthHit &rhs)=default
assignment operator
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibTgcTruthHit::~MuonCalibTgcTruthHit
~MuonCalibTgcTruthHit()=default
destructor
MuonCalib::MuonCalibTgcTruthHit::barCode
int barCode() const
retrieve the barcode
Definition: MuonCalibTgcTruthHit.cxx:10
MuonCalib::MuonCalibTgcTruthHit
Definition: MuonCalibTgcTruthHit.h:24
MuonCalib::MuonCalibTgcTruthHit::MuonCalibTgcTruthHit
MuonCalibTgcTruthHit(const MuonCalibTgcTruthHit &truth)=default
copyconstructor
MuonCalib::MuonCalibTgcTruthHit::setBarCode
void setBarCode(int barCode)
sets the barcode
Definition: MuonCalibTgcTruthHit.cxx:14
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
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibTgcTruthHit &truth)
Definition: MuonCalibTgcTruthHit.cxx:29
MuonCalib::MuonCalibTgcTruthHit::setTime
void setTime(double time)
sets the time
Definition: MuonCalibTgcTruthHit.cxx:15
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
MuonFixedId.h
MuonCalib::MuonCalibTgcTruthHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibTgcTruthHit.cxx:9