00001 #include "artdaq/TransferPlugins/TransferInterface.hh" 00002 00003 artdaq::TransferInterface::TransferInterface(const fhicl::ParameterSet& ps, Role role) 00004 : role_(role) 00005 , source_rank_(ps.get<int>("source_rank", my_rank)) 00006 , destination_rank_(ps.get<int>("destination_rank", my_rank)) 00007 , unique_label_(ps.get<std::string>("unique_label", "transfer_between_" + std::to_string(source_rank_) + "_and_" + std::to_string(destination_rank_))) 00008 , buffer_count_(ps.get<size_t>("buffer_count", 10)) 00009 , max_fragment_size_words_(ps.get<size_t>("max_fragment_size_words", 1024)) 00010 { 00011 TLOG_DEBUG(uniqueLabel()) << "TransferInterface constructor has " << ps.to_string() << TLOG_ENDL; 00012 }