artdaq  v2_03_02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
TransferInterface.cc
1 #include "artdaq/TransferPlugins/TransferInterface.hh"
2 
3 artdaq::TransferInterface::TransferInterface(const fhicl::ParameterSet& ps, Role role)
4  : role_(role)
5  , source_rank_(ps.get<int>("source_rank", my_rank))
6  , destination_rank_(ps.get<int>("destination_rank", my_rank))
7  , unique_label_(ps.get<std::string>("unique_label", "transfer_between_" + std::to_string(source_rank_) + "_and_" + std::to_string(destination_rank_)))
8  , buffer_count_(ps.get<size_t>("buffer_count", 10))
9  , max_fragment_size_words_(ps.get<size_t>("max_fragment_size_words", 1024))
10 {
11  TLOG_DEBUG(uniqueLabel()) << "TransferInterface constructor has " << ps.to_string() << TLOG_ENDL;
12 }
Role
Used to determine if a TransferInterface is a Sender or Receiver.
std::string uniqueLabel() const
Get the unique label of this TransferInterface instance.
TransferInterface(const fhicl::ParameterSet &ps, Role role)
TransferInterface Constructor.