ATLAS Offline Software
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 
15 namespace MuonCalib {
16 
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 
67 std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &rawHit);
68 
69 #endif // MuonCalibRawCscHit_h
MuonCalib::MuonCalibRawCscHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition: MuonCalibRawCscHit.cxx:22
MuonCalib::MuonCalibRawCscHit::operator=
MuonCalibRawCscHit & operator=(const MuonCalibRawCscHit &rhs)
assingment operator
MuonCalib::MuonCalibRawCscHit::setCharge
void setCharge(float charge)
sets the charge
Definition: MuonCalibRawCscHit.cxx:25
MuonCalib::MuonCalibRawCscHit::setWidth
void setWidth(float width)
sets the strip width
Definition: MuonCalibRawCscHit.cxx:24
MuonCalib::MuonCalibRawCscHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawCscHit.cxx:15
MuonCalib::MuonCalibRawCscHit::width
float width() const
retrieve the strip width
Definition: MuonCalibRawCscHit.cxx:17
MuonCalib::MuonCalibRawCscHit::m_charge
float m_charge
charge
Definition: MuonCalibRawCscHit.h:62
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRawCscHit
Definition: MuonCalibRawCscHit.h:29
MuonCalib::MuonCalibRawCscHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawCscHit
Definition: MuonCalibRawCscHit.cxx:27
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &rawHit)
Definition: MuonCalibRawCscHit.cxx:40
GeoPrimitives.h
MuonCalib::MuonCalibRawCscHit::m_width
float m_width
strip width
Definition: MuonCalibRawCscHit.h:61
MuonCalib::MuonCalibRawCscHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition: MuonCalibRawCscHit.cxx:21
MuonCalib::MuonCalibRawCscHit::m_Gpos
Amg::Vector3D m_Gpos
position of the hit in global coordinates
Definition: MuonCalibRawCscHit.h:58
MuonCalib::MuonCalibRawCscHit::t
float t() const
retrieve the time
Definition: MuonCalibRawCscHit.cxx:16
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawCscHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRawCscHit.cxx:13
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibRawCscHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawCscHit.cxx:14
MuonCalib::MuonCalibRawCscHit::MuonCalibRawCscHit
MuonCalibRawCscHit()=default
default constructor
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibRawCscHit::m_t
float m_t
time
Definition: MuonCalibRawCscHit.h:60
MuonCalib::MuonCalibRawCscHit::m_occupancy
int m_occupancy
occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawCscHit.h:59
MuonCalib::MuonCalibRawCscHit::MuonCalibRawCscHit
MuonCalibRawCscHit(const MuonCalibRawCscHit &hit)=default
copy constructor
MuonCalib::MuonCalibRawCscHit::charge
float charge() const
retrieve the charge
Definition: MuonCalibRawCscHit.cxx:18
MuonCalib::MuonCalibRawCscHit::~MuonCalibRawCscHit
~MuonCalibRawCscHit()=default
destructor
MuonCalib::MuonCalibRawCscHit::setT
void setT(float t)
sets the time
Definition: MuonCalibRawCscHit.cxx:23
MuonFixedId.h
MuonCalib::MuonCalibRawCscHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition: MuonCalibRawCscHit.cxx:20
MuonCalib::MuonCalibRawCscHit::m_id
MuonFixedId m_id
identifier of the raw hit, (a MuonFixedId, not an Identifier)
Definition: MuonCalibRawCscHit.h:57