ATLAS Offline Software
MuonCalibCscTruthHit.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 MuonCalibCscTruthHit_h
10 #define MuonCalibCscTruthHit_h
11 
12 #include <iostream>
13 
15 
16 namespace MuonCalib {
25  public:
26  MuonCalibCscTruthHit() = default;
27  MuonCalibCscTruthHit(const MuonCalibCscTruthHit &truth) = default;
29  ~MuonCalibCscTruthHit() = default;
30 
31  MuonCalibCscTruthHit(MuonFixedId id, int barCode, double time);
32 
33  std::ostream &dump(std::ostream &stream) const;
34 
35  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::MuonCalibCscTruthHit &truth);
52 
53 #endif // MuonCalibCscTruth_h
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
MuonCalib::MuonCalibCscTruthHit::operator=
MuonCalibCscTruthHit & operator=(const MuonCalibCscTruthHit &rhs)=default
assignment operator
MuonCalib::MuonCalibCscTruthHit::m_time
double m_time
time
Definition: MuonCalibCscTruthHit.h:46
MuonCalib::MuonCalibCscTruthHit::MuonCalibCscTruthHit
MuonCalibCscTruthHit(const MuonCalibCscTruthHit &truth)=default
copy constructor
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
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibCscTruthHit &truth)
Definition: MuonCalibCscTruthHit.cxx:28
MuonCalib::MuonCalibCscTruthHit::~MuonCalibCscTruthHit
~MuonCalibCscTruthHit()=default
destructor
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
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibCscTruthHit::barCode
int barCode() const
retrieve the barcode
Definition: MuonCalibCscTruthHit.cxx:19
MuonCalib::MuonCalibCscTruthHit::setTime
void setTime(double time)
sets the time
Definition: MuonCalibCscTruthHit.cxx:24
MuonCalib::MuonCalibCscTruthHit
Definition: MuonCalibCscTruthHit.h:24
MuonFixedId.h