ThePEG 2.3.0
|
The HepMCTraits class is used to deal with different flavours of HepMC in the HepMCConverter class. More...
#include <HepMCTraits.h>
The HepMCTraits class is used to deal with different flavours of HepMC in the HepMCConverter class.
To use the HepMCConverter class for any flavour of HepMC you have to specialize the HepMCTraits class accordingly, possibly inheriting the functionality from the HepMCTraitsBase class and only overriding the functions and typedefs which are different. For the CLHEP flavour of HepMC you only need to do template<> struct HepMCTraits<HepMC::GenEvent>: public HepMCTraitsBase<HepMC::GenEvent,HepMC::GenParticle,HepMC::GenVertex, HepMC::Polarization,HepMC::PdfInfo> {};
somewhere inside the ThePEG namespace.
Definition at line 359 of file HepMCTraits.h.