ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace 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
68std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawMdtHit &rawHit);
69
70#endif // MuonCalibRawMdtHit_h
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawMdtHit &rawHit)
Calib-EDM version of MdtPrepData class, containing uncalibrated information.
double driftTime() const
retrieve the drift time
void setDriftRadiusError(double dr)
sets the error on the drift radius
int tdcCount() const
retrieve tdc counts
double driftRadius() const
retrieve the drift radius
MuonCalibRawMdtHit & operator=(const MuonCalibRawMdtHit &rhs)=default
assignment operator
const Amg::Vector3D & localPosition() const
retrieve the position expressed in local (station) coordinates
MuonCalibRawMdtHit()=default
default constructor
void setLocalPosition(const Amg::Vector3D &loc)
sets the position expressed in local (station) coordinates
int adcCount() const
retrieve adc counts
double driftRadiusError() const
retrieve the error on the drift radius
void setDriftTime(double t)
sets the drift time
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
void setOccupancy(int occ)
sets the occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
void setDriftRadius(double r)
sets the drift radius
const MuonFixedId & identify() const
retrieve the MuonFixedId
MuonCalibRawMdtHit(const MuonCalibRawMdtHit &hit)=default
copyconstructor
int m_occupancy
occupancy (-1 == not assigned to any segment)
double m_dr
error on the drift radius
void setTdc(int tdc)
sets tdc counts
Amg::Vector3D m_Lpos
position of the hit in local (station) coordinates
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Amg::Vector3D m_Gpos
position of the hit in global coordinates
MuonFixedId m_id
identifier of the raw hit, (is a MuonFixedId, not an Identifier)
~MuonCalibRawMdtHit()=default
destructor
void setAdc(int adc)
sets adc counts
void setId(MuonFixedId Id)
sets the MuonFixedId
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
int r
Definition globals.cxx:22
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
-event-from-file