10#include <svd/calibration/SVDDatabaseImporter.h>
13#include <framework/database/IntervalOfValidity.h>
14#include <framework/database/DBImportObjPtr.h>
17#include <framework/logging/Logger.h>
20#include <mva/dataobjects/DatabaseRepresentationOfWeightfile.h>
22#include <boost/property_tree/ptree.hpp>
29using boost::property_tree::ptree;
34 std::ifstream xml(fileName);
36 B2RESULT(
"ERROR: File not found.\nNeural network from " << fileName <<
" could not be imported.");
39 std::string label(
"SVDTimeNet_6samples");
41 label =
"SVDTimeNet_3samples";
42 std::stringstream buffer;
43 buffer << xml.rdbuf();
46 importObj->m_data = buffer.str();
51 B2RESULT(
"Neural network from " << fileName <<
" successfully imported.");
bool import(const IntervalOfValidity &iov)
Import the object to database.
Class for importing a single object to the database.
void construct(Args &&... params)
Construct an object of type T in this DBImportObjPtr using the provided constructor arguments.
A class that describes the interval of experiments/runs for which an object in the database is valid.
int m_lastExperiment
Last experiment.
void importSVDHitTimeNeuralNetwork(std::string fileName, bool threeSamples=false)
This method import to the database the neural network for hit time determination.
int m_firstExperiment
The interval of validity coordinates are defined as private members.
Abstract base class for different kinds of events.