34{
36 TLOG() <<
"Choosing specializations for SourceModel for output connection "
37 <<
" [uid:" << conf->
UID() <<
" , data_type:" << datatype <<
']';
38
39 if (datatype.find("WIBEthFrame") != std::string::npos) {
40
41 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::DUNEWIBEthTypeAdapter>>();
42
43
44 source_model->set_sink_config(conf);
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 return source_model;
60
61 } else if (datatype.find("TDEFrame") != std::string::npos) {
62
63 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::TDEFrameTypeAdapter>>();
64 source_model->set_sink_config(conf);
65
66
67 return source_model;
68 } else if (datatype.find("CRTBernFrame") != std::string::npos) {
69 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::CRTBernTypeAdapter>>();
70 source_model->set_sink_config(conf);
71 return source_model;
72 } else if (datatype.find("CRTGrenobleFrame") != std::string::npos) {
73 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::CRTGrenobleTypeAdapter>>();
74 source_model->set_sink_config(conf);
75 return source_model;
76 }
77
78 return nullptr;
79}
const std::string & get_data_type() const
Get "data_type" attribute value. Name of the output data type. Should be defined via a call to DUNE_D...
const std::string & UID() const noexcept