28 #include <boost/program_options.hpp>
30 int main(
int argc,
char* argv[]) {
36 desc, ActsExamples::OutputFormat::DirectoryOnly);
54 particleReader.inputStem =
"particles";
55 particleReader.outputParticles =
"particles";
56 sequencer.
addReader(std::make_shared<ActsExamples::CsvParticleReader>(
62 std::make_shared<ActsExamples::DD4hep::DD4hepGeometryService>(dd4hepCfg);
64 std::make_shared<ActsExamples::DD4hep::DD4hepDetector>(geometrySvc);
69 erConfig.outputHepMcTracks =
"geant-event";
70 erConfig.detectorConstructionFactory =
71 std::make_unique<ActsExamples::DDG4DetectorConstructionFactory>(
detector);
72 erConfig.seed1 = vm[
"g4-rnd-seed1"].as<
unsigned int>();
73 erConfig.seed2 = vm[
"g4-rnd-seed2"].as<
unsigned int>();
77 hepMC3WriterConfig.inputEvents = erConfig.outputHepMcTracks;
80 sequencer.
addAlgorithm(std::make_shared<ActsExamples::EventRecording>(
82 sequencer.
addWriter(std::make_shared<ActsExamples::HepMC3AsciiWriter>(
86 return sequencer.
run();