6#ifndef ATLASHEPMC_GENPARTICLE_H
7#define ATLASHEPMC_GENPARTICLE_H
9#include "HepMC3/GenParticle.h"
10#include "HepMC3/PrintStreams.h"
23 return std::make_shared<HepMC3::GenParticle>(mom,pid,
status);
25inline ConstGenParticlePtr newConstGenParticlePtr(
const HepMC3::FourVector &mom = HepMC3::FourVector::ZERO_VECTOR(),
int pid = 0,
int status = 0) {
26 return std::make_shared<const HepMC3::GenParticle>(mom,pid,
status);
30using HepMC3::GenParticle;
40 return new HepMC::GenParticle(mom,pid,
status);
47inline std::ostream&
operator<<( std::ostream& os,
const GenParticle* p ) {
if (p)
return os<<(*p);
else return os;}
std::ostream & operator<<(std::ostream &lhs, const TestGaudiProperty &rhs)
void line(std::ostream &os, const GenEvent &e)
std::ostream & operator<<(std::ostream &os, const GenParticle *p)
int barcode_or_id(const ConstGenParticlePtr &p)
GenParticlePtr newGenParticlePtr(const HepMC::FourVector &mom=HepMC::FourVector(0.0, 0.0, 0.0, 0.0), int pid=0, int status=0)
GenParticle * GenParticlePtr
const GenParticle * ConstGenParticlePtr