#include <NormDML.h>
Classes | |
struct | normData |
Public Types | |
enum | LumiType { HF, PIXEL } |
Public Member Functions | |
void | normById (const coral::ISchema &schema, unsigned long long normid, std::map< unsigned int, normData > &result) |
NormDML () | |
unsigned long long | normIdByName (const coral::ISchema &schema, const std::string &normtagname) |
void | normIdByType (const coral::ISchema &schema, std::map< std::string, unsigned long long > &resultMap, LumiType=HF, bool defaultonly=true) |
void | parseAfterglows (const std::string &afterglowStr, std::map< unsigned int, float > &afterglowmap) |
void | parseLumiCorrector (const std::string &correctorStr, std::vector< std::string > &correctorParams) |
~NormDML () | |
Enumerator | |
---|---|
HF | |
PIXEL |
Definition at line 35 of file NormDML.h.
NormDML::NormDML | ( | ) |
Definition at line 15 of file NormDML.cc.
|
inline |
Definition at line 37 of file NormDML.h.
References CaloTPGTranscoder_cfi::HF, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
void NormDML::normById | ( | const coral::ISchema & | schema, |
unsigned long long | normid, | ||
std::map< unsigned int, normData > & | result | ||
) |
select * from luminormsv2data where data_id=normid
Definition at line 97 of file NormDML.cc.
References lumi::LumiNames::luminormv2dataTableName(), parseAfterglows(), parseLumiCorrector(), writeEcalDQMStatus::since, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LumiCorrectionSource::fillparamcache().
unsigned long long NormDML::normIdByName | ( | const coral::ISchema & | schema, |
const std::string & | normtagname | ||
) |
select max(DATA_ID) FROM LUMINORMSV2 WHERE ENTRY_NAME=:normname
Definition at line 16 of file NormDML.cc.
References lumi::LumiNames::luminormv2TableName(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LumiCorrectionSource::fillparamcache().
void NormDML::normIdByType | ( | const coral::ISchema & | schema, |
std::map< std::string, unsigned long long > & | resultMap, | ||
LumiType | lumitype = HF , |
||
bool | defaultonly = true |
||
) |
select max(DATA_ID) FROM LUMINORMSV2 WHERE LUMITYPE=:lumitype and ISTYPEDEFAULT=1
Definition at line 47 of file NormDML.cc.
References gather_cfg::cout, Exception, HF, lumi::LumiNames::luminormv2TableName(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LumiCorrectionSource::fillparamcache().
void NormDML::parseAfterglows | ( | const std::string & | afterglowStr, |
std::map< unsigned int, float > & | afterglowmap | ||
) |
Definition at line 147 of file NormDML.cc.
References counter, AlCaHLTBitMon_QueryRunRegistry::string, MessageLogger_cff::threshold, and heppy_batch::val.
Referenced by normById().
void NormDML::parseLumiCorrector | ( | const std::string & | correctorStr, |
std::vector< std::string > & | correctorParams | ||
) |
Definition at line 142 of file NormDML.cc.
References cms::dd::split(), AlCaHLTBitMon_QueryRunRegistry::string, and trim().
Referenced by normById().