24 #include <boost/program_options.hpp>
26 using namespace ActsExamples;
29 int main(
int argc,
char* argv[]) {
32 auto opts = desc.add_options();
34 opts(
"input-dir", value<std::string>()->default_value(
""),
"");
35 opts(
"input-stem", value<std::string>()->default_value(
"particles"),
"");
47 auto inputStem = vars[
"input-stem"].as<
std::string>();
52 readParticlesCfg.inputStem = inputStem;
53 readParticlesCfg.outputParticles =
"particles";
55 std::make_shared<CsvParticleReader>(readParticlesCfg,
logLevel));
58 auto selectParticlesCfg =
60 selectParticlesCfg.inputParticles = readParticlesCfg.outputParticles;
61 selectParticlesCfg.outputParticles =
"particles_selected";
63 std::make_shared<ParticleSelector>(selectParticlesCfg,
logLevel));
67 printParticlesCfg.
inputParticles = selectParticlesCfg.outputParticles;
69 std::make_shared<ParticlesPrinter>(printParticlesCfg,
logLevel));
71 return sequencer.
run();