ATLAS Offline Software
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 
9 namespace MuonCalib {
10 
11  const MuonFixedId& MuonCalibRawTgcCoin::identify() const { return m_id; }
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; }
19  int MuonCalibRawTgcCoin::isStrip() const { return m_isStrip; }
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 
37  void MuonCalibRawTgcCoin::setEta(int eta) { m_eta = eta; }
38  void MuonCalibRawTgcCoin::setPhi(int phi) { m_phi = phi; }
50  void MuonCalibRawTgcCoin::setRoi(int roi) { m_roi = roi; }
52  void MuonCalibRawTgcCoin::setSub(int sub) { m_sub = sub; }
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},
62  m_gPosIn{gPosIn},
63  m_gPosOut{gPosOut},
64  m_type{type},
65  m_eta{eta},
66  m_phi{phi},
67  m_sector{sector},
68  m_isForward{isForward},
69  m_isStrip{isStrip},
70  m_trackletId{trackletId},
71  m_trackletIdStrip{trackletIdStrip},
72  m_bcTag{bcTag},
73  m_widthIn{widthIn},
74  m_widthOut{widthOut},
75  m_widthR{widthR},
76  m_widthPhi{widthPhi},
77  m_delta{delta},
78  m_roi{roi},
79  m_pt{pt},
80  m_sub{sub},
81  m_isPositiveDeltaR{isPositiveDeltaR} {}
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 
110 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawTgcCoin& coin) { return coin.dump(stream); }
MuonCalib::MuonCalibRawTgcCoin::setTrackletIdStrip
void setTrackletIdStrip(int trackletIdStrip)
Definition: MuonCalibRawTgcCoin.cxx:43
test_pyathena.eta
eta
Definition: test_pyathena.py:10
MuonCalib::MuonCalibRawTgcCoin::setIsForward
void setIsForward(int isForward)
Definition: MuonCalibRawTgcCoin.cxx:40
MuonCalib::MuonCalibRawTgcCoin::m_delta
int m_delta
Definition: MuonCalibRawTgcCoin.h:105
MuonCalib::MuonCalibRawTgcCoin::MuonCalibRawTgcCoin
MuonCalibRawTgcCoin()=default
default constructor
MuonCalib::MuonCalibRawTgcCoin::setType
void setType(int type)
Definition: MuonCalibRawTgcCoin.cxx:36
MuonCalib::MuonCalibRawTgcCoin::setIsPositiveDeltaR
void setIsPositiveDeltaR(int isPositiveDeltaR)
Definition: MuonCalibRawTgcCoin.cxx:53
MuonCalib::MuonCalibRawTgcCoin::setPhi
void setPhi(int phi)
Definition: MuonCalibRawTgcCoin.cxx:38
MuonCalib::MuonCalibRawTgcCoin::setTrackletId
void setTrackletId(int trackletId)
Definition: MuonCalibRawTgcCoin.cxx:42
MuonCalib::MuonCalibRawTgcCoin::m_eta
int m_eta
Definition: MuonCalibRawTgcCoin.h:92
MuonCalib::MuonCalibRawTgcCoin::m_widthOut
float m_widthOut
Definition: MuonCalibRawTgcCoin.h:101
MuonCalib::MuonCalibRawTgcCoin::m_widthR
float m_widthR
Definition: MuonCalibRawTgcCoin.h:102
MuonCalib::MuonCalibRawTgcCoin::isStrip
int isStrip() const
Definition: MuonCalibRawTgcCoin.cxx:19
MuonCalib::MuonCalibRawTgcCoin::widthOut
float widthOut() const
Definition: MuonCalibRawTgcCoin.cxx:24
MuonCalib::MuonCalibRawTgcCoin::m_widthIn
float m_widthIn
Definition: MuonCalibRawTgcCoin.h:100
MuonCalib::MuonCalibRawTgcCoin::m_gPosIn
Amg::Vector3D m_gPosIn
Definition: MuonCalibRawTgcCoin.h:89
MuonCalib::MuonCalibRawTgcCoin::setGlobalPositionIn
void setGlobalPositionIn(const Amg::Vector3D &gPosIn)
sets the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:34
MuonCalib::MuonCalibRawTgcCoin::isPositiveDeltaR
int isPositiveDeltaR() const
Definition: MuonCalibRawTgcCoin.cxx:31
MuonCalib::MuonCalibRawTgcCoin::m_id
MuonFixedId m_id
identifier of the raw coin, (is a MuonFixedId, not an Identifier)
Definition: MuonCalibRawTgcCoin.h:88
test_pyathena.pt
pt
Definition: test_pyathena.py:11
MuonCalib::MuonCalibRawTgcCoin::eta
int eta() const
Definition: MuonCalibRawTgcCoin.cxx:15
MuonCalib::MuonCalibRawTgcCoin::setWidthR
void setWidthR(float widthR)
Definition: MuonCalibRawTgcCoin.cxx:47
MuonCalib::MuonCalibRawTgcCoin::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawTgcCoin
Definition: MuonCalibRawTgcCoin.cxx:83
MuonCalibRawTgcCoin.h
MuonCalib::MuonCalibRawTgcCoin::m_trackletIdStrip
int m_trackletIdStrip
Definition: MuonCalibRawTgcCoin.h:98
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRawTgcCoin::gPosOut
const Amg::Vector3D & gPosOut() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:13
MuonCalib::MuonCalibRawTgcCoin::setWidthOut
void setWidthOut(float widthOut)
Definition: MuonCalibRawTgcCoin.cxx:46
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
m_type
TokenType m_type
the type
Definition: TProperty.cxx:44
MuonCalib::MuonCalibRawTgcCoin::m_sub
int m_sub
Definition: MuonCalibRawTgcCoin.h:109
MuonCalib::MuonCalibRawTgcCoin::sub
int sub() const
Definition: MuonCalibRawTgcCoin.cxx:30
MuonCalib::MuonCalibRawTgcCoin::setWidthPhi
void setWidthPhi(float widthPhi)
Definition: MuonCalibRawTgcCoin.cxx:48
MuonCalib::MuonCalibRawTgcCoin::m_roi
int m_roi
Definition: MuonCalibRawTgcCoin.h:106
MuonCalib::MuonCalibRawTgcCoin::isForward
int isForward() const
Definition: MuonCalibRawTgcCoin.cxx:18
MuonCalib::MuonCalibRawTgcCoin::trackletIdStrip
int trackletIdStrip() const
Definition: MuonCalibRawTgcCoin.cxx:21
MuonCalib::MuonCalibRawTgcCoin::setRoi
void setRoi(int roi)
Definition: MuonCalibRawTgcCoin.cxx:50
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawTgcCoin::gPosIn
const Amg::Vector3D & gPosIn() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:12
MuonCalib::MuonCalibRawTgcCoin::trackletId
int trackletId() const
Definition: MuonCalibRawTgcCoin.cxx:20
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcCoin &coin)
Definition: MuonCalibRawTgcCoin.cxx:110
MuonCalib::MuonCalibRawTgcCoin::type
int type() const
Definition: MuonCalibRawTgcCoin.cxx:14
MuonCalib::MuonCalibRawTgcCoin::setBcTag
void setBcTag(int bcTag)
Definition: MuonCalibRawTgcCoin.cxx:44
MuonCalib::MuonCalibRawTgcCoin::m_isPositiveDeltaR
int m_isPositiveDeltaR
Definition: MuonCalibRawTgcCoin.h:110
MuonCalib::MuonCalibRawTgcCoin::pt
int pt() const
Definition: MuonCalibRawTgcCoin.cxx:29
MuonCalib::MuonCalibRawTgcCoin::setSector
void setSector(int sector)
Definition: MuonCalibRawTgcCoin.cxx:39
MuonCalib::MuonCalibRawTgcCoin::roi
int roi() const
Definition: MuonCalibRawTgcCoin.cxx:28
dumpTgcDigiThreshold.isStrip
list isStrip
Definition: dumpTgcDigiThreshold.py:33
MuonCalib::MuonCalibRawTgcCoin::phi
int phi() const
Definition: MuonCalibRawTgcCoin.cxx:16
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibRawTgcCoin::m_sector
int m_sector
Definition: MuonCalibRawTgcCoin.h:94
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibRawTgcCoin::sector
int sector() const
Definition: MuonCalibRawTgcCoin.cxx:17
MuonCalib::MuonCalibRawTgcCoin::m_gPosOut
Amg::Vector3D m_gPosOut
Definition: MuonCalibRawTgcCoin.h:90
MuonCalib::MuonCalibRawTgcCoin::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRawTgcCoin.cxx:11
MuonCalib::MuonCalibRawTgcCoin::m_pt
int m_pt
Definition: MuonCalibRawTgcCoin.h:107
MuonCalib::MuonCalibRawTgcCoin::setSub
void setSub(int sub)
Definition: MuonCalibRawTgcCoin.cxx:52
MuonCalib::MuonCalibRawTgcCoin::setDelta
void setDelta(int delta)
Definition: MuonCalibRawTgcCoin.cxx:49
MuonCalib::MuonCalibRawTgcCoin::widthPhi
float widthPhi() const
Definition: MuonCalibRawTgcCoin.cxx:26
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
bcTag
unsigned bcTag(unsigned bcBitMap)
Definition: TgcByteStreamData.h:359
MuonCalib::MuonCalibRawTgcCoin::setPt
void setPt(int pt)
Definition: MuonCalibRawTgcCoin.cxx:51
MuonCalib::MuonCalibRawTgcCoin::m_widthPhi
float m_widthPhi
Definition: MuonCalibRawTgcCoin.h:103
MuonCalib::MuonCalibRawTgcCoin::bcTag
int bcTag() const
Definition: MuonCalibRawTgcCoin.cxx:22
MuonCalib::MuonCalibRawTgcCoin::m_type
int m_type
Definition: MuonCalibRawTgcCoin.h:91
MuonCalib::MuonCalibRawTgcCoin::setWidthIn
void setWidthIn(float widthIn)
Definition: MuonCalibRawTgcCoin.cxx:45
MuonCalib::MuonCalibRawTgcCoin::widthIn
float widthIn() const
Definition: MuonCalibRawTgcCoin.cxx:23
MuonCalib::MuonCalibRawTgcCoin::m_phi
int m_phi
Definition: MuonCalibRawTgcCoin.h:93
MuonCalib::MuonCalibRawTgcCoin
Definition: MuonCalibRawTgcCoin.h:28
MuonCalib::MuonCalibRawTgcCoin::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition: MuonCalibRawTgcCoin.cxx:33
MuonCalib::MuonCalibRawTgcCoin::widthR
float widthR() const
Definition: MuonCalibRawTgcCoin.cxx:25
MuonCalib::MuonCalibRawTgcCoin::setIsStrip
void setIsStrip(int isStrip)
Definition: MuonCalibRawTgcCoin.cxx:41
MuonCalib::MuonCalibRawTgcCoin::m_isForward
int m_isForward
Definition: MuonCalibRawTgcCoin.h:95
MuonCalib::MuonCalibRawTgcCoin::setEta
void setEta(int eta)
Definition: MuonCalibRawTgcCoin.cxx:37
MuonCalib::MuonCalibRawTgcCoin::m_trackletId
int m_trackletId
Definition: MuonCalibRawTgcCoin.h:97
MuonCalib::MuonCalibRawTgcCoin::m_bcTag
int m_bcTag
Definition: MuonCalibRawTgcCoin.h:99
MuonCalib::MuonCalibRawTgcCoin::m_isStrip
int m_isStrip
Definition: MuonCalibRawTgcCoin.h:96
MuonCalib::MuonCalibRawTgcCoin::delta
int delta() const
Definition: MuonCalibRawTgcCoin.cxx:27
MuonCalib::MuonCalibRawTgcCoin::setGlobalPositionOut
void setGlobalPositionOut(const Amg::Vector3D &gPosOut)
sets the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:35