artdaq_mfextensions  v1_03_03a
makeMVReceiver.cc
1 #include "mfextensions/Receivers/makeMVReceiver.hh"
2 
3 #include "cetlib/BasicPluginFactory.h"
4 #include "fhiclcpp/ParameterSet.h"
5 #include "mfextensions/Receivers/ReceiverMacros.hh"
6 
7 std::unique_ptr<mfviewer::MVReceiver> mfviewer::makeMVReceiver(std::string const& receiver_plugin_spec,
8  fhicl::ParameterSet const& ps) {
9  static cet::BasicPluginFactory bpf("receiver", "make");
10 
11  return bpf.makePlugin<std::unique_ptr<mfviewer::MVReceiver>, fhicl::ParameterSet const&>(receiver_plugin_spec, ps);
12 }