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
blob
master
A_N
Ana
AndersonAnalysisModules
AntiSigma
BBCStudy
Calo_Validation_Package
Calo_waveform_sim
Calorimeter
CalorimeterEmbedding
CalorimeterJets
cdbEMCalExample
cemcRecoAna
Centrality_Validation_Package
dNdEta_Run2023
EIC-IR
EIC-SynRad
EICAnalysis
EICMCAnalysis
EICTrigger
ElectronID
EMCal-analysis
EMCal-calibration
EMCal-commissioning
EMCal-LEDs
EMCal-position-dependent-calibration
EMCal-QA
EMCal_pi0_Calib_2023
EMCTemplateFitting
EpFinder
Event-Display
EventMix
FilterEvents
FilterEventsUpsilon
Fluence
ForwardCalo
ForwardTracking
FrawleyTrackEvalMacros
hbcup
HCal-analysis
HCalCosmicCalib
HCalHotTowerFinder
HCalib
HcalSingleHadronCalib
HF-Jet
HF-Particle
isoCluster
IsolatedTrackAnalysis
JS-Jet
mbdAnalysis
MBDStudy
MultiDetectorMultiplicity
MvtxTelescope
mybuild
ParticleID
MachineLearning
RICHAnalysis
dualrich_analyzer.cc
dualrich_analyzer.h
FastPid_RICH.C
FastPid_RICH.h
FastPid_RICHLinkDef.h
PidInfo.h
PidInfo_RICH_v1.cc
PidInfo_RICH_v1.h
PidInfo_RICH_v1LinkDef.h
PidInfoContainer.cc
PidInfoContainer.h
PidInfoContainerLinkDef.h
PidInfoLinkDef.h
PIDProbabilities.cc
PIDProbabilities.h
Poisson.cc
Poisson.h
RICHEvaluator.C
RICHEvaluator.h
RICHEvaluatorLinkDef.h
RICHParticleID.C
RICHParticleID.h
RICHParticleIDLinkDef.h
SetupDualRICHAnalyzer.cc
SetupDualRICHAnalyzer.h
TrackProjectorPid.cc
TrackProjectorPid.h
RICHAnalysis_macros
PHFlowJetMaker
PhotonConversion
PhotonJet
pi0ClusterAna
pi0Efficiency
Pi0MassAnalysis
Prototype2
Prototype3
Prototype4
psTOF
pythiaEMCalAna
pythiaInfo
QuarkoniaBG
quickHIJING
ResonanceJetTaggingOutputs
runTrackingDiagnostics
Shift_emcal_g4hits
SimpleTrackingAnalysis
singlePhotonClusterAna
sPhenixAj
SvtxSimPerformanceCheckReco
TemplateCreation
Test
TowerInfoExample
TPC
TPC-ClusterAnimation
TPC-GemGain
Tracking
TrackPid
TreeMaker
ZDC-CALIB
analysis_tpc_prototype
coresoftware
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
Poisson.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Poisson.cc
1
// Some documentation //
2
3
#include "
Poisson.h
"
4
5
using namespace
std;
6
7
8
long
double
9
Poisson::poisson_prob
(
double
mean
,
int
value
){
10
11
double
prob = exp1( mean, value ) * exp2(mean) / fact(value);
12
return
prob;
13
14
}
15
16
long
double
17
Poisson::exp1
(
double
mean
,
int
value
){
18
19
long
double
output
= pow( mean, value );
20
return
output
;
21
22
}
23
24
long
double
25
Poisson::exp2
(
double
mean
){
26
27
long
double
output
= pow( 2.718, -1*mean );
28
return
output
;
29
30
}
31
32
long
double
33
Poisson::fact
(
int
value
){
34
35
long
double
output
= 1;
36
37
for
(
int
i
= 1;
i
<=
value
; ++
i
)
38
output *=
i
;
39
40
return
output
;
41
42
}
analysis
blob
master
ParticleID
RICHAnalysis
Poisson.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:54
using
1.8.2 with
sPHENIX GitHub integration