ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibRawTgcCoin.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8
9namespace MuonCalib {
10
14 int MuonCalibRawTgcCoin::type() const { return m_type; }
15 int MuonCalibRawTgcCoin::eta() const { return m_eta; }
16 int MuonCalibRawTgcCoin::phi() const { return m_phi; }
17 int MuonCalibRawTgcCoin::sector() const { return m_sector; }
22 int MuonCalibRawTgcCoin::bcTag() const { return m_bcTag; }
23 float MuonCalibRawTgcCoin::widthIn() const { return m_widthIn; }
24 float MuonCalibRawTgcCoin::widthOut() const { return m_widthOut; }
25 float MuonCalibRawTgcCoin::widthR() const { return m_widthR; }
26 float MuonCalibRawTgcCoin::widthPhi() const { return m_widthPhi; }
27 int MuonCalibRawTgcCoin::delta() const { return m_delta; }
28 int MuonCalibRawTgcCoin::roi() const { return m_roi; }
29 int MuonCalibRawTgcCoin::pt() const { return m_pt; }
30 int MuonCalibRawTgcCoin::sub() const { return m_sub; }
32
54
56 const int type, const int eta, const int phi, const int sector, const int isForward,
57 const int isStrip, const int trackletId, const int trackletIdStrip, const int bcTag,
58 const float widthIn, const float widthOut, const float widthR, const float widthPhi,
59 const int delta, const int roi, const int pt, const int sub = 0,
60 const int isPositiveDeltaR = 0) :
61 m_id{id},
64 m_type{type},
65 m_eta{eta},
66 m_phi{phi},
78 m_roi{roi},
79 m_pt{pt},
80 m_sub{sub},
82
83 std::ostream& MuonCalibRawTgcCoin::dump(std::ostream& stream) const {
84 stream << "MuonCalibRawTgcCoin with" << std::endl;
85 stream << " identifier " << identify() << std::endl;
86 stream << " gPosIn = " << gPosIn() << std::endl;
87 stream << " gPosOut = " << gPosOut() << std::endl;
88 stream << " type = " << type() << std::endl;
89 stream << " eta = " << eta() << std::endl;
90 stream << " phi = " << phi() << std::endl;
91 stream << " sector = " << sector() << std::endl;
92 stream << " isForward = " << isForward() << std::endl;
93 stream << " isStrip = " << isStrip() << std::endl;
94 stream << " trackletId = " << trackletId() << std::endl;
95 stream << " trackletIdStrip = " << trackletIdStrip() << std::endl;
96 stream << " widthIn = " << widthIn() << std::endl;
97 stream << " widthOut = " << widthOut() << std::endl;
98 stream << " widthR = " << widthR() << std::endl;
99 stream << " widthPhi = " << widthPhi() << std::endl;
100 stream << " delta = " << delta() << std::endl;
101 stream << " roi = " << roi() << std::endl;
102 stream << " pt = " << pt() << std::endl;
103 stream << " sub = " << sub() << std::endl;
104 stream << " isPositiveDeltaR = " << isPositiveDeltaR() << std::endl;
105 return stream;
106 }
107
108} // namespace MuonCalib
109
110std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawTgcCoin& coin) { return coin.dump(stream); }
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcCoin &coin)
Calib-EDM version of TgcPrepData class, containing uncalibrated information.
void setIsPositiveDeltaR(int isPositiveDeltaR)
const Amg::Vector3D & gPosOut() const
retrieve the position expressed in global coordinates
const MuonFixedId & identify() const
retrieve the MuonFixedId
const Amg::Vector3D & gPosIn() const
retrieve the position expressed in global coordinates
void setTrackletIdStrip(int trackletIdStrip)
void setId(MuonFixedId Id)
sets the MuonFixedId
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawTgcCoin
MuonCalibRawTgcCoin()=default
default constructor
MuonFixedId m_id
identifier of the raw coin, (is a MuonFixedId, not an Identifier)
void setGlobalPositionOut(const Amg::Vector3D &gPosOut)
sets the position expressed in global coordinates
void setGlobalPositionIn(const Amg::Vector3D &gPosIn)
sets the position expressed in global coordinates
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.