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
CentralityInfov2.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CentralityInfov2.cc
1
#include "
CentralityInfov2.h
"
2
3
#include <limits>
4
5
void
CentralityInfov2::identify
(std::ostream&
os
)
const
6
{
7
os <<
" CentralityInfo: "
<< std::endl;
8
os <<
" Centrile: "
<< (
has_centile
(CentralityInfo::PROP::mbd_NS) ?
get_centile
(CentralityInfo::PROP::mbd_NS) : -999.99) << std::endl;
9
os <<
" CentBin : "
<< (
has_centrality_bin
(CentralityInfo::PROP::mbd_NS) ?
get_centrality_bin
(CentralityInfo::PROP::mbd_NS) : -999.99) << std::endl;
10
11
return
;
12
}
13
14
bool
CentralityInfov2::has_centrality_bin
(
const
PROP
prop_id)
const
15
{
16
return
_centrality_bin_map
.find(prop_id) !=
_centrality_bin_map
.end();
17
}
18
19
void
CentralityInfov2::set_centrality_bin
(
const
PROP
prop_id,
int
value
)
20
{
21
_centrality_bin_map
[prop_id] =
value
;
22
}
23
24
int
CentralityInfov2::get_centrality_bin
(
const
PROP
prop_id)
const
25
{
26
if
(!
has_centrality_bin
(prop_id))
27
{
28
return
std::numeric_limits<int>::quiet_NaN();
29
}
30
else
31
{
32
return
_centrality_bin_map
.at(prop_id);
33
}
34
}
coresoftware
blob
master
offline
packages
centrality
CentralityInfov2.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:05
using
1.8.2 with
sPHENIX GitHub integration