10 #include <boost/program_options.hpp>
25 int main(
int argc,
char* argv[]) {
26 using namespace boost::program_options;
32 "Input root file to read.");
42 std::string fileString = vm[
"input"].template as<std::string>();
44 if (fileString.empty()) {
45 std::cout <<
"Error: Input file not set." << std::endl;
50 vtxAndTracksReaderCfg.
fileList.push_back(fileString);
57 vertexFindingCfg.
trackCollection = vtxAndTracksReaderCfg.outputCollection;
58 vertexFindingCfg.bField =
bField;
63 sequencer.
addReader(std::make_shared<RootVertexAndTracksReader>(
64 vtxAndTracksReaderCfg, logLevel));
66 sequencer.
addAlgorithm(std::make_shared<FWE::VertexFindingAlgorithm>(
67 vertexFindingCfg, logLevel));
69 return sequencer.
run();