32 if (datatypes.size() != 1) {
34 "Multiple output data types specified! Expected only a single type!"));
36 std::string raw_dt{ *datatypes.begin() };
37 TLOG() <<
"Choosing specializations for SourceModel for output connection "
38 <<
" [uid:" << conn_uid <<
" , data_type:" << raw_dt <<
']';
40 if (raw_dt.find(
"WIBEthFrame") != std::string::npos) {
42 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::DUNEWIBEthTypeAdapter>>();
45 source_model->set_sink_name(conn_uid);
48 source_model->set_sink(conn_uid, callback_mode);
65 }
else if (raw_dt.find(
"TDEEthFrame") != std::string::npos) {
67 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::TDEEthTypeAdapter>>();
68 source_model->set_sink_name(conn_uid);
69 source_model->set_sink(conn_uid, callback_mode);