30{
32 TLOG() <<
"Choosing specializations for SourceModel for output connection "
33 <<
" [uid:" << conf->
UID() <<
" , data_type:" << datatype <<
']';
34
35 if (datatype.find("CRTBernFrame") != std::string::npos) {
36 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::CRTBernTypeAdapter>>();
37 source_model->set_sink_config(conf);
38 return source_model;
39 } else if (datatype.find("CRTGrenobleFrame") != std::string::npos) {
40 auto source_model = std::make_shared<SourceModel<fdreadoutlibs::types::CRTGrenobleTypeAdapter>>();
41 source_model->set_sink_config(conf);
42 return source_model;
43 }
44
45 return nullptr;
46}
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