Skip to content
Snippets Groups Projects
Commit ce475eb3 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

Merge branch 'beambkg' into 'master'

Correct the beam particle number sampling in beam background simulation

See merge request !89
parents 00180ce7 e9d6d8e5
No related branches found
No related tags found
1 merge request!89Correct the beam particle number sampling in beam background simulation
Pipeline #14726 passed with stage
in 16 minutes and 28 seconds
......@@ -69,8 +69,7 @@ bool BeamBackgroundFileParserV1::load(IBeamBackgroundFileParser::BeamBackgroundD
bool BeamBackgroundFileParserV1::SampleParticleNum(int& npart, int& start ){
if(m_Nmcp==-1){
npart = int(m_rate * m_timewindow);
npart = CLHEP::RandPoisson::shoot(npart);
npart = int( CLHEP::RandPoisson::shoot(m_rate * m_timewindow) ) ;
}
else npart = m_Nmcp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment