ATLAS Offline Software
MuonCalibRawCscHit.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <iostream>
8 
9 namespace MuonCalib {
10  MuonCalibRawCscHit::MuonCalibRawCscHit(const MuonFixedId &id, const Amg::Vector3D &glob, int occ, float t, float width, float charge) :
11  m_id{id}, m_Gpos{glob}, m_occupancy{occ}, m_t{t}, m_width{width}, m_charge{charge} {}
12 
13  const MuonFixedId &MuonCalibRawCscHit::identify() const { return m_id; }
16  float MuonCalibRawCscHit::t() const { return m_t; }
17  float MuonCalibRawCscHit::width() const { return m_width; }
18  float MuonCalibRawCscHit::charge() const { return m_charge; }
19 
23  void MuonCalibRawCscHit::setT(float t) { m_t = t; }
26 
27  std::ostream &MuonCalibRawCscHit::dump(std::ostream &stream) const {
28  stream << "MuonCalibRawCscHit with" << std::endl;
29  stream << " identifier " << identify() << std::endl;
30  stream << " global position " << globalPosition() << std::endl;
31  stream << " occupancy " << occupancy() << std::endl;
32  stream << " time " << t() << std::endl;
33  stream << " width " << width() << std::endl;
34  stream << " charge " << charge() << std::endl;
35  return stream;
36  }
37 
38 } // namespace MuonCalib
39 
40 std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &hit) { return hit.dump(stream); }
MuonCalib::MuonCalibRawCscHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition: MuonCalibRawCscHit.cxx:22
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
MuonCalibRawCscHit.h
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
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
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
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
charge
double charge(const T &p)
Definition: AtlasPID.h:756
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
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
MuonCalib::MuonCalibRawCscHit::m_occupancy
int m_occupancy
occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawCscHit.h:59
MuonCalib::MuonCalibRawCscHit::charge
float charge() const
retrieve the charge
Definition: MuonCalibRawCscHit.cxx:18
MuonCalib::MuonCalibRawCscHit::setT
void setT(float t)
sets the time
Definition: MuonCalibRawCscHit.cxx:23
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &hit)
Definition: MuonCalibRawCscHit.cxx:40
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