ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
AtlasHepMC
AtlasHepMC
GenVertex.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
/* Author: Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de */
5
6
#ifndef ATLASHEPMC_GENVERTEX_H
7
#define ATLASHEPMC_GENVERTEX_H
8
#include "HepMC3/GenVertex.h"
9
#include "HepMC3/PrintStreams.h"
10
#include "
AtlasHepMC/Barcode.h
"
11
#include "
AtlasHepMC/AttributeNames.h
"
12
namespace
HepMC3
{
13
inline
std::vector<HepMC3::ConstGenParticlePtr>::const_iterator
begin
(
const
HepMC3::GenVertex& v) {
return
v.particles_out().begin(); }
14
inline
std::vector<HepMC3::ConstGenParticlePtr>::const_iterator
end
(
const
HepMC3::GenVertex& v) {
return
v.particles_out().end(); }
15
inline
std::vector<HepMC3::GenParticlePtr>::const_iterator
begin
(HepMC3::GenVertex& v) {
return
v.particles_out().begin(); }
16
inline
std::vector<HepMC3::GenParticlePtr>::const_iterator
end
(HepMC3::GenVertex& v) {
return
v.particles_out().end(); }
17
20
inline
std::ostream&
operator <<
(std::ostream& os, GenVertexPtr v) { ConstGenVertexPtr cv = v; Print::line(os,std::move(cv));
return
os; }
21
}
22
namespace
HepMC
{
23
typedef
HepMC3::GenVertexPtr
GenVertexPtr
;
24
typedef
HepMC3::ConstGenVertexPtr
ConstGenVertexPtr
;
25
inline
GenVertexPtr
newGenVertexPtr
(
const
HepMC3::FourVector& pos = HepMC3::FourVector::ZERO_VECTOR(),
const
int
i=0) {
26
GenVertexPtr
v = std::make_shared<HepMC3::GenVertex>(pos);
27
v->set_status(i);
28
return
v;
29
}
30
using
HepMC3::GenVertex;
31
}
32
#endif
AttributeNames.h
Barcode.h
HepMC3
Definition
GenEvent.h:29
HepMC3::begin
std::vector< HepMC3::GenParticlePtr >::const_iterator begin(HepMC3::GenEvent &e)
Definition
GenEvent.h:30
HepMC3::operator<<
std::ostream & operator<<(std::ostream &os, GenParticlePtr p)
Print one-line info with idiomatic C++ printing.
Definition
GenParticle.h:16
HepMC3::end
std::vector< HepMC3::GenParticlePtr >::const_iterator end(HepMC3::GenEvent &e)
Definition
GenEvent.h:31
HepMC
Definition
Barcode.h:13
HepMC::newGenVertexPtr
GenVertexPtr newGenVertexPtr(const HepMC3::FourVector &pos=HepMC3::FourVector::ZERO_VECTOR(), const int i=0)
Definition
GenVertex.h:25
HepMC::GenVertexPtr
HepMC3::GenVertexPtr GenVertexPtr
Definition
GenVertex.h:23
HepMC::ConstGenVertexPtr
HepMC3::ConstGenVertexPtr ConstGenVertexPtr
Definition
GenVertex.h:24
Generated on
for ATLAS Offline Software by
1.17.0