6#ifndef HEPMC3_PRINTSTREAMS_H
7#define HEPMC3_PRINTSTREAMS_H
13#include "HepMC3/GenEvent.h"
14#include "HepMC3/GenVertex.h"
15#include "HepMC3/GenParticle.h"
16#include "HepMC3/Print.h"
21inline std::ostream& operator<<(std::ostream& os,
const GenEvent &event) {
Print::content(os,event);
return os; }
25inline std::ostream& operator<<(std::ostream& os, ConstGenVertexPtr v) {
Print::line(os,v);
return os; }
29inline std::ostream& operator<<(std::ostream& os, ConstGenParticlePtr p) {
Print::line(os,p);
return os; }
33inline std::ostream& operator<<(std::ostream& os, std::shared_ptr<GenCrossSection> &cs) {
Print::line(os,cs);
return os; }
37inline std::ostream& operator<<(std::ostream& os, std::shared_ptr<GenHeavyIon> &hi) {
Print::line(os,hi);
return os; }
41inline std::ostream& operator<<(std::ostream& os, std::shared_ptr<GenPdfInfo> &pi) {
Print::line(os,pi);
return os; }
45inline std::ostream& operator<<(std::ostream& os,
const FourVector& p) {
Print::line(os,p);
return os; }
53inline std::ostream& operator<<(std::ostream& os,
const GenRunInfo &ri) {
Print::line(os,ri);
return os; }
Stores event-related information.
Stores run-related information.
static void content(std::ostream &os, const GenEvent &event)
Print content of all GenEvent containers.
static void line(std::ostream &os, const GenEvent &event, bool attributes=false)
Print one-line info.