ATLAS Offline Software
MuonCalibRawTgcHit.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 
14  int MuonCalibRawTgcHit::station() const { return m_pars.station; }
15  int MuonCalibRawTgcHit::eta() const { return m_pars.eta; }
16  int MuonCalibRawTgcHit::phi() const { return m_pars.phi; }
17  int MuonCalibRawTgcHit::gasGap() const { return m_pars.gasGap; }
18  int MuonCalibRawTgcHit::isStrip() const { return m_pars.isStrip; }
19  int MuonCalibRawTgcHit::channel() const { return m_pars.channel; }
20  int MuonCalibRawTgcHit::bcTag() const { return m_pars.bcTag; }
21 
22  float MuonCalibRawTgcHit::width() const { return m_pars.width; }
25  float MuonCalibRawTgcHit::length() const { return m_pars.length; }
26 
37 
42 
43  std::ostream& MuonCalibRawTgcHit::dump(std::ostream& stream) const {
44  stream << "MuonCalibRawTgcHit with" << std::endl;
45  stream << " identifier " << identify() << std::endl;
46  stream << " global position " << globalPosition() << std::endl;
47  stream << " occupancy " << occupancy() << std::endl;
48  stream << " station " << station() << std::endl;
49  stream << " eta " << eta() << std::endl;
50  stream << " phi " << phi() << std::endl;
51  stream << " gasGap " << gasGap() << std::endl;
52  stream << " isStrip " << isStrip() << std::endl;
53  stream << " channel " << channel() << std::endl;
54  stream << " bcTag " << bcTag() << std::endl;
55  stream << " width " << width() << std::endl;
56  stream << " shortWidth " << shortWidth() << std::endl;
57  stream << " longWidth " << longWidth() << std::endl;
58  stream << " length " << length() << std::endl;
59  return stream;
60  }
61 
63 } // namespace MuonCalib
64 
65 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawTgcHit& hit) { return hit.dump(stream); }
66 
67 //} //namespace MuonCalib
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
dumpTgcDigiDeadChambers.gasGap
list gasGap
Definition: dumpTgcDigiDeadChambers.py:33
MuonCalib::MuonCalibRawTgcHit::setLongWidth
void setLongWidth(float longWidth)
sets the strip width
Definition: MuonCalibRawTgcHit.cxx:40
MuonCalib::MuonCalibRawTgcHit::defineParams::station
int station
Definition: MuonCalibRawTgcHit.h:42
MuonCalib::MuonCalibRawTgcHit::phi
int phi() const
Definition: MuonCalibRawTgcHit.cxx:16
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
MuonCalib::MuonCalibRawTgcHit::setStation
void setStation(int station)
Definition: MuonCalibRawTgcHit.cxx:30
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcHit &hit)
Definition: MuonCalibRawTgcHit.cxx:65
MuonCalib::MuonCalibRawTgcHit::setPhi
void setPhi(int phi)
Definition: MuonCalibRawTgcHit.cxx:32
MuonCalib::MuonCalibRawTgcHit::defineParams::shortWidth
float shortWidth
Definition: MuonCalibRawTgcHit.h:51
MuonCalib::MuonCalibRawTgcHit::defineParams::length
float length
strip length
Definition: MuonCalibRawTgcHit.h:53
MuonCalib::MuonCalibRawTgcHit::eta
int eta() const
Definition: MuonCalibRawTgcHit.cxx:15
MuonCalib::MuonCalibRawTgcHit::defineParams::id
MuonFixedId id
identifier of the raw hit, (is a MuonFixedId, not an Identifier)
Definition: MuonCalibRawTgcHit.h:39
MuonCalib::MuonCalibRawTgcHit::setChannel
void setChannel(int channel)
Definition: MuonCalibRawTgcHit.cxx:35
MuonCalib::MuonCalibRawTgcHit::defineParams::longWidth
float longWidth
strip width
Definition: MuonCalibRawTgcHit.h:52
MuonCalib::MuonCalibRawTgcHit::width
float width() const
Definition: MuonCalibRawTgcHit.cxx:22
MuonCalib::MuonCalibRawTgcHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition: MuonCalibRawTgcHit.cxx:29
MuonCalib::MuonCalibRawTgcHit::isStrip
int isStrip() const
Definition: MuonCalibRawTgcHit.cxx:18
MuonCalib::MuonCalibRawTgcHit::setLength
void setLength(float length)
sets the strip length
Definition: MuonCalibRawTgcHit.cxx:41
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRawTgcHit::defineParams::gasGap
int gasGap
Definition: MuonCalibRawTgcHit.h:45
MuonCalib::MuonCalibRawTgcHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawTgcHit.cxx:13
MuonCalib::MuonCalibRawTgcHit::defineParams::occupancy
int occupancy
occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawTgcHit.h:41
MuonCalib::MuonCalibRawTgcHit::defineParams::phi
int phi
Definition: MuonCalibRawTgcHit.h:44
MuonCalib::MuonCalibRawTgcHit::setWidth
void setWidth(float width)
Definition: MuonCalibRawTgcHit.cxx:38
MuonCalib::MuonCalibRawTgcHit::setIsStrip
void setIsStrip(int isStrip)
Definition: MuonCalibRawTgcHit.cxx:34
MuonCalib::MuonCalibRawTgcHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition: MuonCalibRawTgcHit.cxx:28
MuonCalib::MuonCalibRawTgcHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRawTgcHit.cxx:11
MuonCalib::MuonCalibRawTgcHit::defineParams::eta
int eta
Definition: MuonCalibRawTgcHit.h:43
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawTgcHit::gasGap
int gasGap() const
Definition: MuonCalibRawTgcHit.cxx:17
MuonCalib::MuonCalibRawTgcHit::longWidth
float longWidth() const
Definition: MuonCalibRawTgcHit.cxx:24
MuonCalib::MuonCalibRawTgcHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawTgcHit.cxx:12
MuonCalib::MuonCalibRawTgcHit::m_pars
defineParams m_pars
Definition: MuonCalibRawTgcHit.h:93
MuonCalib::MuonCalibRawTgcHit::defineParams
Definition: MuonCalibRawTgcHit.h:38
MuonCalib::MuonCalibRawTgcHit::setGasGap
void setGasGap(int gasGap)
Definition: MuonCalibRawTgcHit.cxx:33
MuonCalib::MuonCalibRawTgcHit
Definition: MuonCalibRawTgcHit.h:28
MuonCalib::MuonCalibRawTgcHit::station
int station() const
Definition: MuonCalibRawTgcHit.cxx:14
dumpTgcDigiThreshold.isStrip
list isStrip
Definition: dumpTgcDigiThreshold.py:33
MuonCalib::MuonCalibRawTgcHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition: MuonCalibRawTgcHit.cxx:27
MuonCalib::MuonCalibRawTgcHit::length
float length() const
retrieve the strip length
Definition: MuonCalibRawTgcHit.cxx:25
MuonCalib::MuonCalibRawTgcHit::channel
int channel() const
Definition: MuonCalibRawTgcHit.cxx:19
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibRawTgcHit::setBcTag
void setBcTag(int bcTag)
Definition: MuonCalibRawTgcHit.cxx:36
MuonCalib::MuonCalibRawTgcHit::MuonCalibRawTgcHit
MuonCalibRawTgcHit()=default
default constructor
MuonCalib::MuonCalibRawTgcHit::defineParams::global_pos
Amg::Vector3D global_pos
position of the hit in global coordinates
Definition: MuonCalibRawTgcHit.h:40
MuonCalib::MuonCalibRawTgcHit::setEta
void setEta(int eta)
Definition: MuonCalibRawTgcHit.cxx:31
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
MuonCalibRawTgcHit.h
bcTag
unsigned bcTag(unsigned bcBitMap)
Definition: TgcByteStreamData.h:359
MuonCalib::MuonCalibRawTgcHit::bcTag
int bcTag() const
Definition: MuonCalibRawTgcHit.cxx:20
MuonCalib::MuonCalibRawTgcHit::defineParams::isStrip
int isStrip
Definition: MuonCalibRawTgcHit.h:46
MuonCalib::MuonCalibRawTgcHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawTgcHit
Definition: MuonCalibRawTgcHit.cxx:43
MuonCalib::MuonCalibRawTgcHit::defineParams::width
float width
Definition: MuonCalibRawTgcHit.h:50
MuonCalib::MuonCalibRawTgcHit::defineParams::channel
int channel
Definition: MuonCalibRawTgcHit.h:47
MuonCalib::MuonCalibRawTgcHit::defineParams::bcTag
int bcTag
Definition: MuonCalibRawTgcHit.h:48
MuonCalib::MuonCalibRawTgcHit::shortWidth
float shortWidth() const
Definition: MuonCalibRawTgcHit.cxx:23
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
MuonCalib::MuonCalibRawTgcHit::setShortWidth
void setShortWidth(float shortWidth)
Definition: MuonCalibRawTgcHit.cxx:39