ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
AtlasHepMC
AtlasHepMC
GenParticle.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
/* Author: Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de */
5
6
#ifndef ATLASHEPMC_GENPARTICLE_H
7
#define ATLASHEPMC_GENPARTICLE_H
8
#include "HepMC3/GenParticle.h"
9
#include "HepMC3/PrintStreams.h"
10
#include "
AtlasHepMC/Barcode.h
"
11
#include "
AtlasHepMC/Polarization.h
"
12
#include "
AtlasHepMC/Flow.h
"
13
namespace
HepMC3
{
16
inline
std::ostream&
operator <<
(std::ostream& os, GenParticlePtr p) {ConstGenParticlePtr cp = p; Print::line(os, std::move(cp));
return
os; }
17
}
18
namespace
HepMC
{
19
typedef
HepMC3::GenParticlePtr
GenParticlePtr
;
20
typedef
HepMC3::ConstGenParticlePtr
ConstGenParticlePtr
;
21
inline
GenParticlePtr
newGenParticlePtr
(
const
HepMC3::FourVector &mom = HepMC3::FourVector::ZERO_VECTOR(),
int
pid = 0,
int
status
= 0) {
22
return
std::make_shared<HepMC3::GenParticle>(mom, pid,
status
);
23
}
24
inline
ConstGenParticlePtr
newConstGenParticlePtr
(
const
HepMC3::FourVector &mom = HepMC3::FourVector::ZERO_VECTOR(),
int
pid = 0,
int
status
= 0) {
25
return
std::make_shared<const HepMC3::GenParticle>(mom, pid,
status
);
26
}
27
28
using
HepMC3::GenParticle;
29
}
30
#endif
Barcode.h
Flow.h
Polarization.h
HepMC3
Definition
GenEvent.h:29
HepMC3::operator<<
std::ostream & operator<<(std::ostream &os, GenParticlePtr p)
Print one-line info with idiomatic C++ printing.
Definition
GenParticle.h:16
HepMC
Definition
Barcode.h:13
HepMC::newConstGenParticlePtr
ConstGenParticlePtr newConstGenParticlePtr(const HepMC3::FourVector &mom=HepMC3::FourVector::ZERO_VECTOR(), int pid=0, int status=0)
Definition
GenParticle.h:24
HepMC::newGenParticlePtr
GenParticlePtr newGenParticlePtr(const HepMC3::FourVector &mom=HepMC3::FourVector::ZERO_VECTOR(), int pid=0, int status=0)
Definition
GenParticle.h:21
HepMC::status
int status(const T &p)
Definition
MagicNumbers.h:115
HepMC::GenParticlePtr
HepMC3::GenParticlePtr GenParticlePtr
Definition
GenParticle.h:19
HepMC::ConstGenParticlePtr
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition
GenParticle.h:20
Generated on
for ATLAS Offline Software by
1.17.0