Belle II Software development
CDCDatabaseImporter.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#pragma once
9
10#include <string>
11
12namespace Belle2 {
17
22
23 public:
24
33
37 CDCDatabaseImporter(int fexp, int frun, int lexp, int lrun);
38
39
44 {}
45
49 void importChannelMap(const std::string& fileName);
54 static void printChannelMap();
55
59 void importFEElectronics(const std::string& fileName);
63 static void printFEElectronics();
64
68 void importEDepToADC(const std::string& fileName);
72 static void printEDepToADC();
73
77 void importCorrToThreshold(const std::string& fileName);
82
86 void importTimeZero(const std::string& fileName);
91 static void printTimeZero();
92
96 void importADCDeltaPedestal(const std::string& fileName);
97
102
107 static void printADCDeltaPedestal();
108
112 void importBadWire(const std::string& fileName);
117 static void printBadWire();
121 void importBadBoards(const std::string& fileName);
126 static void printBadBoards();
130 void importPropSpeed(const std::string& fileName);
135 static void printPropSpeed();
136
140 void importTimeWalk(const std::string& fileName);
145 static void printTimeWalk();
146
150 void importXT(std::string fileName);
155 static void printXT();
156
160 void importSigma(const std::string& fileName);
165 static void printSigma();
166
170 void importFFactor(const std::string& fileName);
175 static void printFFactor();
176
180 void importAlphaScaleFactors(const std::string& fileName);
185 static void printAlphaScaleFactors();
186
187
191 void importDisplacement(std::string fileName);
192
197 static void printDisplacement();
198
202 void importWirPosAlign(std::string fileName);
207 static void printWirPosAlign();
208
212 void importWirPosMisalign(std::string fileName);
217 static void printWirPosMisalign();
218
226 void importCDCWireHitRequirements(const std::string& jsonFileName) const;
231 static void printCDCWireHitRequirements();
232
234 void importCDCCrossTalkLibrary(const std::string& rootFileName) const;
235
237 static void printCDCCrossTalkLibrary();
238
240 static void testCDCCrossTalkLibrary(bool spotChecks = false);
241
243 void importCDClayerTimeCut(const std::string& jsonFileName) const;
244
246 static void printCDClayerTimeCut();
247
248 private:
249
257
260 ushort m_nSenseWires = 14336;
261
262 };
263
265} // Belle2 namespace
static void printFFactor()
Get the fudge factor table from the database and print it.
static void printEDepToADC()
Get edep-to-adc params.
void importAlphaScaleFactors(const std::string &fileName)
Import alpha scale factors table to the database.
void importWirPosMisalign(std::string fileName)
Import wire misalignment table to the database.
static void printCDClayerTimeCut()
Print content of CDClayerTimeCut.
static void printTimeWalk()
Get the time-walk coeff.
static void printSigma()
Get the sigma table from the database and print it.
static void printDisplacement()
Get the displacement of wire position from the database and print it.
void importSigma(const std::string &fileName)
Import sigma table to the database.
static void printPropSpeed()
Get the propspeed table from the database and print it.
void importBadWire(const std::string &fileName)
Import badwire table to the data base.
void importEDepToADC(const std::string &fileName)
Import edep-to-adc params.
void importDisplacement(std::string fileName)
Import displacement of wire position to the database.
void importADCDeltaPedestal()
Import ADC delta pedestal with all 0.
static void printCDCCrossTalkLibrary()
Print the content of the crosstalk library.
ushort m_superLayerOffset
Offset of first super layer in case some CDC super layers are removed.
void printCorrToThreshold()
Get corrtothreshold from the database and print.
static void testCDCCrossTalkLibrary(bool spotChecks=false)
Do some basic testing of the CDCCrossTalkLibrary.
static void printWirPosMisalign()
Get the wire misalignment table from the database and print it.
void importFFactor(const std::string &fileName)
Import fudge factor table to the database.
void importCDCCrossTalkLibrary(const std::string &rootFileName) const
Import crosstalk library prepared in rootFileName.
static void printBadBoards()
Get the badboard table from the database and print it.
ushort m_nSenseWires
Number of sense wires in the CDC.
static void printXT()
Get the xt table from the database and print it.
static void printChannelMap()
Get the channel map from the database and print it.
static void printADCDeltaPedestal()
Get the ADC delta pedestal table from the database and print it.
int m_lastExperiment
Last experiment.
static void printBadWire()
Get the badwire table from the database and print it.
void importCDClayerTimeCut(const std::string &jsonFileName) const
import CDClayerTimeCut
void importFEElectronics(const std::string &fileName)
Import FEE params.
static void printTimeZero()
Get the t0 table from the database and print it.
static void printCDCWireHitRequirements()
Get CDCWireHits cut values from the database and print them.
void importCorrToThreshold(const std::string &fileName)
Import corrtothreshold to the data base.
CDCDatabaseImporter()
Default constructor.
void importTimeZero(const std::string &fileName)
Import t0 table to the data base.
void importTimeWalk(const std::string &fileName)
Import time-walk coeff.
void importXT(std::string fileName)
Import xt table to the database.
static void printFEElectronics()
Get FEE params.
static void printWirPosAlign()
Get the wire alignment table from the database and print it.
int m_firstExperiment
CDC geometory parameter.
void importPropSpeed(const std::string &fileName)
Import propspeed table to the database.
virtual ~CDCDatabaseImporter()
Destructor.
ushort m_firstLayerOffset
Offset of first layer in case some CDC layers are removed.
static void printAlphaScaleFactors()
Get the fudge factor table from the database and print it.
void importWirPosAlign(std::string fileName)
Import wire alignment table to the database.
void importChannelMap(const std::string &fileName)
Import channel map to the data base.
void importBadBoards(const std::string &fileName)
Import badboards table to the data base.
void importCDCWireHitRequirements(const std::string &jsonFileName) const
Import CDCWireHits cut values to the database.
Abstract base class for different kinds of events.