Belle II Software  release-05-02-19
SVDDatabaseImporter Class Reference

This class import to the database the dbobjects SVDNoiseCalibrations and SVDPulseShapeCalibrations. More...

#include <SVDDatabaseImporter.h>

Public Member Functions

 SVDDatabaseImporter ()
 Default constructor.
 
 SVDDatabaseImporter (int fexp, int frun, int lexp, int lrun)
 A constructor accepting as arguments the interval of validity coordinates.
 
virtual ~SVDDatabaseImporter ()
 Destructor.
 
void importSVDHitTimeNeuralNetwork (std::string fileName, bool threeSamples=false)
 This method import to the database the list of strips to be masked because hot. More...
 

Private Attributes

int m_firstExperiment
 The interval of validity coordinates are defined as private members. More...
 
int m_firstRun
 First run.
 
int m_lastExperiment
 Last experiment.
 
int m_lastRun
 Last run.
 

Detailed Description

This class import to the database the dbobjects SVDNoiseCalibrations and SVDPulseShapeCalibrations.

Currently, no input file is read to fill them, default values are written on the dbobjects for the needed calibrations constants as noise, charge, ADC pulse, peaking time and pulse width.

Definition at line 40 of file SVDDatabaseImporter.h.

Member Function Documentation

◆ importSVDHitTimeNeuralNetwork()

void importSVDHitTimeNeuralNetwork ( std::string  fileName,
bool  threeSamples = false 
)

This method import to the database the list of strips to be masked because hot.

Parameters
xmlFileNameis the file name of the xml file
errorTollerantif true bypasses sanity checks

Definition at line 36 of file SVDDatabaseImporter.cc.

37 {
38  ifstream xml(fileName);
39  if (!xml.good()) {
40  B2RESULT("ERROR: File not found.\nNeural network from " << fileName << " could not be imported.");
41  return;
42  }
43  string label("SVDTimeNet_6samples");
44  if (threeSamples)
45  label = "SVDTimeNet_3samples";
46  stringstream buffer;
47  buffer << xml.rdbuf();
49  importObj.construct();
50  importObj->m_data = buffer.str();
51 
54  importObj.import(iov);
55  B2RESULT("Neural network from " << fileName << " successfully imported.");
56 }

Member Data Documentation

◆ m_firstExperiment

int m_firstExperiment
private

The interval of validity coordinates are defined as private members.

First experiment.

Definition at line 86 of file SVDDatabaseImporter.h.


The documentation for this class was generated from the following files:
Belle2::IntervalOfValidity
A class that describes the interval of experiments/runs for which an object in the database is valid.
Definition: IntervalOfValidity.h:35
Belle2::SVDDatabaseImporter::m_firstRun
int m_firstRun
First run.
Definition: SVDDatabaseImporter.h:87
Belle2::SVDDatabaseImporter::m_lastRun
int m_lastRun
Last run.
Definition: SVDDatabaseImporter.h:89
Belle2::SVDDatabaseImporter::m_firstExperiment
int m_firstExperiment
The interval of validity coordinates are defined as private members.
Definition: SVDDatabaseImporter.h:86
Belle2::DBImportObjPtr
Class for importing a single object to the database.
Definition: DBImportObjPtr.h:33
Belle2::SVDDatabaseImporter::m_lastExperiment
int m_lastExperiment
Last experiment.
Definition: SVDDatabaseImporter.h:88