2 #ifndef HEPMC_IO_HEPEVT_H
3 #define HEPMC_IO_HEPEVT_H
24 #include "HepMC/IO_BaseClass.h"
25 #include "HepMC/HEPEVT_Wrapper.h"
45 void print( std::ostream& ostr = std::cout )
const;
92 int i,std::vector<HepMC::GenParticle*>& hepevt_particle,
GenEvent* evt );
95 int i, std::vector<HepMC::GenParticle*>& hepevt_particle,
GenEvent* evt );
98 const std::map<HepMC::GenParticle*,int>& m,
GenParticle* p)
const;
105 bool m_trust_mothers_before_daughters;
106 bool m_trust_both_mothers_and_daughters;
107 bool m_print_inconsistency_errors;
108 bool m_trust_beam_particles;
115 {
return m_trust_both_mothers_and_daughters; }
118 {
return m_trust_mothers_before_daughters; }
121 {
return m_print_inconsistency_errors; }
124 { m_trust_both_mothers_and_daughters = b; }
127 { m_trust_mothers_before_daughters = b; }
130 { m_print_inconsistency_errors = b; }
133 {
return m_trust_beam_particles; }
136 { m_trust_beam_particles = b; }
140 #endif // HEPMC_IO_HEPEVT_H
bool print_inconsistency_errors() const
default is true
void set_trust_both_mothers_and_daughters(bool b=false)
define mother daughter trust rules
void set_trust_beam_particles(bool b=true)
declare whether or not beam particles exist
bool trust_mothers_before_daughters() const
default is true
void write_event(const GenEvent *)
write this GenEvent
GenParticle * build_particle(int index)
create a GenParticle
void build_end_vertex(int i, std::vector< HepMC::GenParticle * > &hepevt_particle, GenEvent *evt)
create an end vertex
The GenEvent class is the core of HepMC.
all input/output classes inherit from IO_BaseClass
int find_in_map(const std::map< HepMC::GenParticle *, int > &m, GenParticle *p) const
find this particle in the particle map
void build_production_vertex(int i, std::vector< HepMC::GenParticle * > &hepevt_particle, GenEvent *evt)
create a production vertex
void set_print_inconsistency_errors(bool b=true)
void set_trust_mothers_before_daughters(bool b=true)
define mother daughter trust rules
void print(std::ostream &ostr=std::cout) const
write output to ostr
bool fill_next_event(GenEvent *)
fill this GenEvent
bool trust_both_mothers_and_daughters() const
default is false
bool trust_beam_particles() const
default is true
The GenParticle class contains information about generated particles.