Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
TileCalorimeter
TileCalib
TileCalibAlgs
src
TileSimpleStat.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TileCalibObjects_TileSimpleStat_h
6
#define TileCalibObjects_TileSimpleStat_h
7
8
#include <cmath>
9
10
class
TileSimpleStat
{
11
public
:
12
TileSimpleStat
():
m_entries
(0),
m_sum
(0.0),
m_sqSum
(0.0) {
13
}
14
15
inline
void
add
(
double
val
) {
16
m_entries
++;
17
m_sum
+=
val
;
18
m_sqSum
+=
val
*
val
;
19
}
20
21
inline
void
getStat
(
double
&
mean
,
double
&
sigma
) {
22
mean
=
m_sum
/
static_cast<
double
>
(
m_entries
);
23
sigma
= sqrt((
m_sqSum
-
static_cast<
double
>
(
m_entries
)*
mean
*
mean
)/
static_cast<
double
>
(
m_entries
-1));
24
}
25
26
private
:
27
unsigned
int
m_entries
;
28
double
m_sum
;
29
double
m_sqSum
;
30
};
31
32
#endif // TileCalibObjects_TileSimpleStat_h
pdg_comparison.sigma
sigma
Definition:
pdg_comparison.py:324
mean
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
Definition:
dependence.cxx:254
TileSimpleStat::getStat
void getStat(double &mean, double &sigma)
Definition:
TileSimpleStat.h:21
TileSimpleStat
Definition:
TileSimpleStat.h:10
TileSimpleStat::m_sum
double m_sum
Definition:
TileSimpleStat.h:28
TileSimpleStat::m_entries
unsigned int m_entries
Definition:
TileSimpleStat.h:27
TileSimpleStat::add
void add(double val)
Definition:
TileSimpleStat.h:15
Pythia8_RapidityOrderMPI.val
val
Definition:
Pythia8_RapidityOrderMPI.py:14
TileSimpleStat::TileSimpleStat
TileSimpleStat()
Definition:
TileSimpleStat.h:12
TileSimpleStat::m_sqSum
double m_sqSum
Definition:
TileSimpleStat.h:29
Generated on Sun May 11 2025 21:19:46 for ATLAS Offline Software by
1.8.18