namespace Rivet::HepMCUtils

Rivet::HepMCUtils

More…

Functions

Name
ConstGenParticlePtrgetParticlePtr(const RivetHepMC::GenParticle & gp)
std::vector< ConstGenParticlePtr >particles(ConstGenEventPtr ge)
std::vector< ConstGenParticlePtr >particles(const GenEvent * ge)
std::vector< ConstGenVertexPtr >vertices(ConstGenEventPtr ge)
std::vector< ConstGenVertexPtr >vertices(const GenEvent * ge)
std::vector< ConstGenParticlePtr >particles(ConstGenVertexPtr gv, const Relatives & relo)
std::vector< ConstGenParticlePtr >particles(ConstGenParticlePtr gp, const Relatives & relo)
intuniqueId(ConstGenParticlePtr gp)
intparticles_size(ConstGenEventPtr ge)
intparticles_size(const GenEvent * ge)
std::pair< ConstGenParticlePtr, ConstGenParticlePtr >beams(const GenEvent * ge)
std::shared_ptr< HepMC_IO_type >makeReader(std::string filename, std::shared_ptr< std::istream > & istrp, std::string * errm =0)
boolreadEvent(std::shared_ptr< HepMC_IO_type > io, std::shared_ptr< GenEvent > evt)
voidstrip(GenEvent & ge, const set< long > & stripid ={1, -1, 2, -2, 3,-3, 21})
vector< string >weightNames(const GenEvent & ge)
std::valarray< double >weights(const GenEvent & ge)
pair< double, double >crossSection(const GenEvent & ge, size_t index =0)

Detailed Description

Todo: Use MCUtils?

Functions Documentation

function getParticlePtr

ConstGenParticlePtr getParticlePtr(
    const RivetHepMC::GenParticle & gp
)

function particles

std::vector< ConstGenParticlePtr > particles(
    ConstGenEventPtr ge
)

function particles

std::vector< ConstGenParticlePtr > particles(
    const GenEvent * ge
)

function vertices

std::vector< ConstGenVertexPtr > vertices(
    ConstGenEventPtr ge
)

function vertices

std::vector< ConstGenVertexPtr > vertices(
    const GenEvent * ge
)

function particles

std::vector< ConstGenParticlePtr > particles(
    ConstGenVertexPtr gv,
    const Relatives & relo
)

function particles

std::vector< ConstGenParticlePtr > particles(
    ConstGenParticlePtr gp,
    const Relatives & relo
)

function uniqueId

int uniqueId(
    ConstGenParticlePtr gp
)

function particles_size

int particles_size(
    ConstGenEventPtr ge
)

function particles_size

int particles_size(
    const GenEvent * ge
)

function beams

std::pair< ConstGenParticlePtr, ConstGenParticlePtr > beams(
    const GenEvent * ge
)

function makeReader

std::shared_ptr< HepMC_IO_type > makeReader(
    std::string filename,
    std::shared_ptr< std::istream > & istrp,
    std::string * errm =0
)

function readEvent

bool readEvent(
    std::shared_ptr< HepMC_IO_type > io,
    std::shared_ptr< GenEvent > evt
)

function strip

void strip(
    GenEvent & ge,
    const set< long > & stripid ={1, -1, 2, -2, 3,-3, 21}
)

function weightNames

vector< string > weightNames(
    const GenEvent & ge
)

function weights

std::valarray< double > weights(
    const GenEvent & ge
)

function crossSection

pair< double, double > crossSection(
    const GenEvent & ge,
    size_t index =0
)

Updated on 2022-08-07 at 20:17:17 +0100