Skip to content

Commit

Permalink
fix small nMCP for decodeProcessFlag in delphes2lcio
Browse files Browse the repository at this point in the history
  • Loading branch information
gaede committed Aug 26, 2020
1 parent f33500f commit fbe083b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/cpp/delphes2lcio/src/DelphesLCIOConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,9 @@ void DelphesLCIOConverter::convertTree2LCIO( TTree *tree , lcio::LCEventImpl* ev


#if LCIO_VERSION_GE( 2 , 15 )
ProcessFlag pFlag = decodeMCTruthProcess( mcps ) ;
const int maxParticles = 10 ; // defined in ProcessFlag.h
int nMCPCheck = maxParticles > mcps->getNumberOfElements() ? mcps->getNumberOfElements() : maxParticles ;
ProcessFlag pFlag = decodeMCTruthProcess( mcps, nMCPCheck ) ;
evts->setI( ESI::mcproc, pFlag ) ;
// std::cout << " ---- mc truth process : " << pFlag << std::endl ;
#endif
Expand Down

0 comments on commit fbe083b

Please sign in to comment.