Skip to content

Commit

Permalink
remove unnecessary instantiation of CLHEP::RandPoissonQ, use static i…
Browse files Browse the repository at this point in the history
…nstead
  • Loading branch information
lgray committed Sep 13, 2016
1 parent ba7bdf3 commit 51c8772
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SimCalorimetry/EcalSimAlgos/src/EcalHitResponse.cc
Expand Up @@ -263,8 +263,7 @@ EcalHitResponse::analogSignalAmplitude( const DetId& detId, float energy, CLHEP:

// do we need to doPoisson statistics for the photoelectrons?
if( parameters.doPhotostatistics() ) {
CLHEP::RandPoissonQ randPoissonQ(*engine, npe);
npe = randPoissonQ.fire();
npe = CLHEP::RandPoissonQ::shoot(engine, npe);
}
if( 0 != m_PECorrection ) npe = m_PECorrection->correctPE( detId, npe, engine ) ;

Expand Down

0 comments on commit 51c8772

Please sign in to comment.