ATLAS Offline Software
TgcCalibHitBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  * Muon Calibration Input Event Data Model
7  * --------------------------------------
8  *
9  * Author : Zdenko van Kesteren
10  * Creation Date: 17 October 2005
11  * Last Update : 17 October 2005
12  ***************************************************************************/
13 
14 #ifndef MUONCALIBEVENT_TGCCALIBHIT_BASE_H
15 #define MUONCALIBEVENT_TGCCALIBHIT_BASE_H
16 
17 // std
18 #include <iostream>
19 
20 // other packages
22 
23 // this package
25 
26 namespace MuonCalib {
36  class TgcCalibHitBase {
37  public:
38  TgcCalibHitBase() = default;
39  TgcCalibHitBase& operator=(const TgcCalibHitBase& rhs) = default;
40  TgcCalibHitBase(const TgcCalibHitBase& event) = default;
41 
42  ~TgcCalibHitBase() = default;
43 
44  TgcCalibHitBase(int nStrips, double stripWidth, double error, const Amg::Vector3D& globalPos,
45  const Amg::Vector3D& localPos);
46 
47  void setIdentifier(const MuonFixedId& id);
48  void setNStrips(int nStrips);
49  void setStripWidth(double stripWidth);
50  void setStripLength(double stripLength);
51  void setError(double error);
52  void setGlobalPos(const Amg::Vector3D& globalPos);
53  void setLocalPos(const Amg::Vector3D& localPos);
54 
55  const MuonFixedId& identify() const;
56  int nStrips() const;
57  double stripWidth() const;
58  double stripLength() const;
59  double error() const;
60  const Amg::Vector3D& globalPosition() const;
61  const Amg::Vector3D& localPosition() const;
62 
63  std::ostream& dump(std::ostream& stream) const;
64 
65  private:
66  MuonFixedId m_id{0};
67  int m_nStrips{0};
68  double m_stripWidth{0.};
69  double m_stripLength{0.};
70  double m_error{0.};
71  Amg::Vector3D m_globalPosition{0., 0., 0.};
72  Amg::Vector3D m_localPosition{0., 0., 0.};
73  };
74 
75 } // namespace MuonCalib
76 
77 std::ostream& operator<<(std::ostream& stream, const MuonCalib::TgcCalibHitBase& hit);
78 
79 #endif // MUONCALIBEVENT_TGCCALIBHIT_H
MuonCalib::TgcCalibHitBase::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
Definition: TgcCalibHitBase.cxx:42
MuonCalib::TgcCalibHitBase::identify
const MuonFixedId & identify() const
retrieve the identifier (MuonFixedId)
Definition: TgcCalibHitBase.cxx:38
MuonCalib::TgcCalibHitBase::error
double error() const
retrieve the error on the hit
Definition: TgcCalibHitBase.cxx:50
MuonCalib::TgcCalibHitBase::setGlobalPos
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
Definition: TgcCalibHitBase.cxx:30
MuonCalib::TgcCalibHitBase
Definition: TgcCalibHitBase.h:43
MuonCalib::TgcCalibHitBase::TgcCalibHitBase
TgcCalibHitBase()=default
default constructor
MuonCalib::TgcCalibHitBase::operator=
TgcCalibHitBase & operator=(const TgcCalibHitBase &rhs)=default
assignment operator
MuonCalib::TgcCalibHitBase::m_id
MuonFixedId m_id
Identifier of the hit (a MuonFixedId, not an Identifier)
Definition: TgcCalibHitBase.h:73
MuonCalib::TgcCalibHitBase::setError
void setError(double error)
sets the error on the hit
Definition: TgcCalibHitBase.cxx:28
MuonCalib::TgcCalibHitBase::m_error
double m_error
error on the hit
Definition: TgcCalibHitBase.h:77
MuonCalib::TgcCalibHitBase::~TgcCalibHitBase
~TgcCalibHitBase()=default
destructor
MuonCalib::TgcCalibHitBase::m_nStrips
int m_nStrips
number of strips used to cluster the hit
Definition: TgcCalibHitBase.h:74
MuonCalib::TgcCalibHitBase::setLocalPos
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
Definition: TgcCalibHitBase.cxx:32
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::TgcCalibHitBase::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
Definition: TgcCalibHitBase.cxx:40
MuonCalib::TgcCalibHitBase::stripWidth
double stripWidth() const
retrieve the width of the strip
Definition: TgcCalibHitBase.cxx:44
GeoPrimitives.h
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MuonCalib::TgcCalibHitBase::setNStrips
void setNStrips(int nStrips)
sets the number of strips used to cluster the hit
Definition: TgcCalibHitBase.cxx:26
MuonCalib::TgcCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
Definition: TgcCalibHitBase.h:78
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::TgcCalibHitBase::m_stripLength
double m_stripLength
strip length
Definition: TgcCalibHitBase.h:76
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::TgcCalibHitBase::setStripLength
void setStripLength(double stripLength)
sets the length of the strip
Definition: TgcCalibHitBase.cxx:36
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::TgcCalibHitBase &hit)
MuonCalib::TgcCalibHitBase::m_stripWidth
double m_stripWidth
strip width
Definition: TgcCalibHitBase.h:75
MuonCalib::TgcCalibHitBase::setIdentifier
void setIdentifier(const MuonFixedId &id)
sets the identifier (MuonFixedId)
Definition: TgcCalibHitBase.cxx:24
MuonCalib::TgcCalibHitBase::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the TgcCalibHitBase
Definition: TgcCalibHitBase.cxx:61
MuonCalib::TgcCalibHitBase::setStripWidth
void setStripWidth(double stripWidth)
sets the width of the strip
Definition: TgcCalibHitBase.cxx:34
MuonCalib::TgcCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
Definition: TgcCalibHitBase.h:79
error
Definition: IImpactPoint3dEstimator.h:70
MuonFixedId.h
MuonCalib::TgcCalibHitBase::nStrips
int nStrips() const
retrieve the number of strips used to cluster the hit
Definition: TgcCalibHitBase.cxx:48
MuonCalib::TgcCalibHitBase::stripLength
double stripLength() const
retrieve the length of the strip
Definition: TgcCalibHitBase.cxx:46