ATLAS Offline Software
Loading...
Searching...
No Matches
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
26namespace MuonCalib {
35
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:
67 int m_nStrips{0};
68 double m_stripWidth{0.};
69 double m_stripLength{0.};
70 double m_error{0.};
73 };
74
75} // namespace MuonCalib
76
77std::ostream& operator<<(std::ostream& stream, const MuonCalib::TgcCalibHitBase& hit);
78
79#endif // MUONCALIBEVENT_TGCCALIBHIT_H
std::ostream & operator<<(std::ostream &stream, const MuonCalib::TgcCalibHitBase &hit)
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Athena independent part of the TgcCalibHit.
void setNStrips(int nStrips)
sets the number of strips used to cluster the hit
int nStrips() const
retrieve the number of strips used to cluster the hit
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
const MuonFixedId & identify() const
retrieve the identifier (MuonFixedId)
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
void setStripWidth(double stripWidth)
sets the width of the strip
double m_stripLength
strip length
double m_error
error on the hit
TgcCalibHitBase(const TgcCalibHitBase &event)=default
Copy constructor.
~TgcCalibHitBase()=default
destructor
TgcCalibHitBase & operator=(const TgcCalibHitBase &rhs)=default
assignment operator
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
double stripWidth() const
retrieve the width of the strip
TgcCalibHitBase()=default
default constructor
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
double error() const
retrieve the error on the hit
MuonFixedId m_id
Identifier of the hit (a MuonFixedId, not an Identifier)
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
void setError(double error)
sets the error on the hit
void setStripLength(double stripLength)
sets the length of the strip
double m_stripWidth
strip width
void setIdentifier(const MuonFixedId &id)
sets the identifier (MuonFixedId)
int m_nStrips
number of strips used to cluster the hit
double stripLength() const
retrieve the length of the strip
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
-event-from-file