Belle II Software development
TOPDatabaseImporter Class Reference

TOP database importer. More...

#include <TOPDatabaseImporter.h>

Public Member Functions

 TOPDatabaseImporter ()
 Default constructor.
 
virtual ~TOPDatabaseImporter ()
 Destructor.
 
void importSampleTimeCalibration (std::string fileNames, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import sample time calibration constants to database Output of TOPTimeBaseCalibrator (root files with histograms)
 
void importLocalT0Calibration (std::string fileNames, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import channel-by-channel T0 calibration constants to database The input is the root file with ntuple produced by TOPLaserCalibrator.
 
void importChannelT0 (std::string fileName, int expNo, int firstRun, int lastRun)
 Import channel T0 calibration constants The input is a root file with 1D histograms (one per slot, named "channelT0_slot*")
 
void importAsicShifts_BS13d (double s0, double s1, double s2, double s3, int expNo, int firstRun, int lastRun)
 Import ASIC shifts of BS13d.
 
void importModuleT0Calibration (std::string fileName, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import module T0 calibration constants to database The input is the text file.
 
void importModuleT0 (std::string fileName, int expNo, int firstRun, int lastRun)
 Import module T0 calibration constants The input is a root file with 1D histogram (name is "moduleT0")
 
void importOfflineCommonT0Calibration (std::string fileName, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import common T0 calibration constants derived form the offline data reprocessing to database The input is a root file containing a tree (one per run).
 
void importCommonT0 (double value, double error, int expNo, int firstRun, int lastRun, bool roughlyCalibrated=false)
 Import common T0 calibration constants.
 
void printSampleTimeCalibrationInfo ()
 Prints sample time calibration info about constants stored in database.
 
void printSampleTimeCalibration ()
 Print sample time calibration constants stored in database.
 
void importChannelMask (std::string fileName, int expNo, int firstRun, int lastRun)
 Import channel mask from a root file (given as 1D histograms, one per slot).
 
void generateFakeChannelMask (double fractionDead, double fractionHot, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Generate and import a (random, fake) channel mask for testing.
 
void importPmtQEData (std::string fileName, std::string treeName="qePmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import PMT Quantum Efficiency data to database.
 
void importPmtGainData (std::string fileName, std::string treeName="gainPmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import PMT gain parameters data to database.
 
void importPmtInstallationData (std::string fileName, std::string treeName="installationPmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import PMT installation data to database.
 
void importPmtObsoleteData (std::string fileName, std::string treeName="obsPmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import PMT specifications from Hamamatsu (not to be used!)
 
void importPmtTTSPar (std::string fileName, std::string treeName="ttsPmtPar", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import gaussians fitting the TTS distributions.
 
void importPmtTTSHisto (std::string fileName, std::string treeName="ttsPmtHisto", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import histograms used for PMT TTS determination.
 
void importPmtPulseHeightFitResult (std::string fileName, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 Import fit results of pulse height disribution for channel gain and threshold efficiency.
 
void exportPmtTTSHisto (std::string outFileName="RetrievedHistos.root")
 Example of exporting TTS histograms.
 
void importFrontEndSettings (int lookback, int readoutWin, int extraWin, int offset, int expNo, int firstRun, int lastRun)
 Import front-end settings.
 
void importDummyCalModuleAlignment (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalModuleAlignment DB objects
 
void importDummyCalModuleT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalCalModuleT0 DB objects
 
void importDummyCalChannelT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelT0 DB objects
 
void importDummyCalTimebase (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalTimebase DB objects
 
void importDummyCalChannelNoise (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelNoise DB objects
 
void importDummyCalChannelPulseHeight (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelPulseHeight DB objects
 
void importDummyCalChannelRQE (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelRQE DB objects
 
void importDummyCalChannelThresholdEff (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelThresholdEff DB objects
 
void importDummyCalChannelThreshold (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelThreshold DB objects
 
void importDummyCalCommonT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalCommonT0 DB objects
 
void importDummyCalIntegratedCharge (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalIntegratedCharge DB objects
 
void importDummyCalAsicShift (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalAsicShift DB objects
 
void correctTOPPmtQE ()
 correct QE values in database for the reflection on window surface be sure that you run the function only once! see: BII-4230
 
void importTimeWalk (PyObject *list, double a, double b, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 payload TOPCalTimeWalk import parameters for time-walk correction and electronic time resolution tuning
 
void importTest (int runNumber, double syncTimeBase)
 for testing purposes only! - will be removed ...
 
void importTest ()
 for testing purposes only! - will be removed ...
 

Detailed Description

TOP database importer.

This module writes data to database or retrieves them from database. More functions will come with future...

Definition at line 26 of file TOPDatabaseImporter.h.

Constructor & Destructor Documentation

◆ TOPDatabaseImporter()

TOPDatabaseImporter ( )
inline

Default constructor.

Definition at line 33 of file TOPDatabaseImporter.h.

34 {}

◆ ~TOPDatabaseImporter()

virtual ~TOPDatabaseImporter ( )
inlinevirtual

Destructor.

Definition at line 40 of file TOPDatabaseImporter.h.

41 {}

The documentation for this class was generated from the following files: