Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "runFairMQDevice.h"
#include "CbmDeviceMonitorT0.h"
#include <string>
#include <iomanip>
namespace bpo = boost::program_options;
using namespace std;
void addCustomOptions(bpo::options_description& options)
{
options.add_options() ("IgnOverMs", bpo::value< bool >()->default_value( true ),
"Ignore overlap MS if true");
options.add_options() ("HistEvoSz", bpo::value< uint32_t >()->default_value( 1800 ),
"Size of evolution histos in seconds");
options.add_options() ("PulsTotMin", bpo::value< uint32_t >()->default_value( 185 ),
"Minimal TOT for pulser cut");
options.add_options() ("PulsTotMax", bpo::value< uint32_t >()->default_value( 195 ),
"Maximal TOT for pulser cut");
options.add_options() ("SpillThr", bpo::value< uint32_t >()->default_value( 1000 ),
"Hits Nb Thr for spill detection");
options.add_options() ("PubFreqTs", bpo::value< uint32_t >()->default_value( 100 ),
"Histo publishing frequency in TS");
options.add_options() ("PubTimeMin", bpo::value< double_t >()->default_value( 1.0 ),
"Minimal time between two publishing");
options.add_options() ("PubTimeMax", bpo::value< double_t >()->default_value( 10.0 ),
"Maximal time between two publishing");
options.add_options() ( "TsNameIn", bpo::value< std::string >()->default_value( "t0component" ),
"MQ channel name for TS data");
options.add_options() ( "ChNameIn", bpo::value< std::string >()->default_value( "histogram-in" ),
"MQ channel name for histos");
options.add_options() ( "ChNameHistCfg", bpo::value< std::string >()->default_value( "histo-conf" ),
"MQ channel name for histos config");
options.add_options() ( "ChNameCanvCfg", bpo::value< std::string >()->default_value( "canvas-conf" ),
"MQ channel name for canvases config");
}
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
{
return new CbmDeviceMonitorT0();
}