ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibRawCscHit.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 Csc information in //
7//*********************************************************//
8
9#ifndef MuonCalibRawCscHit_h
10#define MuonCalibRawCscHit_h
11
14
15namespace MuonCalib {
16
28
30 public:
31 MuonCalibRawCscHit() = default;
32 MuonCalibRawCscHit(const MuonCalibRawCscHit &hit) = default;
34
35 ~MuonCalibRawCscHit() = default;
36
37 MuonCalibRawCscHit(const MuonFixedId &id, const Amg::Vector3D &glob, int occ, float t, float width,
38 float charge);
39
40 std::ostream &dump(std::ostream &stream) const;
41
42 const MuonFixedId &identify() const;
43 const Amg::Vector3D &globalPosition() const;
44 int occupancy() const;
45 float t() const;
46 float width() const;
47 float charge() const;
48
49 void setId(MuonFixedId Id);
50 void setGlobalPosition(const Amg::Vector3D &glob);
51 void setOccupancy(int occ);
52 void setT(float t);
53 void setWidth(float width);
54 void setCharge(float charge);
55
56 private:
58 Amg::Vector3D m_Gpos{0., 0., 0.};
59 int m_occupancy{0};
60 float m_t{0.};
61 float m_width{0.};
62 float m_charge{0.};
63 };
64
65} // namespace MuonCalib
66
67std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &rawHit);
68
69#endif // MuonCalibRawCscHit_h
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &rawHit)
Calib-EDM version of CscPrepData class, containing uncalibrated information.
float width() const
retrieve the strip width
void setId(MuonFixedId Id)
sets the MuonFixedId
Amg::Vector3D m_Gpos
position of the hit in global coordinates
float charge() const
retrieve the charge
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
float t() const
retrieve the time
int m_occupancy
occupancy (-1 == not assigned to any segment)
void setOccupancy(int occ)
sets the occupancy
~MuonCalibRawCscHit()=default
destructor
MuonCalibRawCscHit()=default
default constructor
void setT(float t)
sets the time
MuonFixedId m_id
identifier of the raw hit, (a MuonFixedId, not an Identifier)
void setWidth(float width)
sets the strip width
void setCharge(float charge)
sets the charge
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
MuonCalibRawCscHit & operator=(const MuonCalibRawCscHit &rhs)
assingment operator
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
MuonCalibRawCscHit(const MuonCalibRawCscHit &hit)=default
copy constructor
const MuonFixedId & identify() const
retrieve the MuonFixedId
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