Belle II Software development
|
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. | |
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. | |
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. | |
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. | |
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.
ECLDatabaseImporter | ( | std::vector< std::string > | inputFileNames, |
const std::string & | m_name | ||
) |
Constructor.
Definition at line 44 of file ECLDatabaseImporter.cc.
|
inlinevirtual |
|
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 importDigitEnergyCalibration | ( | ) |
Import ECL energy calibration constants to the database.
Definition at line 54 of file ECLDatabaseImporter.cc.
void importDigitTimeCalibration | ( | ) |
Import ECL time calibration constants to the database.
Definition at line 103 of file ECLDatabaseImporter.cc.
void importShowerCorrectorLeakageCorrections | ( | ) |
Import ECL leakage corrections to showers.
Definition at line 145 of file ECLDatabaseImporter.cc.
void importShowerEnergyCorrectionTemporary | ( | ) |
Import ECL corrections to showers energies.
Temporary - 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 separated by spaces. For each line, the theta value used is the average of theta-min and theta-max
Definition at line 354 of file ECLDatabaseImporter.cc.
void importShowerShapesSecondMomentCorrections | ( | ) |
Import ECL shower shape corrections to second moment to the database.
Definition at line 312 of file ECLDatabaseImporter.cc.
void importTrackClusterMatchingParameterizations | ( | ) |
Import parameterizations for the RMS between tracks and ECL clusters to the database.
Definition at line 477 of file ECLDatabaseImporter.cc.
void importTrackClusterMatchingThresholds | ( | ) |
Import threshold values for track ECL cluster matching to the database.
Definition at line 432 of file ECLDatabaseImporter.cc.
|
private |
avgRecEn branch name
Definition at line 113 of file ECLDatabaseImporter.h.
|
private |
Branch names for shower corrector leakage correction root file.
bgFractionBinNum branch name
Definition at line 104 of file ECLDatabaseImporter.h.
|
private |
correctionFactor branch name
Definition at line 109 of file ECLDatabaseImporter.h.
|
private |
energyBinNum branch name
Definition at line 108 of file ECLDatabaseImporter.h.
|
private |
hReg1Theta branch name
Definition at line 115 of file ECLDatabaseImporter.h.
|
private |
hReg2Theta branch name
Definition at line 117 of file ECLDatabaseImporter.h.
|
private |
hReg3Theta branch name
Definition at line 119 of file ECLDatabaseImporter.h.
|
private |
Input file name.
Definition at line 82 of file ECLDatabaseImporter.h.
|
private |
lReg1Theta branch name
Definition at line 114 of file ECLDatabaseImporter.h.
|
private |
lReg2Theta branch name
Definition at line 116 of file ECLDatabaseImporter.h.
|
private |
lReg3Theta branch name
Definition at line 118 of file ECLDatabaseImporter.h.
|
private |
Database object (output) file name.
Definition at line 83 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.
|
private |
numOfBfBins branch name
Definition at line 120 of file ECLDatabaseImporter.h.
|
private |
numOfEnergyBins branch name
Definition at line 121 of file ECLDatabaseImporter.h.
|
private |
numOfPhiBins branch name
Definition at line 122 of file ECLDatabaseImporter.h.
|
private |
numOfReg1ThetaBins branch name
Definition at line 123 of file ECLDatabaseImporter.h.
|
private |
numOfReg2ThetaBins branch name
Definition at line 124 of file ECLDatabaseImporter.h.
|
private |
numOfReg3ThetaBins branch name
Definition at line 125 of file ECLDatabaseImporter.h.
|
private |
phiBinNum branch name
Definition at line 106 of file ECLDatabaseImporter.h.
|
private |
phiPeriodicity branch name
Definition at line 126 of file ECLDatabaseImporter.h.
|
private |
regNum branch name
Definition at line 105 of file ECLDatabaseImporter.h.
|
private |
thetaBinNum branch name
Definition at line 107 of file ECLDatabaseImporter.h.