13 #include "runFairMQDevice.h"
15 #include <TClonesArray.h>
26 namespace bpo = boost::program_options;
32 (
"output-file-name", bpo::value<std::string>(),
"Path to the input file")
33 (
"output-file-tree", bpo::value<std::string>()->default_value(
"mbstree"),
"Name of the output tree")
34 (
"output-file-branch", bpo::value<std::string>()->default_value(
"FairMBSRawItem"),
"Name of the output Branch")
35 (
"hit-classname", bpo::value<std::string>()->default_value(
"FairMBSRawItem"),
"Hit class name for initializing TClonesArray")
36 (
"output-file-option", bpo::value<std::string>()->default_value(
"RECREATE"),
"Root file option : UPDATE, RECREATE etc.")
37 (
"use-clones-array", bpo::value<bool>()->default_value(
true),
"Use TClonesArray")
38 (
"flow-mode", bpo::value<bool>()->default_value(
true),
"Flow mode")
39 (
"in-chan-name", bpo::value<std::string>()->default_value(
"data"),
"input channel name");
43 FairMQDevicePtr
getDevice(
const FairMQProgOptions& config)
49 sink->
InitInputData(config.GetValue<std::string>(
"hit-classname").c_str());
void addCustomOptions(bpo::options_description &options)
void InitInputData(Args &&...args)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)