Belle II Software
release-08-01-10
|
ECL database importer. More...
#include <ECLDatabaseImporter.h>
Public Member Functions | |
ECLDatabaseImporter (std::vector< std::string > inputFileNames, const std::string &m_name) | |
Constructor. | |
virtual | ~ECLDatabaseImporter () |
Destructor. | |
void | importDigitEnergyCalibration () |
Import ECL energy calibration constants to the database. | |
void | importDigitTimeCalibration () |
Import ECL time calibration constants to the database. | |
void | importShowerShapesSecondMomentCorrections () |
Import ECL shower shape corrections to second moment to the database. | |
void | importShowerCorrectorLeakageCorrections () |
Import ECL leakage corrections to showers. | |
void | importShowerEnergyCorrectionTemporary () |
Import ECL corrections to showers energies. More... | |
void | importTrackClusterMatchingThresholds () |
Import threshold values for track ECL cluster matching to the database. | |
void | importTrackClusterMatchingParameterizations () |
Import parameterizations for the RMS between tracks and ECL clusters to the database. | |
Private Member Functions | |
template<class rootClass > | |
rootClass | getRootObjectFromFile (TFile *file, const std::string &rootObjName) const |
Extract a root object rootObjName from a root file file. More... | |
Private Attributes | |
std::vector< std::string > | m_inputFileNames |
Input file name. | |
std::string | m_name |
Database object (output) file name. | |
std::string | m_bgFractionBinNumBranchName = "bgFractionBinNum" |
Branch names for shower corrector leakage correction root file. More... | |
std::string | m_regNumBranchName = "regNum" |
regNum branch name | |
std::string | m_phiBinNumBranchName = "phiBinNum" |
phiBinNum branch name | |
std::string | m_thetaBinNumBranchName = "thetaBinNum" |
thetaBinNum branch name | |
std::string | m_energyBinNumBranchName = "energyBinNum" |
energyBinNum branch name | |
std::string | m_correctionFactorBranchName = "correctionFactor" |
correctionFactor branch name | |
const int | m_numAvgRecEnEntries = 15 |
Number of entries in avgRecEn array. More... | |
std::string | m_avgRecEnBranchName = "avgRecEn" |
avgRecEn branch name | |
std::string | m_lReg1ThetaBranchName = "lReg1Theta" |
lReg1Theta branch name | |
std::string | m_hReg1ThetaBranchName = "hReg1Theta" |
hReg1Theta branch name | |
std::string | m_lReg2ThetaBranchName = "lReg2Theta" |
lReg2Theta branch name | |
std::string | m_hReg2ThetaBranchName = "hReg2Theta" |
hReg2Theta branch name | |
std::string | m_lReg3ThetaBranchName = "lReg3Theta" |
lReg3Theta branch name | |
std::string | m_hReg3ThetaBranchName = "hReg3Theta" |
hReg3Theta branch name | |
std::string | m_numOfBfBinsBranchName = "numOfBfBins" |
numOfBfBins branch name | |
std::string | m_numOfEnergyBinsBranchName = "numOfEnergyBins" |
numOfEnergyBins branch name | |
std::string | m_numOfPhiBinsBranchName = "numOfPhiBins" |
numOfPhiBins branch name | |
std::string | m_numOfReg1ThetaBinsBranchName = "numOfReg1ThetaBins" |
numOfReg1ThetaBins branch name | |
std::string | m_numOfReg2ThetaBinsBranchName = "numOfReg2ThetaBins" |
numOfReg2ThetaBins branch name | |
std::string | m_numOfReg3ThetaBinsBranchName = "numOfReg3ThetaBins" |
numOfReg3ThetaBins branch name | |
std::string | m_phiPeriodicityBranchName = "phiPeriodicity" |
phiPeriodicity branch name | |
ECL database importer.
This module writes data from e.g. a ROOT histogram to database.
Definition at line 26 of file ECLDatabaseImporter.h.
|
inlineprivate |
Extract a root object rootObjName from a root file file.
The file is assumed to be valid (pointer valid and not zombie). If rootObjName doesn't exist in file, do B2FATAL.
Definition at line 88 of file ECLDatabaseImporter.h.
void importShowerEnergyCorrectionTemporary | ( | ) |
Import ECL corrections to showers energies.
Temperary - there will be additional improvements done to these corrections in the future. Input file should be .txt file and have the format: generated-energy bkg-scale-factor theta-min theta-max corr-factor. The numbers should be seperated by spaces. For each line, the theta value used is the average of theta-min and theta-max
Definition at line 349 of file ECLDatabaseImporter.cc.
|
private |
Branch names for shower corrector leakage correction root file.
bgFractionBinNum branch name
Definition at line 104 of file ECLDatabaseImporter.h.
|
private |
Number of entries in avgRecEn array.
If this is wrong bad things will happen
Definition at line 112 of file ECLDatabaseImporter.h.