Analysis Software
Documentation for sPHENIX simulation software
|
#include "Acts/Definitions/ParticleData.hpp"
#include "ActsExamples/EventData/SimParticle.hpp"
#include "ActsExamples/EventData/SimVertex.hpp"
#include "ActsExamples/Io/HepMC3/HepMC3Event.hpp"
#include "ActsExamples/Io/HepMC3/HepMC3Reader.hpp"
#include "ActsExamples/Options/CommonOptions.hpp"
#include "ActsExamples/Options/HepMC3Options.hpp"
#include <fstream>
#include <HepMC3/GenEvent.h>
#include <HepMC3/ReaderAscii.h>
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Straight forward example of reading a HepMC3 file.
Definition at line 25 of file HepMC3Example.cpp.
View newest version in sPHENIX GitHub at line 25 of file HepMC3Example.cpp
References ActsExamples::Options::addHepMC3ReaderOptions(), ActsExamples::HepMC3Event::beams(), Acts::UnitConstants::cm, ActsExamples::HepMC3Event::eventPos(), ActsExamples::HepMC3Event::eventTime(), ActsExamples::HepMC3Event::finalState(), Acts::findName(), material_mapping_optimisation::flush, Acts::UnitConstants::fs, Acts::UnitConstants::GeV, ActsExamples::HepMC3Event::lengthUnit(), telescope_simulation::logLevel, ActsExamples::Options::makeDefaultOptions(), Acts::UnitConstants::MeV, Acts::UnitConstants::mm, ActsExamples::HepMC3Event::momentumUnit(), ActsExamples::Options::parse(), particle, ActsExamples::HepMC3Event::particles(), summary::reader, ActsExamples::HepMC3AsciiReader::readEvent(), ActsExamples::Options::readHepMC3ReaderOptions(), ActsExamples::Options::readLogLevel(), ActsExamples::HepMC3AsciiReader::status(), and ActsExamples::HepMC3Event::vertices().