ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonDQA
MuonRawDataMonitoring
TgcRawDataMonitoring
src
TgcHit.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TGCRAWDATAMONITORING_TGCHIT_H
5
#define TGCRAWDATAMONITORING_TGCHIT_H
6
#include "
TgcChamber.h
"
7
#include <map>
8
#include "
xAODMuon/Muon.h
"
9
namespace
TGC
{
10
11
class
TgcHit
:
public
TgcChamber
{
12
public
:
13
TgcHit
(
double
x
,
double
y
,
double
z
,
14
double
shortWidth
,
double
longWidth
,
double
length
,
15
bool
isStrip
,
int
gasGap
,
int
channel
,
int
eta
,
int
phi
,
int
station,
int
bcmask
);
16
17
const
double
&
X
()
const
;
18
const
double
&
Y
()
const
;
19
const
double
&
Z
()
const
;
20
const
double
&
shortWidth
()
const
;
21
const
double
&
longWidth
()
const
;
22
const
double
&
length
()
const
;
23
const
bool
&
isStrip
()
const
;
24
const
int
&
gasGap
()
const
;
25
const
int
&
channel
()
const
;
26
const
int
&
stationEta
()
const
;
27
const
int
&
stationPhi
()
const
;
28
const
int
&
stationName
()
const
;
29
const
int
&
bcmask
()
const
;
30
const
std::string&
gap_name
()
const
;
31
const
std::string&
type_name
()
const
;
32
const
std::string&
channel_name
()
const
;
33
const
std::map<const xAOD::Muon*,const double>&
residuals
()
const
;
34
void
addResidual
(
const
xAOD::Muon
* m,
const
double
v);
35
36
private
:
37
double
m_x
{};
38
double
m_y
{};
39
double
m_z
{};
40
double
m_shortWidth
{};
41
double
m_longWidth
{};
42
double
m_length
{};
43
bool
m_isStrip
{};
44
int
m_gasGap
{};
45
int
m_channel
{};
46
int
m_stationEta
{};
47
int
m_stationPhi
{};
48
int
m_stationName
{};
49
int
m_bcmask
{};
50
std::map<const xAOD::Muon*,const double>
m_residuals
{};
51
std::string
m_gap_name
{
"none"
};
52
std::string
m_type_name
{
"none"
};
53
std::string
m_channel_name
{
"none"
};
54
};
55
56
inline
const
double
&
TgcHit::X
()
const
{
return
m_x
;}
57
inline
const
double
&
TgcHit::Y
()
const
{
return
m_y
;}
58
inline
const
double
&
TgcHit::Z
()
const
{
return
m_z
;}
59
inline
const
double
&
TgcHit::shortWidth
()
const
{
return
m_shortWidth
;}
60
inline
const
double
&
TgcHit::longWidth
()
const
{
return
m_longWidth
;}
61
inline
const
double
&
TgcHit::length
()
const
{
return
m_length
;}
62
inline
const
bool
&
TgcHit::isStrip
()
const
{
return
m_isStrip
;}
63
inline
const
int
&
TgcHit::gasGap
()
const
{
return
m_gasGap
;}
64
inline
const
int
&
TgcHit::channel
()
const
{
return
m_channel
;}
65
inline
const
int
&
TgcHit::stationEta
()
const
{
return
m_stationEta
;}
66
inline
const
int
&
TgcHit::stationPhi
()
const
{
return
m_stationPhi
;}
67
inline
const
int
&
TgcHit::stationName
()
const
{
return
m_stationName
;}
68
inline
const
int
&
TgcHit::bcmask
()
const
{
return
m_bcmask
;}
69
inline
const
std::string&
TgcHit::gap_name
()
const
{
return
m_gap_name
;}
70
inline
const
std::string&
TgcHit::type_name
()
const
{
return
m_type_name
;}
71
inline
const
std::string&
TgcHit::channel_name
()
const
{
return
m_channel_name
;}
72
inline
const
std::map<const xAOD::Muon*,const double>&
TgcHit::residuals
()
const
{
return
m_residuals
;}
73
inline
void
TgcHit::addResidual
(
const
xAOD::Muon
* m,
const
double
v) {
m_residuals
.insert(std::make_pair(m,v));}
74
75
}
76
#endif
77
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
Muon.h
TgcChamber.h
y
#define y
x
#define x
z
#define z
TGC::TgcChamber::TgcChamber
TgcChamber()=default
TGC::TgcHit::gasGap
const int & gasGap() const
Definition
TgcHit.h:63
TGC::TgcHit::m_stationEta
int m_stationEta
Definition
TgcHit.h:46
TGC::TgcHit::m_y
double m_y
Definition
TgcHit.h:38
TGC::TgcHit::longWidth
const double & longWidth() const
Definition
TgcHit.h:60
TGC::TgcHit::isStrip
const bool & isStrip() const
Definition
TgcHit.h:62
TGC::TgcHit::m_length
double m_length
Definition
TgcHit.h:42
TGC::TgcHit::m_isStrip
bool m_isStrip
Definition
TgcHit.h:43
TGC::TgcHit::shortWidth
const double & shortWidth() const
Definition
TgcHit.h:59
TGC::TgcHit::gap_name
const std::string & gap_name() const
Definition
TgcHit.h:69
TGC::TgcHit::m_stationPhi
int m_stationPhi
Definition
TgcHit.h:47
TGC::TgcHit::m_shortWidth
double m_shortWidth
Definition
TgcHit.h:40
TGC::TgcHit::m_z
double m_z
Definition
TgcHit.h:39
TGC::TgcHit::residuals
const std::map< const xAOD::Muon *, const double > & residuals() const
Definition
TgcHit.h:72
TGC::TgcHit::m_bcmask
int m_bcmask
Definition
TgcHit.h:49
TGC::TgcHit::type_name
const std::string & type_name() const
Definition
TgcHit.h:70
TGC::TgcHit::m_type_name
std::string m_type_name
Definition
TgcHit.h:52
TGC::TgcHit::m_stationName
int m_stationName
Definition
TgcHit.h:48
TGC::TgcHit::channel_name
const std::string & channel_name() const
Definition
TgcHit.h:71
TGC::TgcHit::bcmask
const int & bcmask() const
Definition
TgcHit.h:68
TGC::TgcHit::X
const double & X() const
Definition
TgcHit.h:56
TGC::TgcHit::m_residuals
std::map< const xAOD::Muon *, const double > m_residuals
Definition
TgcHit.h:50
TGC::TgcHit::length
const double & length() const
Definition
TgcHit.h:61
TGC::TgcHit::addResidual
void addResidual(const xAOD::Muon *m, const double v)
Definition
TgcHit.h:73
TGC::TgcHit::stationEta
const int & stationEta() const
Definition
TgcHit.h:65
TGC::TgcHit::m_channel_name
std::string m_channel_name
Definition
TgcHit.h:53
TGC::TgcHit::m_gap_name
std::string m_gap_name
Definition
TgcHit.h:51
TGC::TgcHit::m_gasGap
int m_gasGap
Definition
TgcHit.h:44
TGC::TgcHit::TgcHit
TgcHit(double x, double y, double z, double shortWidth, double longWidth, double length, bool isStrip, int gasGap, int channel, int eta, int phi, int station, int bcmask)
Definition
TgcHit.cxx:7
TGC::TgcHit::channel
const int & channel() const
Definition
TgcHit.h:64
TGC::TgcHit::Z
const double & Z() const
Definition
TgcHit.h:58
TGC::TgcHit::Y
const double & Y() const
Definition
TgcHit.h:57
TGC::TgcHit::m_x
double m_x
Definition
TgcHit.h:37
TGC::TgcHit::m_channel
int m_channel
Definition
TgcHit.h:45
TGC::TgcHit::stationPhi
const int & stationPhi() const
Definition
TgcHit.h:66
TGC::TgcHit::stationName
const int & stationName() const
Definition
TgcHit.h:67
TGC::TgcHit::m_longWidth
double m_longWidth
Definition
TgcHit.h:41
TGC
Definition
TgcBase.h:6
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
Generated on
for ATLAS Offline Software by
1.17.0