ATLAS Offline Software
MuonCalibRawMdtHit.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 #ifndef MuonCalibRawMdtHit_h
6 #define MuonCalibRawMdtHit_h
7 
10 
11 namespace MuonCalib {
23  public:
24  MuonCalibRawMdtHit() = default;
25  MuonCalibRawMdtHit(const MuonCalibRawMdtHit &hit) = default;
27  ~MuonCalibRawMdtHit() = default;
28 
29  MuonCalibRawMdtHit(const MuonFixedId &id, const Amg::Vector3D &loc, const Amg::Vector3D &glob,
30  int occ);
31 
32  std::ostream &dump(std::ostream &stream) const;
33 
34  const MuonFixedId &identify() const;
35  const Amg::Vector3D &localPosition() const;
36  const Amg::Vector3D &globalPosition() const;
37  int adcCount() const;
38  int tdcCount() const;
39  int occupancy() const;
40  double driftTime() const;
41  double driftRadius() const;
42  double driftRadiusError() const;
43 
44  void setId(MuonFixedId Id);
45  void setLocalPosition(const Amg::Vector3D &loc);
46  void setGlobalPosition(const Amg::Vector3D &glob);
47  void setAdc(int adc);
48  void setTdc(int tdc);
49  void setOccupancy(int occ);
50  void setDriftTime(double t);
51  void setDriftRadius(double r);
52  void setDriftRadiusError(double dr);
53 
54  private:
56  Amg::Vector3D m_Lpos{0., 0., 0.};
57  Amg::Vector3D m_Gpos{0., 0., 0.};
58  int m_adc{0};
59  int m_tdc{0};
60  int m_occupancy{0};
61  double m_t{0.};
62  double m_r{0.};
63  double m_dr{0.};
64  };
65 
66 } // namespace MuonCalib
67 
68 std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawMdtHit &rawHit);
69 
70 #endif // MuonCalibRawMdtHit_h
MuonCalib::MuonCalibRawMdtHit::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position expressed in local (station) coordinates
Definition: MuonCalibRawMdtHit.cxx:12
MuonCalib::MuonCalibRawMdtHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawMdtHit.cxx:13
MuonCalib::MuonCalibRawMdtHit::m_tdc
int m_tdc
TDC count.
Definition: MuonCalibRawMdtHit.h:59
MuonCalib::MuonCalibRawMdtHit::tdcCount
int tdcCount() const
retrieve tdc counts
Definition: MuonCalibRawMdtHit.cxx:15
beamspotman.r
def r
Definition: beamspotman.py:676
MuonCalib::MuonCalibRawMdtHit::m_id
MuonFixedId m_id
identifier of the raw hit, (is a MuonFixedId, not an Identifier)
Definition: MuonCalibRawMdtHit.h:55
python.TurnDataReader.dr
dr
Definition: TurnDataReader.py:112
MuonCalib::MuonCalibRawMdtHit::m_Lpos
Amg::Vector3D m_Lpos
position of the hit in local (station) coordinates
Definition: MuonCalibRawMdtHit.h:56
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRawMdtHit::m_adc
int m_adc
ADC count.
Definition: MuonCalibRawMdtHit.h:58
MuonCalib::MuonCalibRawMdtHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition: MuonCalibRawMdtHit.cxx:20
MuonCalib::MuonCalibRawMdtHit::m_Gpos
Amg::Vector3D m_Gpos
position of the hit in global coordinates
Definition: MuonCalibRawMdtHit.h:57
MuonCalib::MuonCalibRawMdtHit
Definition: MuonCalibRawMdtHit.h:22
GeoPrimitives.h
MuonCalib::MuonCalibRawMdtHit::m_r
double m_r
drift radius
Definition: MuonCalibRawMdtHit.h:62
MuonCalib::MuonCalibRawMdtHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition: MuonCalibRawMdtHit.cxx:22
MuonCalib::MuonCalibRawMdtHit::setDriftRadiusError
void setDriftRadiusError(double dr)
sets the error on the drift radius
Definition: MuonCalibRawMdtHit.cxx:28
MuonCalib::MuonCalibRawMdtHit::setDriftTime
void setDriftTime(double t)
sets the drift time
Definition: MuonCalibRawMdtHit.cxx:26
MuonCalib::MuonCalibRawMdtHit::m_t
double m_t
drift time
Definition: MuonCalibRawMdtHit.h:61
MuonCalib::MuonCalibRawMdtHit::setAdc
void setAdc(int adc)
sets adc counts
Definition: MuonCalibRawMdtHit.cxx:23
MuonCalib::MuonCalibRawMdtHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawMdtHit
Definition: MuonCalibRawMdtHit.cxx:33
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawMdtHit::m_dr
double m_dr
error on the drift radius
Definition: MuonCalibRawMdtHit.h:63
MuonCalib::MuonCalibRawMdtHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRawMdtHit.cxx:11
MuonCalib::MuonCalibRawMdtHit::MuonCalibRawMdtHit
MuonCalibRawMdtHit(const MuonCalibRawMdtHit &hit)=default
copyconstructor
MuonCalib::MuonCalibRawMdtHit::setLocalPosition
void setLocalPosition(const Amg::Vector3D &loc)
sets the position expressed in local (station) coordinates
Definition: MuonCalibRawMdtHit.cxx:21
MuonCalib::MuonCalibRawMdtHit::adcCount
int adcCount() const
retrieve adc counts
Definition: MuonCalibRawMdtHit.cxx:14
MuonCalib::MuonCalibRawMdtHit::operator=
MuonCalibRawMdtHit & operator=(const MuonCalibRawMdtHit &rhs)=default
assignment operator
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawMdtHit &rawHit)
Definition: MuonCalibRawMdtHit.cxx:49
MuonCalib::MuonCalibRawMdtHit::driftRadiusError
double driftRadiusError() const
retrieve the error on the drift radius
Definition: MuonCalibRawMdtHit.cxx:19
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibRawMdtHit::~MuonCalibRawMdtHit
~MuonCalibRawMdtHit()=default
destructor
MuonCalib::MuonCalibRawMdtHit::MuonCalibRawMdtHit
MuonCalibRawMdtHit()=default
default constructor
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
MuonCalib::MuonCalibRawMdtHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition: MuonCalibRawMdtHit.cxx:25
MuonCalib::MuonCalibRawMdtHit::driftTime
double driftTime() const
retrieve the drift time
Definition: MuonCalibRawMdtHit.cxx:17
MuonCalib::MuonCalibRawMdtHit::driftRadius
double driftRadius() const
retrieve the drift radius
Definition: MuonCalibRawMdtHit.cxx:18
MuonFixedId.h
MuonCalib::MuonCalibRawMdtHit::setTdc
void setTdc(int tdc)
sets tdc counts
Definition: MuonCalibRawMdtHit.cxx:24
MuonCalib::MuonCalibRawMdtHit::setDriftRadius
void setDriftRadius(double r)
sets the drift radius
Definition: MuonCalibRawMdtHit.cxx:27
MuonCalib::MuonCalibRawMdtHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawMdtHit.cxx:16
MuonCalib::MuonCalibRawMdtHit::m_occupancy
int m_occupancy
occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawMdtHit.h:60