Skip to content

Commit

Permalink
fix small nMCP in UTIL::ProcessFlag::decodeMCTruthProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
gaede committed Aug 26, 2020
1 parent fbe083b commit 4785239
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cpp/src/UTIL/ProcessFlag.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ namespace UTIL{
int n_parentless = 0;
EVENT::MCParticleVec hf_vec;

for( int i=0 ; i<maxParticles ; ++i){
int nP = maxParticles > col->getNumberOfElements() ? col->getNumberOfElements() : maxParticles ;

for( int i=0 ; i<nP ; ++i){
auto* mcp = static_cast<EVENT::MCParticle*>( col->getElementAt(i) ) ;

if( mcp->getGeneratorStatus() == 3 ){
Expand Down

0 comments on commit 4785239

Please sign in to comment.