ATLAS Offline Software
Trigger
TrigAnalysis
TrigInDetAnalysisUser
Analysis
src
BinConfig.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
14
#ifndef BINCONFIG_H
15
#define BINCONFIG_H
16
17
#include <iostream>
18
#include <string>
19
20
#include "
ReadCards.h
"
21
22
struct
BinConfig
{
23
24
public
:
25
26
BinConfig
(
const
std::string&
n
=
""
) :
27
_name
(
n
),
29
pt_NScale
(1),
30
eta_NScale
(1),
31
phi_NScale
(1),
32
d0_NScale
(1),
33
a0_NScale
(1),
34
z0_NScale
(1),
36
ptres_NScale
(1),
37
etares_NScale
(1),
38
phires_NScale
(1),
39
d0res_NScale
(1),
40
a0res_NScale
(1),
41
z0res_NScale
(1),
42
d0Max
(30),
43
a0Max
(15),
44
z0Max
(300)
45
{ }
46
47
virtual
~BinConfig
() { }
48
49
50
void
set
(
ReadCards
&
r
,
const
std::string&
n
) {
51
r
.Set(
n
+
"ptNScale"
,
pt_NScale
);
52
r
.Set(
n
+
"etaNScale"
,
eta_NScale
);
53
r
.Set(
n
+
"phiNScale"
,
phi_NScale
);
54
r
.Set(
n
+
"d0NScale"
,
d0_NScale
);
55
r
.Set(
n
+
"a0NScale"
,
a0_NScale
);
56
r
.Set(
n
+
"z0NScale"
,
z0_NScale
);
57
r
.Set(
n
+
"d0Max"
,
d0Max
);
58
r
.Set(
n
+
"a0Max"
,
a0Max
);
59
r
.Set(
n
+
"z0Max"
,
z0Max
);
60
}
61
62
void
set
(
ReadCards
&
r
) {
63
if
(
_name
!=
""
)
set
(
r
,
_name
+
"_"
);
64
else
set
(
r
,
""
);
65
}
66
67
std::string
_name
;
68
69
double
pt_NScale
;
70
double
eta_NScale
;
71
double
phi_NScale
;
72
double
d0_NScale
;
73
double
a0_NScale
;
74
double
z0_NScale
;
75
77
double
ptres_NScale
;
78
double
etares_NScale
;
79
double
phires_NScale
;
80
double
d0res_NScale
;
81
double
a0res_NScale
;
82
double
z0res_NScale
;
83
84
double
d0Max
;
85
double
a0Max
;
86
double
z0Max
;
87
88
};
89
90
inline
std::ostream&
operator<<
( std::ostream&
s
,
const
BinConfig
&
b
) {
91
return
s
<<
"\n\t[ config: "
<<
b
._name <<
" Nbins scale factors : "
92
<<
"\t pt: "
<<
b
.pt_NScale
93
<<
" eta: "
<<
b
.eta_NScale
94
<<
" phi: "
<<
b
.phi_NScale
95
<<
" d0: "
<<
b
.d0_NScale
96
<<
" a0: "
<<
b
.a0_NScale
97
<<
" z0: "
<<
b
.z0_NScale
98
<<
"\n\t residuals bins:\n"
99
<<
"\t pt: "
<<
b
.ptres_NScale
100
<<
" eta: "
<<
b
.etares_NScale
101
<<
" phi: "
<<
b
.phires_NScale
102
<<
" d0: "
<<
b
.d0res_NScale
103
<<
" a0: "
<<
b
.a0res_NScale
104
<<
" z0: "
<<
b
.z0res_NScale
105
<<
"\n\t ranges:\n"
106
<<
" d0: "
<<
b
.d0Max
107
<<
" a0: "
<<
b
.a0Max
108
<<
" ]"
;
109
}
110
111
112
#endif // BINCONFIG_H
113
114
115
116
117
118
119
120
121
122
BinConfig::z0_NScale
double z0_NScale
Definition:
BinConfig.h:74
beamspotman.r
def r
Definition:
beamspotman.py:676
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
BinConfig::_name
std::string _name
Definition:
BinConfig.h:67
BinConfig::z0Max
double z0Max
Definition:
BinConfig.h:86
BinConfig::eta_NScale
double eta_NScale
Definition:
BinConfig.h:70
BinConfig::z0res_NScale
double z0res_NScale
Definition:
BinConfig.h:82
BinConfig::phires_NScale
double phires_NScale
Definition:
BinConfig.h:79
BinConfig::set
void set(ReadCards &r)
Definition:
BinConfig.h:62
BinConfig::d0res_NScale
double d0res_NScale
Definition:
BinConfig.h:80
ReadCards
Get tag-value pairs from a file.
Definition:
ReadCards.h:50
ReadCards.h
operator<<
std::ostream & operator<<(std::ostream &s, const BinConfig &b)
Definition:
BinConfig.h:90
beamspotman.n
n
Definition:
beamspotman.py:731
BinConfig::BinConfig
BinConfig(const std::string &n="")
Definition:
BinConfig.h:26
BinConfig
Definition:
BinConfig.h:22
BinConfig::set
void set(ReadCards &r, const std::string &n)
Definition:
BinConfig.h:50
BinConfig::a0Max
double a0Max
Definition:
BinConfig.h:85
BinConfig::phi_NScale
double phi_NScale
Definition:
BinConfig.h:71
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
BinConfig::a0res_NScale
double a0res_NScale
Definition:
BinConfig.h:81
BinConfig::d0Max
double d0Max
Definition:
BinConfig.h:84
BinConfig::ptres_NScale
double ptres_NScale
scales for the residuals
Definition:
BinConfig.h:77
BinConfig::a0_NScale
double a0_NScale
Definition:
BinConfig.h:73
BinConfig::pt_NScale
double pt_NScale
Definition:
BinConfig.h:69
BinConfig::etares_NScale
double etares_NScale
Definition:
BinConfig.h:78
BinConfig::d0_NScale
double d0_NScale
Definition:
BinConfig.h:72
BinConfig::~BinConfig
virtual ~BinConfig()
Definition:
BinConfig.h:47
Generated on Thu Nov 7 2024 21:10:46 for ATLAS Offline Software by
1.8.18