ATLAS Offline Software
Loading...
Searching...
No Matches
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
26namespace MuonCalib {
27
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:
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.};
83 double m_distanceToRO{0.};
84 };
85
86} // namespace MuonCalib
87
88std::ostream& operator<<(std::ostream& stream, const MuonCalib::RpcCalibHitBase& hit);
89
90#endif // MUONCALIBEVENT_RPCCALIBHITBASE_H
std::ostream & operator<<(std::ostream &stream, const MuonCalib::RpcCalibHitBase &hit)
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Athena independent part of the RpcCalibHit.
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
void setNStrips(int nStrips)
sets the number of strips used to construct the hit
RpcCalibHitBase(const RpcCalibHitBase &event)=default
Copy constructor.
void setTime(double time)
sets the time
const MuonFixedId & identify() const
retrieve the MuonFixedId of the hit
RpcCalibHitBase()=default
default constructor
Amg::Vector3D m_globalPosition
position expressed in global coordinates
MuonFixedId m_id
Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId )
void setDistanceToRO(const double distance)
sets the distance of the hit to readout
double stripLength() const
retrieve the strip length
double m_distanceToRO
distance from hit to readout of the strip
void setStripLength(double stripLength)
sets the strip length
double distanceToRO() const
retrieve the distance of the hit to readout
RpcCalibHitBase & operator=(const RpcCalibHitBase &rhs)=default
assignment operator
Amg::Vector3D m_localPosition
position expressed in local (station) coordinates
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
double m_stripWidth
strip width
void setStripWidth(double stripWidth)
sets the strip width
~RpcCalibHitBase()=default
destructor
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
void setError(double error)
sets the error
double error() const
retrieve the error
double m_stripLength
strip length
void setIdentifier(const MuonFixedId &id)
sets the MuonFixedId of the hit
double time() const
retrieve the time
double stripWidth() const
retrieve the strip width
int nStrips() const
retrieve the number of strips used to construct the hit
int m_nStrips
number of strips
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
-event-from-file