#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 lumiNorm::correctorStr, lumiCalc2::defaultonly, hcaldqm::constants::HF, lumiCalc2::normid, normDML::normIdByName(), normDML::normIdByType(), mps_fire::result, dataDML::schema, 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 98 of file NormDML.cc.
References lumiNorm::correctorStr, lumi::LumiNames::luminormv2dataTableName(), parseAfterglows(), parseLumiCorrector(), ntuplemaker::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 18 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 50 of file NormDML.cc.
References gather_cfg::cout, Exception, HF, lumi::LumiNames::luminormv2TableName(), lumiCalc2::normid, lumiCalc2::normname, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LumiCorrectionSource::fillparamcache().
void NormDML::parseAfterglows | ( | const std::string & | afterglowStr, |
std::map< unsigned int, float > & | afterglowmap | ||
) |
Definition at line 151 of file NormDML.cc.
References counter, AlCaHLTBitMon_QueryRunRegistry::string, ctppsDiamondLocalTracks_cfi::threshold, and heppy_batch::val.
Referenced by normById().
void NormDML::parseLumiCorrector | ( | const std::string & | correctorStr, |
std::vector< std::string > & | correctorParams | ||
) |
Definition at line 144 of file NormDML.cc.
References split, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by normById().