ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace MuonCalib {
10
11 const MuonFixedId& MuonCalibRawTgcHit::identify() const { return m_pars.id; }
12 const Amg::Vector3D& MuonCalibRawTgcHit::globalPosition() const { return m_pars.global_pos; }
13 int MuonCalibRawTgcHit::occupancy() const { return m_pars.occupancy; }
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; }
23 float MuonCalibRawTgcHit::shortWidth() const { return m_pars.shortWidth; }
24 float MuonCalibRawTgcHit::longWidth() const { return m_pars.longWidth; }
25 float MuonCalibRawTgcHit::length() const { return m_pars.length; }
26
28 void MuonCalibRawTgcHit::setGlobalPosition(const Amg::Vector3D& glob) { m_pars.global_pos = glob; }
29 void MuonCalibRawTgcHit::setOccupancy(int occ) { m_pars.occupancy = occ; }
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
65std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawTgcHit& hit) { return hit.dump(stream); }
66
67//} //namespace MuonCalib
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcHit &hit)
Calib-EDM version of TgcPrepData class, containing uncalibrated information.
MuonCalibRawTgcHit()=default
default constructor
void setLongWidth(float longWidth)
sets the strip width
void setLength(float length)
sets the strip length
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawTgcHit
void setShortWidth(float shortWidth)
float length() const
retrieve the strip length
const MuonFixedId & identify() const
retrieve the MuonFixedId
void setId(MuonFixedId Id)
sets the MuonFixedId
void setOccupancy(int occ)
sets the occupancy
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.