Skip to content
Snippets Groups Projects
Select Git revision
  • 19d9d6fde11b5ccf63ea65335cb373325990ae7d
  • master default protected
  • nightly_master
  • online_much_readconf_cleanup protected
  • online_mvd_readconf_cleanup protected
  • jul25_patches
  • cleanup_rich_v25a
  • jul24_patches
  • nov23_patches
  • DC_2404
  • nighly_master
  • DC_Jan24
  • DC_Nov23
  • DC_Oct23
  • feb23_patches
  • L1Algo-dev9
  • dec21_patches protected
  • apr21_patches protected
  • dev_2025_45
  • dev_2025_44
  • dev_2025_43
  • dev_2025_42
  • dev_2025_41
  • dev_2025_40
  • dev_2025_39
  • dev_2025_38
  • dev_2025_37
  • dev_2025_36
  • dev_2025_35
  • dev_2025_34
  • dev_2025_33
  • dev_2025_32
  • dev_2025_31
  • dev_2025_30
  • RC_jul25
  • dev_2025_29
  • dev_2025_28
  • dev_2025_27
38 results

runTsConsumerReqExample.cxx

Blame
  • Florian Uhlig's avatar
    Administrator authored and Florian Uhlig committed
    Remove wrong license header drom several files which came in by using a
    template. The code was developed by the respective persons, the license header
    came in by using a skeleton.
    c74816d6
    History
    runTsConsumerReqExample.cxx 1.48 KiB
    /* Copyright (C) 2021 Facility for Antiproton and Ion Research in Europe, Darmstadt
       SPDX-License-Identifier: GPL-3.0-only
       Authors: Pierre-Alain Loizeau [committer] */
    
    #include "CbmTsConsumerReqDevExample.h"
    
    #include <iomanip>
    #include <string>
    
    #include "runFairMQDevice.h"
    
    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()("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("ts-request"),
                            "MQ channel name for TS data");
      options.add_options()("TsBlockName", bpo::value<std::string>()->default_value("exampleblock"),
                            "Block name for requesting TS data, TOF SysId request if empty");
      options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
                            "MQ channel name for histos");
    }
    
    FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmTsConsumerReqDevExample(); }