8 #include "lwtnn/LightweightNeuralNetwork.hh"
9 #include "lwtnn/parse_json.hh"
31 : fileName_(iConfig.getParameter<edm::FileInPath>(
"fileName")) {
40 descriptions.
add(
"lwtnnESProducer", desc);
46 return std::make_unique<lwt::LightweightNeuralNetwork>(config.inputs, config.layers, config.outputs);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
~LwtnnESProducer() override=default
LwtnnESProducer(const edm::ParameterSet &iConfig)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::unique_ptr< lwt::LightweightNeuralNetwork > produce(const TrackingComponentsRecord &iRecord)
edm::FileInPath fileName_
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
tuple config
parse the configuration file
std::string fullPath() const