ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MuonCalibEventBase
src
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
5
#include "
MuonCalibEventBase/MuonCalibRawTgcHit.h
"
6
7
#include <iostream>
8
9
namespace
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
27
void
MuonCalibRawTgcHit::setId
(
MuonFixedId
Id) {
m_pars
.id = Id; }
28
void
MuonCalibRawTgcHit::setGlobalPosition
(
const
Amg::Vector3D
& glob) {
m_pars
.global_pos = glob; }
29
void
MuonCalibRawTgcHit::setOccupancy
(
int
occ) {
m_pars
.occupancy = occ; }
30
void
MuonCalibRawTgcHit::setStation
(
int
station
) {
m_pars
.station =
station
; }
31
void
MuonCalibRawTgcHit::setEta
(
int
eta
) {
m_pars
.eta =
eta
; }
32
void
MuonCalibRawTgcHit::setPhi
(
int
phi
) {
m_pars
.phi =
phi
; }
33
void
MuonCalibRawTgcHit::setGasGap
(
int
gasGap
) {
m_pars
.gasGap =
gasGap
; }
34
void
MuonCalibRawTgcHit::setIsStrip
(
int
isStrip
) {
m_pars
.isStrip =
isStrip
; }
35
void
MuonCalibRawTgcHit::setChannel
(
int
channel
) {
m_pars
.channel =
channel
; }
36
void
MuonCalibRawTgcHit::setBcTag
(
int
bcTag
) {
m_pars
.bcTag =
bcTag
; }
37
38
void
MuonCalibRawTgcHit::setWidth
(
float
width
) {
m_pars
.width =
width
; }
39
void
MuonCalibRawTgcHit::setShortWidth
(
float
shortWidth
) {
m_pars
.shortWidth =
shortWidth
; }
40
void
MuonCalibRawTgcHit::setLongWidth
(
float
longWidth
) {
m_pars
.longWidth =
longWidth
; }
41
void
MuonCalibRawTgcHit::setLength
(
float
length
) {
m_pars
.length =
length
; }
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
62
MuonCalibRawTgcHit::MuonCalibRawTgcHit
(
const
MuonCalibRawTgcHit::defineParams
& pars) :
m_pars
{pars} {}
63
}
// namespace MuonCalib
64
65
std::ostream&
operator<<
(std::ostream& stream,
const
MuonCalib::MuonCalibRawTgcHit
&
hit
) {
return
hit
.dump(stream); }
66
67
//} //namespace MuonCalib
hit
bool hit(const Container &ids, int pdgId)
Definition
JetIRCSafeLabelTool.cxx:64
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcHit &hit)
Definition
MuonCalibRawTgcHit.cxx:65
MuonCalibRawTgcHit.h
MuonCalib::MuonCalibRawTgcHit
Calib-EDM version of TgcPrepData class, containing uncalibrated information.
Definition
MuonCalibRawTgcHit.h:28
MuonCalib::MuonCalibRawTgcHit::MuonCalibRawTgcHit
MuonCalibRawTgcHit()=default
default constructor
MuonCalib::MuonCalibRawTgcHit::setBcTag
void setBcTag(int bcTag)
Definition
MuonCalibRawTgcHit.cxx:36
MuonCalib::MuonCalibRawTgcHit::setLongWidth
void setLongWidth(float longWidth)
sets the strip width
Definition
MuonCalibRawTgcHit.cxx:40
MuonCalib::MuonCalibRawTgcHit::setGasGap
void setGasGap(int gasGap)
Definition
MuonCalibRawTgcHit.cxx:33
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
MuonCalib::MuonCalibRawTgcHit::station
int station() const
Definition
MuonCalibRawTgcHit.cxx:14
MuonCalib::MuonCalibRawTgcHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition
MuonCalibRawTgcHit.cxx:28
MuonCalib::MuonCalibRawTgcHit::setWidth
void setWidth(float width)
Definition
MuonCalibRawTgcHit.cxx:38
MuonCalib::MuonCalibRawTgcHit::gasGap
int gasGap() const
Definition
MuonCalibRawTgcHit.cxx:17
MuonCalib::MuonCalibRawTgcHit::phi
int phi() const
Definition
MuonCalibRawTgcHit.cxx:16
MuonCalib::MuonCalibRawTgcHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition
MuonCalibRawTgcHit.cxx:12
MuonCalib::MuonCalibRawTgcHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition
MuonCalibRawTgcHit.cxx:13
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::eta
int eta() const
Definition
MuonCalibRawTgcHit.cxx:15
MuonCalib::MuonCalibRawTgcHit::setShortWidth
void setShortWidth(float shortWidth)
Definition
MuonCalibRawTgcHit.cxx:39
MuonCalib::MuonCalibRawTgcHit::width
float width() const
Definition
MuonCalibRawTgcHit.cxx:22
MuonCalib::MuonCalibRawTgcHit::setChannel
void setChannel(int channel)
Definition
MuonCalibRawTgcHit.cxx:35
MuonCalib::MuonCalibRawTgcHit::setIsStrip
void setIsStrip(int isStrip)
Definition
MuonCalibRawTgcHit.cxx:34
MuonCalib::MuonCalibRawTgcHit::setStation
void setStation(int station)
Definition
MuonCalibRawTgcHit.cxx:30
MuonCalib::MuonCalibRawTgcHit::m_pars
defineParams m_pars
Definition
MuonCalibRawTgcHit.h:93
MuonCalib::MuonCalibRawTgcHit::length
float length() const
retrieve the strip length
Definition
MuonCalibRawTgcHit.cxx:25
MuonCalib::MuonCalibRawTgcHit::bcTag
int bcTag() const
Definition
MuonCalibRawTgcHit.cxx:20
MuonCalib::MuonCalibRawTgcHit::shortWidth
float shortWidth() const
Definition
MuonCalibRawTgcHit.cxx:23
MuonCalib::MuonCalibRawTgcHit::longWidth
float longWidth() const
Definition
MuonCalibRawTgcHit.cxx:24
MuonCalib::MuonCalibRawTgcHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition
MuonCalibRawTgcHit.cxx:11
MuonCalib::MuonCalibRawTgcHit::channel
int channel() const
Definition
MuonCalibRawTgcHit.cxx:19
MuonCalib::MuonCalibRawTgcHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition
MuonCalibRawTgcHit.cxx:27
MuonCalib::MuonCalibRawTgcHit::setEta
void setEta(int eta)
Definition
MuonCalibRawTgcHit.cxx:31
MuonCalib::MuonCalibRawTgcHit::setPhi
void setPhi(int phi)
Definition
MuonCalibRawTgcHit.cxx:32
MuonCalib::MuonCalibRawTgcHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition
MuonCalibRawTgcHit.cxx:29
MuonCalib::MuonFixedId
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition
MuonFixedId.h:50
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition
CscCalcPed.cxx:21
MuonCalib::MuonCalibRawTgcHit::defineParams
Definition
MuonCalibRawTgcHit.h:38
Generated on
for ATLAS Offline Software by
1.17.0