Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloEmbedding
CaloReco
centrality
CentralityInfo.h
CentralityInfoLinkDef.h
CentralityInfov1.cc
CentralityInfov1.h
CentralityInfov1LinkDef.h
CentralityInfov2.cc
CentralityInfov2.h
CentralityInfov2LinkDef.h
CentralityReco.cc
CentralityReco.h
ClusterIso
compressor
decayfinder
epd
eventplaneinfo
globalvertex
Half
HFTrackEfficiency
intt
jetbackground
jetbase
KFParticle_sPHENIX
mbd
micromegas
mvtx
NodeDump
particleflow
PHField
PHGenFitPkg
PHGeometry
QAUtils
rawtodst
ResonanceJetTagging
tpc
tpccalib
tpcdaq
TPCHitTrackDisplay
trackbase
trackbase_historic
TrackerMillepedeAlignment
TrackingDiagnostics
trackreco
trigger
vararray
QA
simulation
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
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