ATLAS Offline Software
CscCalibHitBase.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  * Muon Calibration Input Event Data Model
7  ***************************************************************************/
8 
9 #ifndef MUONCALIBEVENT_CSCCALIBHIT_BASE_H
10 #define MUONCALIBEVENT_CSCCALIBHIT_BASE_H
11 
12 // std
13 #include <iostream>
14 
15 // other packages
17 
18 // this package
20 
21 namespace MuonCalib {
36  class CscCalibHitBase {
37  public:
38  CscCalibHitBase() = default;
39  CscCalibHitBase& operator=(const CscCalibHitBase& rhs) = default;
41  ~CscCalibHitBase() = default;
42  CscCalibHitBase(int nStrips, double stripWidth, int charge, double error, const Amg::Vector3D& globalPos,
43  const Amg::Vector3D& localPos);
44 
45  void setIdentifier(const MuonFixedId& id);
46  void setNStrips(int nStrips);
47  void setStripWidth(double stripWidth);
48  void setCharge(int charge);
49  void setError(double error);
50  void setGlobalPos(const Amg::Vector3D& globalPos);
51  void setLocalPos(const Amg::Vector3D& localPos);
52 
53  const MuonFixedId& identify() const;
54  int nStrips() const;
55  double stripWidth() const;
56  int charge() const;
57  double error() const;
58  const Amg::Vector3D& globalPosition() const;
59  const Amg::Vector3D& localPosition() const;
60 
61  std::ostream& dump(std::ostream& stream) const;
62 
63  private:
64  MuonFixedId m_id{0};
65  int m_nStrips{0};
66  double m_stripWidth{0.};
67  int m_charge{0};
68  double m_error{0.};
71  };
72 
73 } // namespace MuonCalib
74 
75 std::ostream& operator<<(std::ostream& stream, const MuonCalib::CscCalibHitBase& hit);
76 
77 #endif // MUONCALIBEVENT_CSCCALIBHITBASE_H
MuonCalib::CscCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
Definition: CscCalibHitBase.h:71
MuonCalib::CscCalibHitBase::CscCalibHitBase
CscCalibHitBase(const CscCalibHitBase &event)=default
Copy constructor.
MuonCalib::CscCalibHitBase::setStripWidth
void setStripWidth(double stripWidth)
sets the strip width
Definition: CscCalibHitBase.cxx:29
MuonCalib::CscCalibHitBase
Definition: CscCalibHitBase.h:38
MuonCalib::CscCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
Definition: CscCalibHitBase.h:72
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::CscCalibHitBase::error
double error() const
retrieve the error on the hit
Definition: CscCalibHitBase.cxx:38
MuonCalib::CscCalibHitBase::operator=
CscCalibHitBase & operator=(const CscCalibHitBase &rhs)=default
assignment operator
MuonCalib::CscCalibHitBase::setCharge
void setCharge(int charge)
sets the charge
Definition: CscCalibHitBase.cxx:30
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::CscCalibHitBase &hit)
GeoPrimitives.h
MuonCalib::CscCalibHitBase::setNStrips
void setNStrips(int nStrips)
sets the number of strips used to cluster
Definition: CscCalibHitBase.cxx:28
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MuonCalib::CscCalibHitBase::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: CscCalibHitBase.cxx:34
MuonCalib::CscCalibHitBase::m_error
double m_error
error on the hit
Definition: CscCalibHitBase.h:70
MuonCalib::CscCalibHitBase::m_id
MuonFixedId m_id
identifier of the hit (as a MuonFixedId, not Identifier)
Definition: CscCalibHitBase.h:66
MuonCalib::CscCalibHitBase::charge
int charge() const
retrieve the charge
Definition: CscCalibHitBase.cxx:37
MuonCalib::CscCalibHitBase::dump
std::ostream & dump(std::ostream &stream) const
dump method used to implement operator<<() of the CscCalibHitBase
Definition: CscCalibHitBase.cxx:19
MuonCalib::CscCalibHitBase::setError
void setError(double error)
sets the error on the hit
Definition: CscCalibHitBase.cxx:31
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::CscCalibHitBase::~CscCalibHitBase
~CscCalibHitBase()=default
destructor
MuonCalib::CscCalibHitBase::setGlobalPos
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position of the hits in global coordinates
Definition: CscCalibHitBase.cxx:32
MuonCalib::CscCalibHitBase::nStrips
int nStrips() const
retrieve the number of strips used to cluster
Definition: CscCalibHitBase.cxx:35
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::CscCalibHitBase::stripWidth
double stripWidth() const
retrieve the strip width
Definition: CscCalibHitBase.cxx:36
MuonCalib::CscCalibHitBase::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position of the hits in local (station) coordinates
Definition: CscCalibHitBase.cxx:40
MuonCalib::CscCalibHitBase::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position of the hits in global coordinates
Definition: CscCalibHitBase.cxx:39
MuonCalib::CscCalibHitBase::setIdentifier
void setIdentifier(const MuonFixedId &id)
sets the MuonFixedId
Definition: CscCalibHitBase.cxx:27
MuonCalib::CscCalibHitBase::setLocalPos
void setLocalPos(const Amg::Vector3D &localPos)
sets the position of the hits in local (station) coordinates
Definition: CscCalibHitBase.cxx:33
MuonCalib::CscCalibHitBase::m_charge
int m_charge
charge
Definition: CscCalibHitBase.h:69
MuonCalib::CscCalibHitBase::CscCalibHitBase
CscCalibHitBase()=default
default constructor
error
Definition: IImpactPoint3dEstimator.h:70
MuonFixedId.h
MuonCalib::CscCalibHitBase::m_nStrips
int m_nStrips
number of strips used to cluster
Definition: CscCalibHitBase.h:67
MuonCalib::CscCalibHitBase::m_stripWidth
double m_stripWidth
width of the strip
Definition: CscCalibHitBase.h:68