Skip to content
Snippets Groups Projects

Adding in protection for a crash when dumping or converting GenEvent/HepMC3...

Closed R D Schaffer requested to merge schaffer/athena:main-HepMC3_GenVtx_position_bug into main
1 unresolved thread
3 files
+ 32
11
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -26,6 +26,8 @@ if __name__=='__main__':
help='Print out particle 4-mom as pt,eta,phi. Default is px,py,pz.')
parser.add_argument('--HepMCContainerKey', default="",
help='HepMC container key. If not given, set to GEN_EVENT for EVNT file. Should be TruthEvent for HITS or RDO file, which is set automatically if HITS or RDO is in file name.')
parser.add_argument('--maxEvents', default=1,
help='Set number of events to read. Default is 1.')
parser.set_defaults(threads=1)
args, _ = parser.parse_known_args()
@@ -86,5 +88,5 @@ if __name__=='__main__':
from AthenaConfiguration.Utils import setupLoggingLevels
setupLoggingLevels(flags, acc)
statusCode = acc.run(maxEvents = 1)
statusCode = acc.run(maxEvents = int(args.maxEvents))
assert statusCode.isSuccess() is True, "Application execution did not succeed"
Loading