6#ifndef ATLASHEPMC_GENVERTEX_H
7#define ATLASHEPMC_GENVERTEX_H
8#include "HepMC3/GenVertex.h"
9#include "HepMC3/PrintStreams.h"
13inline std::vector<HepMC3::ConstGenParticlePtr>::const_iterator
begin(
const HepMC3::GenVertex& v) {
return v.particles_out().begin(); }
14inline std::vector<HepMC3::ConstGenParticlePtr>::const_iterator
end(
const HepMC3::GenVertex& v) {
return v.particles_out().end(); }
15inline std::vector<HepMC3::GenParticlePtr>::const_iterator
begin(HepMC3::GenVertex& v) {
return v.particles_out().begin(); }
16inline std::vector<HepMC3::GenParticlePtr>::const_iterator
end(HepMC3::GenVertex& v) {
return v.particles_out().end(); }
20inline std::ostream&
operator << (std::ostream& os, GenVertexPtr v) { ConstGenVertexPtr cv = v; Print::line(os,std::move(cv));
return os; }
26 GenVertexPtr v = std::make_shared<HepMC3::GenVertex>(pos);
31using HepMC3::GenVertex;
std::vector< HepMC3::GenParticlePtr >::const_iterator begin(HepMC3::GenEvent &e)
std::ostream & operator<<(std::ostream &os, GenParticlePtr p)
Print one-line info with idiomatic C++ printing.
std::vector< HepMC3::GenParticlePtr >::const_iterator end(HepMC3::GenEvent &e)
int barcode_or_id(const ConstGenParticlePtr &p)
GenVertexPtr newGenVertexPtr(const HepMC3::FourVector &pos=HepMC3::FourVector::ZERO_VECTOR(), const int i=0)
HepMC3::GenVertexPtr GenVertexPtr
HepMC3::ConstGenVertexPtr ConstGenVertexPtr