Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CentralityInfov1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CentralityInfov1.cc
1
#include "
CentralityInfov1.h
"
2
3
#include <limits>
4
5
void
CentralityInfov1::identify
(std::ostream&
os
)
const
6
{
7
os <<
"CentralityInfo: "
<< std::endl;
8
9
return
;
10
}
11
12
void
CentralityInfov1::Reset
()
13
{
14
_quantity_map
.clear();
15
_centile_map
.clear();
16
}
17
18
bool
CentralityInfov1::has_quantity
(
const
PROP
prop_id)
const
19
{
20
return
_quantity_map
.find(prop_id) !=
_quantity_map
.end();
21
}
22
23
void
CentralityInfov1::set_quantity
(
const
PROP
prop_id,
float
value
)
24
{
25
_quantity_map
[prop_id] =
value
;
26
}
27
28
float
CentralityInfov1::get_quantity
(
const
PROP
prop_id)
const
29
{
30
if
(!
has_quantity
(prop_id))
31
{
32
return
std::numeric_limits<float>::quiet_NaN();
33
}
34
else
35
{
36
return
_quantity_map
.at(prop_id);
37
}
38
}
39
40
bool
CentralityInfov1::has_centile
(
const
PROP
prop_id)
const
41
{
42
return
_centile_map
.find(prop_id) !=
_centile_map
.end();
43
}
44
45
void
CentralityInfov1::set_centile
(
const
PROP
prop_id,
float
value
)
46
{
47
_centile_map
[prop_id] =
value
;
48
}
49
50
float
CentralityInfov1::get_centile
(
const
PROP
prop_id)
const
51
{
52
if
(!
has_centile
(prop_id))
53
{
54
return
std::numeric_limits<float>::quiet_NaN();
55
}
56
else
57
{
58
return
_centile_map
.at(prop_id);
59
}
60
}
coresoftware
blob
master
offline
packages
centrality
CentralityInfov1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:05
using
1.8.2 with
sPHENIX GitHub integration