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