ATLAS Offline Software
MuonCalibRawRpcHit.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 raw Rpc information in //
7 //*********************************************************//
8 
9 #ifndef MuonCalibRawRpcHit_h
10 #define MuonCalibRawRpcHit_h
11 
14 
15 namespace MuonCalib {
16 
28  public:
29  MuonCalibRawRpcHit() = default;
30  MuonCalibRawRpcHit(const MuonCalibRawRpcHit& hit) = default;
32  virtual ~MuonCalibRawRpcHit() = default;
33 
34  struct defineParams {
35  MuonFixedId id{0};
36  Amg::Vector3D glob_pos{0., 0., 0.};
37  int occupancy{0};
38  float t{0.};
39  float width{0.};
40  float length{0.};
41  };
42 
43  MuonCalibRawRpcHit(const defineParams& pars);
44 
45  std::ostream& dump(std::ostream& stream) const;
46 
47  const MuonFixedId& identify() const;
48  const Amg::Vector3D& globalPosition() const;
49  int occupancy() const;
50  float t() const;
51  float width() const;
52  float length() const;
53 
54  void setId(MuonFixedId Id);
55  void setGlobalPosition(const Amg::Vector3D& glob);
56  void setOccupancy(int occ);
57  void setT(float t);
58  void setWidth(float width);
59  void setLength(float length);
60 
61  private:
63  };
64 
65 } // namespace MuonCalib
66 
67 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawRpcHit& rawHit);
68 
69 #endif // MuonCalibRawRpcHit_h
MuonCalib::MuonCalibRawRpcHit::MuonCalibRawRpcHit
MuonCalibRawRpcHit(const MuonCalibRawRpcHit &hit)=default
copy constructor
MuonCalib::MuonCalibRawRpcHit::defineParams::occupancy
int occupancy
occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawRpcHit.h:37
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
MuonCalib::MuonCalibRawRpcHit::setLength
void setLength(float length)
sets the strip length
Definition: MuonCalibRawRpcHit.cxx:21
MuonCalib::MuonCalibRawRpcHit::defineParams::t
float t
time
Definition: MuonCalibRawRpcHit.h:38
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawRpcHit &rawHit)
Definition: MuonCalibRawRpcHit.cxx:37
MuonCalib::MuonCalibRawRpcHit::setT
void setT(float t)
sets the time
Definition: MuonCalibRawRpcHit.cxx:19
MuonCalib::MuonCalibRawRpcHit::m_pars
defineParams m_pars
Definition: MuonCalibRawRpcHit.h:62
MuonCalib::MuonCalibRawRpcHit::defineParams::glob_pos
Amg::Vector3D glob_pos
position of the hit in global coordinates
Definition: MuonCalibRawRpcHit.h:36
MuonCalib::MuonCalibRawRpcHit::MuonCalibRawRpcHit
MuonCalibRawRpcHit()=default
default constructor
MuonCalib::MuonCalibRawRpcHit::t
float t() const
retrieve the time
Definition: MuonCalibRawRpcHit.cxx:13
MuonCalib::MuonCalibRawRpcHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawRpcHit.cxx:11
MuonCalib::MuonCalibRawRpcHit::length
float length() const
retrieve the strip length
Definition: MuonCalibRawRpcHit.cxx:15
MuonCalib::MuonCalibRawRpcHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawRpcHit
Definition: MuonCalibRawRpcHit.cxx:24
MuonCalib::MuonCalibRawRpcHit::width
float width() const
retrieve the strip width
Definition: MuonCalibRawRpcHit.cxx:14
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRawRpcHit::operator=
MuonCalibRawRpcHit & operator=(const MuonCalibRawRpcHit &rhs)
assingment operator
GeoPrimitives.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawRpcHit::defineParams
Definition: MuonCalibRawRpcHit.h:34
MuonCalib::MuonCalibRawRpcHit
Definition: MuonCalibRawRpcHit.h:27
MuonCalib::MuonCalibRawRpcHit::~MuonCalibRawRpcHit
virtual ~MuonCalibRawRpcHit()=default
destructor
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibRawRpcHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition: MuonCalibRawRpcHit.cxx:18
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibRawRpcHit::defineParams::length
float length
strip length
Definition: MuonCalibRawRpcHit.h:40
MuonCalib::MuonCalibRawRpcHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition: MuonCalibRawRpcHit.cxx:17
MuonCalib::MuonCalibRawRpcHit::defineParams::width
float width
strip width
Definition: MuonCalibRawRpcHit.h:39
MuonCalib::MuonCalibRawRpcHit::setWidth
void setWidth(float width)
sets the strip width
Definition: MuonCalibRawRpcHit.cxx:20
MuonCalib::MuonCalibRawRpcHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition: MuonCalibRawRpcHit.cxx:16
MuonCalib::MuonCalibRawRpcHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRawRpcHit.cxx:10
MuonCalib::MuonCalibRawRpcHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawRpcHit.cxx:12
MuonFixedId.h