HepMC3 event record library
McTesterValidationTool.cc
1 // -*- C++ -*-
2 //
3 // This file is part of HepMC
4 // Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
5 //
6 #include "McTesterValidationTool.h"
7 
9  HEPMC2CODE( ::Setup::stage = 1; )
10  HEPMC3CODE( ::Setup::stage = 2; )
11  MC_Initialize();
12 }
13 
15  HEPMC2CODE( HepMCEvent mc_tester(hepmc,false); )
16  HEPMC3CODE( HepMC3Event mc_tester(hepmc,false); )
17 
18  MC_Analyze(&mc_tester);
19 
20  return 0;
21 }
22 
24  MC_Finalize();
25 }
Stores event-related information.
Definition: GenEvent.h:41
HEPEvent Interface to HepMC classes.
Definition: HepMC3Event.h:30
int process(GenEvent &hepmc)
Process event.
void initialize()
Initialize.