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
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
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonHoughPatternEvent
src
MuonHoughHisto2DContainer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonHoughPatternEvent/MuonHoughHisto2DContainer.h
"
6
7
MuonHoughHisto2DContainer::MuonHoughHisto2DContainer
() =
default
;
8
9
std::pair<int, int>
MuonHoughHisto2DContainer::getMaximumBinnumber
()
const
{
10
11
double
maximum{0.};
12
int
maxid{-1}, maxbin{-1};
13
for
(
int
histoid = 0; histoid <
size
(); histoid++) {
14
std::pair<int, double> histomax =
15
getHisto
(histoid)->
getMaximumBin
(0);
// binnumber and value of the area of the bin
16
17
if
(histomax.second > maximum) {
18
maximum = histomax.second;
19
maxid = histoid;
20
maxbin = histomax.first;
21
}
22
}
23
return
std::make_pair(maxid, maxbin);
24
}
25
26
void
MuonHoughHisto2DContainer::reset
()
const
{
27
for
(
int
histoid = 0; histoid <
size
(); histoid++) {
getHisto
(histoid)->
reset
(); }
28
}
MuonHoughHisto2DContainer::getHisto
MuonHoughHisto2D * getHisto(int id) const
return histogram at place id
Definition:
MuonHoughHisto2DContainer.h:39
MuonHoughHisto2DContainer::size
int size() const
returns size of container
Definition:
MuonHoughHisto2DContainer.h:38
MuonHoughHisto2DContainer::reset
void reset() const
resets histograms
Definition:
MuonHoughHisto2DContainer.cxx:26
MuonHoughHisto2D::reset
void reset()
clears histogram and bins_above_threshold
Definition:
MuonHoughHisto2D.cxx:36
MuonHoughHisto2DContainer.h
MuonHoughHisto2DContainer::getMaximumBinnumber
std::pair< int, int > getMaximumBinnumber() const
return maximum of container gives first id histogram (sector) and then maximumbin
Definition:
MuonHoughHisto2DContainer.cxx:9
MuonHoughHisto2D::getMaximumBin
std::pair< int, double > getMaximumBin(unsigned int maximum_number=0)
returns binnumber and maximum of maximum number maximum_number
Definition:
MuonHoughHisto2D.cxx:111
MuonHoughHisto2DContainer::MuonHoughHisto2DContainer
MuonHoughHisto2DContainer()
constructor
Generated on Sat Mar 29 2025 21:15:17 for ATLAS Offline Software by
1.8.18