Belle II Software development
|
CDC database importer. More...
#include <CDCDatabaseImporter.h>
Public Member Functions | |
CDCDatabaseImporter () | |
Default constructor. | |
CDCDatabaseImporter (int fexp, int frun, int lexp, int lrun) | |
Constructor. | |
virtual | ~CDCDatabaseImporter () |
Destructor. | |
void | importChannelMap (std::string fileName) |
Import channel map to the data base. | |
void | printChannelMap () |
Get the channel map from the database and print it. | |
void | importFEElectronics (std::string fileName) |
Import FEE params. | |
void | printFEElectronics () |
Get FEE params. | |
void | importEDepToADC (std::string fileName) |
Import edep-to-adc params. | |
void | printEDepToADC () |
Get edep-to-adc params. | |
void | importCorrToThreshold (std::string fileName) |
Import corrtothreshold to the data base. | |
void | printCorrToThreshold () |
Get corrtothreshold from the database and print. | |
void | importTimeZero (std::string fileName) |
Import t0 table to the data base. | |
void | printTimeZero () |
Get the t0 table from the database and print it. | |
void | importADCDeltaPedestal (std::string fileName) |
Import ADC delta pedestal table to the data base specifying the text data. | |
void | importADCDeltaPedestal () |
Import ADC delta pedestal with all 0. | |
void | printADCDeltaPedestal () |
Get the ADC delta pedestal table from the database and print it. | |
void | importBadWire (std::string fileName) |
Import badwire table to the data base. | |
void | printBadWire () |
Get the badwire table from the database and print it. | |
void | importPropSpeed (std::string fileName) |
Import propspeed table to the database. | |
void | printPropSpeed () |
Get the propspeed table from the database and print it. | |
void | importTimeWalk (std::string fileName) |
Import time-walk coeff. | |
void | printTimeWalk () |
Get the time-walk coeff. | |
void | importXT (std::string fileName) |
Import xt table to the database. | |
void | printXT () |
Get the xt table from the database and print it. | |
void | importSigma (std::string fileName) |
Import sigma table to the database. | |
void | printSigma () |
Get the sigma table from the database and print it. | |
void | importFFactor (std::string fileName) |
Import fudge factor table to the database. | |
void | printFFactor () |
Get the fudge factor table from the database and print it. | |
void | importDisplacement (std::string fileName) |
Import displacement of wire position to the database. | |
void | printDisplacement () |
Get the displacement of wire position from the database and print it. | |
void | importWirPosAlign (std::string fileName) |
Import wire alignment table to the database. | |
void | printWirPosAlign () |
Get the wire alignment table from the database and print it. | |
void | importWirPosMisalign (std::string fileName) |
Import wire misalignment table to the database. | |
void | printWirPosMisalign () |
Get the wire misalignment table from the database and print it. | |
void | importCDCWireHitRequirements (const std::string &jsonFileName) const |
Import CDCWireHits cut values to the database. | |
void | printCDCWireHitRequirements () const |
Get CDCWireHits cut values from the database and print them. | |
void | importCDCCrossTalkLibrary (const std::string &rootFileName) const |
Import crosstalk library prepared in rootFileName. | |
void | printCDCCrossTalkLibrary () const |
Print the content of the crosstalk library. | |
void | testCDCCrossTalkLibrary (bool spotChecks=false) const |
Do some basic testing of the CDCCrossTalkLibrary. | |
void | importCDClayerTimeCut (const std::string &jsonFileName) const |
import CDClayerTimeCut | |
void | printCDClayerTimeCut () const |
Print content of CDClayerTimeCut. | |
Private Attributes | |
int | m_firstExperiment |
CDC geometory parameter. | |
int | m_firstRun |
First run. | |
int | m_lastExperiment |
Last experiment. | |
int | m_lastRun |
Last run. | |
ushort | m_firstLayerOffset = 0 |
Offset of first layer in case some CDC layers are removed. | |
ushort | m_superLayerOffset = 0 |
Offset of first super layer in case some CDC super layers are removed. | |
ushort | m_nSenseWires = 14336 |
Number of sense wires in the CDC. | |
CDC database importer.
Definition at line 22 of file CDCDatabaseImporter.h.
|
inline |
Default constructor.
Definition at line 29 of file CDCDatabaseImporter.h.
CDCDatabaseImporter | ( | int | fexp, |
int | frun, | ||
int | lexp, | ||
int | lrun | ||
) |
Constructor.
Definition at line 61 of file CDCDatabaseImporter.cc.
|
inlinevirtual |
void importADCDeltaPedestal | ( | ) |
Import ADC delta pedestal with all 0.
Definition at line 980 of file CDCDatabaseImporter.cc.
void importADCDeltaPedestal | ( | std::string | fileName | ) |
Import ADC delta pedestal table to the data base specifying the text data.
Definition at line 934 of file CDCDatabaseImporter.cc.
void importBadWire | ( | std::string | fileName | ) |
Import badwire table to the data base.
Definition at line 249 of file CDCDatabaseImporter.cc.
void importCDCCrossTalkLibrary | ( | const std::string & | rootFileName | ) | const |
Import crosstalk library prepared in rootFileName.
Definition at line 1037 of file CDCDatabaseImporter.cc.
void importCDClayerTimeCut | ( | const std::string & | jsonFileName | ) | const |
import CDClayerTimeCut
Definition at line 1160 of file CDCDatabaseImporter.cc.
void importCDCWireHitRequirements | ( | const std::string & | jsonFileName | ) | const |
Import CDCWireHits cut values to the database.
The cut values are read from a json file. An example of legal json file can be found at cdc/data/CDCWireHitRequirements_example.json In the json file, upper values of -1 stand for unbounded.
Definition at line 1000 of file CDCDatabaseImporter.cc.
void importChannelMap | ( | std::string | fileName | ) |
Import channel map to the data base.
Definition at line 117 of file CDCDatabaseImporter.cc.
void importCorrToThreshold | ( | std::string | fileName | ) |
Import corrtothreshold to the data base.
Definition at line 335 of file CDCDatabaseImporter.cc.
void importDisplacement | ( | std::string | fileName | ) |
Import displacement of wire position to the database.
Definition at line 705 of file CDCDatabaseImporter.cc.
void importEDepToADC | ( | std::string | fileName | ) |
Import edep-to-adc params.
to the data base.
Definition at line 191 of file CDCDatabaseImporter.cc.
void importFEElectronics | ( | std::string | fileName | ) |
Import FEE params.
to the data base.
Definition at line 156 of file CDCDatabaseImporter.cc.
void importFFactor | ( | std::string | fileName | ) |
Import fudge factor table to the database.
Definition at line 663 of file CDCDatabaseImporter.cc.
void importPropSpeed | ( | std::string | fileName | ) |
Import propspeed table to the database.
Definition at line 291 of file CDCDatabaseImporter.cc.
void importSigma | ( | std::string | fileName | ) |
Import sigma table to the database.
Definition at line 544 of file CDCDatabaseImporter.cc.
void importTimeWalk | ( | std::string | fileName | ) |
Import time-walk coeff.
table to the database.
Definition at line 374 of file CDCDatabaseImporter.cc.
void importTimeZero | ( | std::string | fileName | ) |
Import t0 table to the data base.
Definition at line 70 of file CDCDatabaseImporter.cc.
void importWirPosAlign | ( | std::string | fileName | ) |
Import wire alignment table to the database.
Definition at line 765 of file CDCDatabaseImporter.cc.
void importXT | ( | std::string | fileName | ) |
Import xt table to the database.
Definition at line 416 of file CDCDatabaseImporter.cc.
void printADCDeltaPedestal | ( | ) |
Get the ADC delta pedestal table from the database and print it.
Definition at line 993 of file CDCDatabaseImporter.cc.
void printBadWire | ( | ) |
Get the badwire table from the database and print it.
Definition at line 875 of file CDCDatabaseImporter.cc.
void printCDCCrossTalkLibrary | ( | ) | const |
Print the content of the crosstalk library.
Definition at line 1105 of file CDCDatabaseImporter.cc.
void printCDClayerTimeCut | ( | ) | const |
Print content of CDClayerTimeCut.
Definition at line 1181 of file CDCDatabaseImporter.cc.
void printCDCWireHitRequirements | ( | ) | const |
Get CDCWireHits cut values from the database and print them.
Definition at line 1026 of file CDCDatabaseImporter.cc.
void printChannelMap | ( | ) |
Get the channel map from the database and print it.
Definition at line 830 of file CDCDatabaseImporter.cc.
void printDisplacement | ( | ) |
Get the displacement of wire position from the database and print it.
Definition at line 911 of file CDCDatabaseImporter.cc.
void printEDepToADC | ( | ) |
Get edep-to-adc params.
from the database and print.
Definition at line 855 of file CDCDatabaseImporter.cc.
void printFEElectronics | ( | ) |
Get FEE params.
from the database and print.
Definition at line 843 of file CDCDatabaseImporter.cc.
void printFFactor | ( | ) |
Get the fudge factor table from the database and print it.
Definition at line 905 of file CDCDatabaseImporter.cc.
void printPropSpeed | ( | ) |
Get the propspeed table from the database and print it.
Definition at line 881 of file CDCDatabaseImporter.cc.
void printSigma | ( | ) |
Get the sigma table from the database and print it.
Definition at line 899 of file CDCDatabaseImporter.cc.
void printTimeWalk | ( | ) |
Get the time-walk coeff.
table from the database and print it.
Definition at line 887 of file CDCDatabaseImporter.cc.
void printTimeZero | ( | ) |
Get the t0 table from the database and print it.
Definition at line 861 of file CDCDatabaseImporter.cc.
void printWirPosAlign | ( | ) |
Get the wire alignment table from the database and print it.
Definition at line 921 of file CDCDatabaseImporter.cc.
void printWirPosMisalign | ( | ) |
Get the wire misalignment table from the database and print it.
Definition at line 927 of file CDCDatabaseImporter.cc.
void printXT | ( | ) |
Get the xt table from the database and print it.
Definition at line 893 of file CDCDatabaseImporter.cc.
void testCDCCrossTalkLibrary | ( | bool | spotChecks = false | ) | const |
Do some basic testing of the CDCCrossTalkLibrary.
Definition at line 1115 of file CDCDatabaseImporter.cc.
|
private |
|
private |
Offset of first layer in case some CDC layers are removed.
Definition at line 240 of file CDCDatabaseImporter.h.
|
private |
First run.
Definition at line 236 of file CDCDatabaseImporter.h.
|
private |
Last experiment.
Definition at line 237 of file CDCDatabaseImporter.h.
|
private |
Last run.
Definition at line 238 of file CDCDatabaseImporter.h.
|
private |
Number of sense wires in the CDC.
Definition at line 242 of file CDCDatabaseImporter.h.
|
private |
Offset of first super layer in case some CDC super layers are removed.
Definition at line 241 of file CDCDatabaseImporter.h.