6#ifndef HEPMC3_HEPEVT_WRAPPER_RUNTIME_H 
    7#define HEPMC3_HEPEVT_WRAPPER_RUNTIME_H 
   40    void print_hepevt( std::ostream& ostr = std::cout ) 
const;
 
   75    double px(
const int index )
 const           { 
return m_hepevtptr->phep[5*(index-1)];   } 
 
   76    double py(
const int index )
  const          { 
return m_hepevtptr->phep[5*(index-1)+1];   } 
 
   77    double pz(
const int index )
 const           { 
return m_hepevtptr->phep[5*(index-1)+2];   } 
 
   78    double e(
const int index )
  const           { 
return m_hepevtptr->phep[5*(index-1)+3];   } 
 
   79    double m(
const int index )
  const           { 
return m_hepevtptr->phep[5*(index-1)+4];   } 
 
   80    double x(
const int index )
  const           { 
return m_hepevtptr->vhep[4*(index-1)];   } 
 
   81    double y(
const int index )
  const           { 
return m_hepevtptr->vhep[4*(index-1)+1];   } 
 
   82    double z(
const int index )
   const          { 
return m_hepevtptr->vhep[4*(index-1)+2];   } 
 
   83    double t(
const int index )
   const          { 
return m_hepevtptr->vhep[4*(index-1)+3];   } 
 
   91    void set_parents( 
const int index, 
const int firstparent, 
const int lastparent );              
 
   92    void set_children( 
const int index, 
const int firstchild, 
const int lastchild );               
 
   93    void set_momentum( 
const int index, 
const double px, 
const double py, 
const double pz, 
const double e );   
 
   94    void set_mass( 
const int index, 
double mass );                                     
 
   95    void set_position( 
const int index, 
const double x, 
const double y, 
const double z, 
const double t );      
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Definition of class GenEvent.
Definition of class GenParticle.
Definition of class GenVertex.
Helper functions used to manipulate with HEPEVT block.
Stores event-related information.
int first_child(const int index) const
Get index of 1st daughter.
int last_parent(const int index) const
Get index of last mother.
void set_id(const int index, const int id)
Set PDG particle id.
int event_number() const
Get event number.
bool HEPEVT_to_GenEvent(GenEvent *evt) const
Convert HEPEVT to GenEvent.
bool GenEvent_to_HEPEVT(const GenEvent *evt)
Convert GenEvent to HEPEVT.
int last_child(const int index) const
Get index of last daughter.
void allocate_internal_storage()
Allocates m_internal_storage storage in smart pointer to hold HEPEVT of fixed size.
int first_parent(const int index) const
Get index of 1st mother.
double pz(const int index) const
Get Z momentum.
void zero_everything()
Set all entries in HEPEVT to zero.
double py(const int index) const
Get Y momentum.
HEPEVT_Wrapper_Runtime()
Default constructor.
void set_parents(const int index, const int firstparent, const int lastparent)
Set parents.
int number_children_exact(const int index) const
Get number of children by counting.
void print_hepevt_particle(int index, std::ostream &ostr=std::cout) const
Print particle information.
int id(const int index) const
Get PDG particle id.
double t(const int index) const
Get production time.
void set_momentum(const int index, const double px, const double py, const double pz, const double e)
Set 4-momentum.
void set_children(const int index, const int firstchild, const int lastchild)
Set children.
int number_parents(const int index) const
Get number of parents.
void set_position(const int index, const double x, const double y, const double z, const double t)
Set position in time-space.
double y(const int index) const
Get Y Production vertex.
bool fix_daughters()
Tries to fix list of daughters.
void set_max_number_entries(unsigned int size)
Set block size.
int number_entries() const
Get number of entries.
void set_hepevt_address(char *c)
Set Fortran block address.
double m(const int index) const
Get generated mass.
int status(const int index) const
Get status code.
int m_max_particles
Block size.
double px(const int index) const
Get X momentum.
std::vector< char > m_internal_storage
Internalstorage storage. Optional.
int number_children(const int index) const
Get number of children from the range of daughters.
double z(const int index) const
Get Z Production vertex.
void print_hepevt(std::ostream &ostr=std::cout) const
Print information from HEPEVT common block.
void set_mass(const int index, double mass)
Set mass.
int max_number_entries() const
Block size.
double x(const int index) const
Get X Production vertex.
void set_event_number(const int evtno)
Set event number.
~HEPEVT_Wrapper_Runtime()
Default destructor.
void copy_to_internal_storage(char *c, int N)
Copies the content of foreign common block into the internal storage.
void set_status(const int index, const int status)
Set status code.
void set_number_entries(const int noentries)
Set number of entries.
std::shared_ptr< struct HEPEVT_Pointers< double > > m_hepevtptr
Fortran common block HEPEVT.
double e(const int index) const
Get Energy.
bool HEPEVT_to_GenEvent_nonstatic(GenEvent *evt, T *A)
Converts HEPEVT into GenEvent.
bool GenEvent_to_HEPEVT_nonstatic(const GenEvent *evt, T *A)
Converts GenEvent into HEPEVT.