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#include <TObject.h>
12
13namespace Belle2 {
23
24 public:
25
32 {
33 }
34
38 CDCDatabaseImporter(int fexp, int frun, int lexp, int lrun);
39
40
45 {}
46
50 void importChannelMap(std::string fileName);
55 void printChannelMap();
56
60 void importFEElectronics(std::string fileName);
64 void printFEElectronics();
65
69 void importEDepToADC(std::string fileName);
73 void printEDepToADC();
74
78 void importCorrToThreshold(std::string fileName);
83
87 void importTimeZero(std::string fileName);
92 void printTimeZero();
93
97 void importADCDeltaPedestal(std::string fileName);
98
103
109
113 void importBadWire(std::string fileName);
118 void printBadWire();
119
123 void importPropSpeed(std::string fileName);
128 void printPropSpeed();
129
133 void importTimeWalk(std::string fileName);
138 void printTimeWalk();
139
143 void importXT(std::string fileName);
148 void printXT();
149
153 void importSigma(std::string fileName);
158 void printSigma();
159
163 void importFFactor(std::string fileName);
168 void printFFactor();
169
173 void importDisplacement(std::string fileName);
174
179 void printDisplacement();
180
184 void importWirPosAlign(std::string fileName);
189 void printWirPosAlign();
190
194 void importWirPosMisalign(std::string fileName);
199 void printWirPosMisalign();
200
208 void importCDCWireHitRequirements(const std::string& jsonFileName) const;
213 void printCDCWireHitRequirements() const;
214
216 void importCDCCrossTalkLibrary(const std::string& rootFileName) const;
217
219 void printCDCCrossTalkLibrary() const;
220
222 void testCDCCrossTalkLibrary(bool spotChecks = false) const;
223
225 void importCDClayerTimeCut(const std::string& jsonFileName) const;
226
228 void printCDClayerTimeCut() const;
229
230 private:
231
242 ushort m_nSenseWires = 14336;
244 };
245
247} // Belle2 namespace
CDC database importer.
void printFFactor()
Get the fudge factor table from the database and print it.
void printEDepToADC()
Get edep-to-adc params.
void importWirPosMisalign(std::string fileName)
Import wire misalignment table to the database.
void printTimeWalk()
Get the time-walk coeff.
void printSigma()
Get the sigma table from the database and print it.
void printDisplacement()
Get the displacement of wire position from the database and print it.
void printCDCWireHitRequirements() const
Get CDCWireHits cut values from the database and print them.
void printPropSpeed()
Get the propspeed table from the database and print it.
void importDisplacement(std::string fileName)
Import displacement of wire position to the database.
void importBadWire(std::string fileName)
Import badwire table to the data base.
void importADCDeltaPedestal()
Import ADC delta pedestal with all 0.
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.
void importFFactor(std::string fileName)
Import fudge factor table to the database.
void printCDClayerTimeCut() const
Print content of CDClayerTimeCut.
void printWirPosMisalign()
Get the wire misalignment table from the database and print it.
void importCDCCrossTalkLibrary(const std::string &rootFileName) const
Import crosstalk library prepared in rootFileName.
ushort m_nSenseWires
Number of sense wires in the CDC.
void printXT()
Get the xt table from the database and print it.
void importSigma(std::string fileName)
Import sigma table to the database.
void printChannelMap()
Get the channel map from the database and print it.
void printADCDeltaPedestal()
Get the ADC delta pedestal table from the database and print it.
int m_lastExperiment
Last experiment.
void printBadWire()
Get the badwire table from the database and print it.
void importCDClayerTimeCut(const std::string &jsonFileName) const
import CDClayerTimeCut
void printTimeZero()
Get the t0 table from the database and print it.
void importPropSpeed(std::string fileName)
Import propspeed table to the database.
void importChannelMap(std::string fileName)
Import channel map to the data base.
void importCorrToThreshold(std::string fileName)
Import corrtothreshold to the data base.
void importEDepToADC(std::string fileName)
Import edep-to-adc params.
CDCDatabaseImporter()
Default constructor.
void printCDCCrossTalkLibrary() const
Print the content of the crosstalk library.
void importXT(std::string fileName)
Import xt table to the database.
void printFEElectronics()
Get FEE params.
void printWirPosAlign()
Get the wire alignment table from the database and print it.
void testCDCCrossTalkLibrary(bool spotChecks=false) const
Do some basic testing of the CDCCrossTalkLibrary.
void importFEElectronics(std::string fileName)
Import FEE params.
int m_firstExperiment
CDC geometory parameter.
void importTimeZero(std::string fileName)
Import t0 table to the data base.
virtual ~CDCDatabaseImporter()
Destructor.
ushort m_firstLayerOffset
Offset of first layer in case some CDC layers are removed.
void importWirPosAlign(std::string fileName)
Import wire alignment table to the database.
void importTimeWalk(std::string fileName)
Import time-walk coeff.
void importCDCWireHitRequirements(const std::string &jsonFileName) const
Import CDCWireHits cut values to the database.
Abstract base class for different kinds of events.