ATLAS Offline Software
RpcCalibHitBase.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_RPCCALIBHIT_BASE_H
15 #define MUONCALIBEVENT_RPCCALIBHIT_BASE_H
16 
17 // std
18 #include <iostream>
19 
20 // other packages
22 
23 // this package
25 
26 namespace MuonCalib {
27 
40  class RpcCalibHitBase {
41  public:
42  RpcCalibHitBase() = default;
43  RpcCalibHitBase& operator=(const RpcCalibHitBase& rhs) = default;
44  RpcCalibHitBase(const RpcCalibHitBase& event) = default;
45  ~RpcCalibHitBase() = default;
46 
47  RpcCalibHitBase(int nStrips, double stripWidth, double time, double error, const Amg::Vector3D& globalPos,
48  const Amg::Vector3D& localPos);
49  RpcCalibHitBase(int nStrips, double stripWidth, double stripLength, double time, double error, const Amg::Vector3D& globalPos,
50  const Amg::Vector3D& localPos);
51 
52  void setIdentifier(const MuonFixedId& id);
53  void setNStrips(int nStrips);
54  void setStripWidth(double stripWidth);
55  void setStripLength(double stripLength);
56  void setTime(double time);
57  void setError(double error);
58  void setGlobalPos(const Amg::Vector3D& globalPos);
59  void setLocalPos(const Amg::Vector3D& localPos);
60  void setDistanceToRO(const double distance);
61 
62  const MuonFixedId& identify() const;
63  int nStrips() const;
64  double stripWidth() const;
65  double stripLength() const;
66  double time() const;
67  double error() const;
68  const Amg::Vector3D& globalPosition() const;
69  const Amg::Vector3D& localPosition() const;
70  double distanceToRO() const;
71 
72  std::ostream& dump(std::ostream& stream) const;
73 
74  private:
75  MuonFixedId m_id{0};
76  int m_nStrips{0};
77  double m_stripWidth{0.};
78  double m_stripLength{0.};
79  double m_time{0.};
80  double m_error{0.};
81  Amg::Vector3D m_globalPosition{0., 0., 0.};
83  double m_distanceToRO{0.};
84  };
85 
86 } // namespace MuonCalib
87 
88 std::ostream& operator<<(std::ostream& stream, const MuonCalib::RpcCalibHitBase& hit);
89 
90 #endif // MUONCALIBEVENT_RPCCALIBHITBASE_H
MuonCalib::RpcCalibHitBase::distanceToRO
double distanceToRO() const
retrieve the distance of the hit to readout
Definition: RpcCalibHitBase.cxx:33
MuonCalib::RpcCalibHitBase::stripWidth
double stripWidth() const
retrieve the strip width
Definition: RpcCalibHitBase.cxx:27
MuonCalib::RpcCalibHitBase::setNStrips
void setNStrips(int nStrips)
sets the number of strips used to construct the hit
Definition: RpcCalibHitBase.cxx:17
MuonCalib::RpcCalibHitBase::setTime
void setTime(double time)
sets the time
Definition: RpcCalibHitBase.cxx:20
MuonCalib::RpcCalibHitBase::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
Definition: RpcCalibHitBase.cxx:31
MuonCalib::RpcCalibHitBase::m_id
MuonFixedId m_id
Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId )
Definition: RpcCalibHitBase.h:82
MuonCalib::RpcCalibHitBase::m_stripLength
double m_stripLength
strip length
Definition: RpcCalibHitBase.h:85
MuonCalib::RpcCalibHitBase::nStrips
int nStrips() const
retrieve the number of strips used to construct the hit
Definition: RpcCalibHitBase.cxx:26
MuonCalib::RpcCalibHitBase::setLocalPos
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
Definition: RpcCalibHitBase.cxx:23
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::RpcCalibHitBase::m_time
double m_time
time
Definition: RpcCalibHitBase.h:86
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::RpcCalibHitBase &hit)
MuonCalib::RpcCalibHitBase::setError
void setError(double error)
sets the error
Definition: RpcCalibHitBase.cxx:21
GeoPrimitives.h
MuonCalib::RpcCalibHitBase::error
double error() const
retrieve the error
Definition: RpcCalibHitBase.cxx:30
MuonCalib::RpcCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position expressed in global coordinates
Definition: RpcCalibHitBase.h:88
MuonCalib::RpcCalibHitBase::m_nStrips
int m_nStrips
number of strips
Definition: RpcCalibHitBase.h:83
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MuonCalib::RpcCalibHitBase::setGlobalPos
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
Definition: RpcCalibHitBase.cxx:22
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::RpcCalibHitBase::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId of the hit
Definition: RpcCalibHitBase.cxx:25
MuonCalib::RpcCalibHitBase::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
Definition: RpcCalibHitBase.cxx:32
MuonCalib::RpcCalibHitBase::setStripLength
void setStripLength(double stripLength)
sets the strip length
Definition: RpcCalibHitBase.cxx:19
MuonCalib::RpcCalibHitBase::setIdentifier
void setIdentifier(const MuonFixedId &id)
sets the MuonFixedId of the hit
Definition: RpcCalibHitBase.cxx:16
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::RpcCalibHitBase::m_error
double m_error
error
Definition: RpcCalibHitBase.h:87
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::RpcCalibHitBase::m_stripWidth
double m_stripWidth
strip width
Definition: RpcCalibHitBase.h:84
MuonCalib::RpcCalibHitBase::RpcCalibHitBase
RpcCalibHitBase()=default
default constructor
MuonCalib::RpcCalibHitBase::operator=
RpcCalibHitBase & operator=(const RpcCalibHitBase &rhs)=default
assignment operator
MuonCalib::RpcCalibHitBase::~RpcCalibHitBase
~RpcCalibHitBase()=default
destructor
MuonCalib::RpcCalibHitBase::time
double time() const
retrieve the time
Definition: RpcCalibHitBase.cxx:29
MuonCalib::RpcCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position expressed in local (station) coordinates
Definition: RpcCalibHitBase.h:89
MuonCalib::RpcCalibHitBase::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the RpcCalibHitBase
Definition: RpcCalibHitBase.cxx:53
MuonCalib::RpcCalibHitBase::stripLength
double stripLength() const
retrieve the strip length
Definition: RpcCalibHitBase.cxx:28
MuonCalib::RpcCalibHitBase::setStripWidth
void setStripWidth(double stripWidth)
sets the strip width
Definition: RpcCalibHitBase.cxx:18
MuonCalib::RpcCalibHitBase::m_distanceToRO
double m_distanceToRO
distance from hit to readout of the strip
Definition: RpcCalibHitBase.h:90
MuonCalib::RpcCalibHitBase
Definition: RpcCalibHitBase.h:47
error
Definition: IImpactPoint3dEstimator.h:70
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
MuonFixedId.h
MuonCalib::RpcCalibHitBase::setDistanceToRO
void setDistanceToRO(const double distance)
sets the distance of the hit to readout
Definition: RpcCalibHitBase.cxx:24