ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace MuonCalib {
16
28 public:
29 MuonCalibRawRpcHit() = default;
30 MuonCalibRawRpcHit(const MuonCalibRawRpcHit& hit) = default;
32 virtual ~MuonCalibRawRpcHit() = default;
33
34 struct defineParams {
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
67std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawRpcHit& rawHit);
68
69#endif // MuonCalibRawRpcHit_h
double length(const pvec &v)
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawRpcHit &rawHit)
const double width
Calib-EDM version of RpcPrepData class, containing uncalibrated information.
void setT(float t)
sets the time
void setOccupancy(int occ)
sets the occupancy
const MuonFixedId & identify() const
retrieve the MuonFixedId
MuonCalibRawRpcHit & operator=(const MuonCalibRawRpcHit &rhs)
assingment operator
MuonCalibRawRpcHit(const MuonCalibRawRpcHit &hit)=default
copy constructor
float t() const
retrieve the time
virtual ~MuonCalibRawRpcHit()=default
destructor
void setWidth(float width)
sets the strip width
float width() const
retrieve the strip width
void setLength(float length)
sets the strip length
MuonCalibRawRpcHit()=default
default constructor
void setId(MuonFixedId Id)
sets the MuonFixedId
float length() const
retrieve the strip length
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
-event-from-file
int occupancy
occupancy (-1 == not assigned to any segment)
Amg::Vector3D glob_pos
position of the hit in global coordinates