Belle II Software development
SVDLocalCalibrationsImporter.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <TObject.h>
12
13namespace Belle2 {
25
26 public:
27
34 {
35 }
36
41 SVDLocalCalibrationsImporter(int fexp, int frun, int lexp, int lrun):
42 m_firstExperiment(fexp), m_firstRun(frun),
43 m_lastExperiment(lexp), m_lastRun(lrun)
44 {
45 }
46
47
52 {}
58 void importSVDChannelMapping(const std::string& fileName = std::string("svd/data/svd_mapping.xml"));
59
60
61
68 void importSVDNoiseCalibrationsFromXML(const std::string& xmlFileName, bool errorTollerant = false);
69
76 void importSVDPedestalCalibrationsFromXML(const std::string& xmlFileName, bool errorTollerant = false);
77
84 void importSVDCalAmpCalibrationsFromXML(const std::string& xmlFileName, bool errorTollerant = false);
85
86
93 void importSVDHotStripsCalibrationsFromXML(const std::string& xmlFileName, bool errorTollerant = false);
94
95
102 void importSVDFADCMaskedStripsFromXML(const std::string& xmlFileName, bool errorTollerant = false);
103
104
115 template< class SVDcalibration >
116 void importSVDCalibrationsFromXML(const std::string& condDbname,
117 const std::string& xmlFileName,
118 const std::string& xmlTag,
119 typename SVDcalibration::t_perSideContainer::calibrationType defaultValue,
120 bool errorTollerant);
121
122
123 private:
124
134 };
135
137} // Belle2 namespace
This class import to the database the dbobjects storing the SVD Local Calibrations.
void importSVDNoiseCalibrationsFromXML(const std::string &xmlFileName, bool errorTollerant=false)
This method import to the database the strip noise from the pedestal local runs.
void importSVDFADCMaskedStripsFromXML(const std::string &xmlFileName, bool errorTollerant=false)
This method import to the database the list of strips masked at FADC level.
void importSVDChannelMapping(const std::string &fileName=std::string("svd/data/svd_mapping.xml"))
This method import to the database the channel mapping which is always required to properly fulfilled...
void importSVDCalibrationsFromXML(const std::string &condDbname, const std::string &xmlFileName, const std::string &xmlTag, typename SVDcalibration::t_perSideContainer::calibrationType defaultValue, bool errorTollerant)
This method import to the database the strip noise from the noise local runs.
void importSVDCalAmpCalibrationsFromXML(const std::string &xmlFileName, bool errorTollerant=false)
This method import to the database the strip pulse width, time and gain from the injection local runs...
SVDLocalCalibrationsImporter(int fexp, int frun, int lexp, int lrun)
A constructor accepting as arguments the interval of validity coordinates.
int m_firstExperiment
The interval of validity coordinates are defined as private members.
void importSVDPedestalCalibrationsFromXML(const std::string &xmlFileName, bool errorTollerant=false)
This method import to the database the strip pedestal from the pedestal local runs.
void importSVDHotStripsCalibrationsFromXML(const std::string &xmlFileName, bool errorTollerant=false)
This method import to the database the list of hot strips flagged online and written in the local run...
Abstract base class for different kinds of events.