11 #include "HepMC/GenEvent.h"
12 #include "HepMC/IO_GenEvent.h"
30 const char outfile[] =
"testPolarization.cout";
31 std::ofstream os( outfile );
33 std::cerr <<
"cannot open " << outfile << std::endl;
40 std::ofstream xout4(
"testPolarization4.out" );
41 std::ofstream xout5(
"testPolarization5.out" );
void set_signal_process_vertex(GenVertex *)
set pointer to the vertex containing the signal process
void add_particle_in(GenParticle *inparticle)
add incoming particle
particle_const_iterator particles_begin() const
begin particle iteration
void set_flow(const Flow &f)
set particle flow
non-const particle iterator
GenVertex contains information about decay vertices.
The GenEvent class is the core of HepMC.
IO_GenEvent also deals with HeavyIon and PdfInfo.
void add_particle_out(GenParticle *outparticle)
add outgoing particle
bool add_vertex(GenVertex *vtx)
adds to evt and adopts
std::ostream & write(std::ostream &)
The Polarization class stores theta and phi for a GenParticle.
void print(std::ostream &ostr=std::cout) const
dumps to ostr
particle_const_iterator particles_end() const
end particle iteration
FourVector is a simple representation of a physics 4 vector.
void set_polarization(const Polarization &pol=Polarization(0, 0))
set polarization
The GenParticle class contains information about generated particles.