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>
30 using boost::property_tree::ptree;
33 void SVDDatabaseImporter::importSVDHitTimeNeuralNetwork(
string fileName,
bool threeSamples)
35 ifstream xml(fileName);
37 B2RESULT(
"ERROR: File not found.\nNeural network from " << fileName <<
" could not be imported.");
40 string label(
"SVDTimeNet_6samples");
42 label =
"SVDTimeNet_3samples";
44 buffer << xml.rdbuf();
47 importObj->m_data = buffer.str();
50 m_lastExperiment, m_lastRun);
52 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.
Abstract base class for different kinds of events.