Classes | |
struct | hltinfo |
Public Types | |
typedef std::map< unsigned int, std::string, std::less< unsigned int > > | HltPathMap |
typedef std::vector< std::map< unsigned int, HLTV32DB::hltinfo, std::less< unsigned int > > > | HltResult |
Public Member Functions | |
const std::string | dataType () const override |
HLTV32DB (const std::string &dest) | |
unsigned long long | retrieveData (unsigned int) override |
const std::string | sourceType () const override |
void | writeHltData (coral::ISessionProxy *lumisession, unsigned int irunnumber, const std::string &source, unsigned int npath, HltResult::iterator hltBeg, HltResult::iterator hltEnd, unsigned int commitintv) |
unsigned long long | writeHltDataToSchema2 (coral::ISessionProxy *lumisession, unsigned int irunnumber, const std::string &source, unsigned int npath, HltResult::iterator hltBeg, HltResult::iterator hltEnd, HltPathMap &hltpathmap, unsigned int commitintv) |
~HLTV32DB () override | |
Public Member Functions inherited from lumi::DataPipe | |
DataPipe (const std::string &) | |
std::string | getAuthPath () const |
std::string | getMode () const |
float | getNorm () const |
std::string | getSource () const |
void | setAuthPath (const std::string &authpath) |
void | setMode (const std::string &mode) |
void | setNoCheckingStableBeam () |
void | setNorm (float norm) |
void | setNoValidate () |
void | setSource (const std::string &source) |
virtual | ~DataPipe () |
Static Public Attributes | |
static const unsigned int | COMMITINTERVAL =200 |
static const unsigned int | COMMITLSINTERVAL =500 |
Additional Inherited Members | |
Protected Attributes inherited from lumi::DataPipe | |
std::string | m_authpath |
std::string | m_dest |
std::string | m_mode |
bool | m_nocheckingstablebeam |
float | m_norm |
bool | m_novalidate |
std::string | m_source |
Definition at line 34 of file HLTV32DB.cc.
typedef std::map< unsigned int, std::string , std::less<unsigned int> > lumi::HLTV32DB::HltPathMap |
Definition at line 52 of file HLTV32DB.cc.
typedef std::vector< std::map<unsigned int,HLTV32DB::hltinfo,std::less<unsigned int> > > lumi::HLTV32DB::HltResult |
Definition at line 53 of file HLTV32DB.cc.
|
explicit |
Definition at line 73 of file HLTV32DB.cc.
|
override |
|
overridevirtual |
Implements lumi::DataPipe.
Definition at line 533 of file HLTV32DB.cc.
|
overridevirtual |
retrieve hlt info with 3 queries from runinfo
select prescale_index,lumi_section from cms_gt_mon.lumi_sections where run_number=:runnum;
select distinct ( PATHID ) from HLT_SUPERVISOR_TRIGGERPATHS where runnumber=:runnumber;
initialize hltpathmap
select name from cms_hlt.paths where pathid=:pathid
fill up hltpathmap
initialize hltresult
select t.l1pass,t.paccept,t.pathid,m.psvalue from cms_runinfo.hlt_supervisor_triggerpaths t, cms_runinfo.hlt_supervisor_scalar_map_v2 m where m.pathid=t.pathid and m.runnumber=t.runnumber and m.runnumber=:runnum and m.psindex=:0 and t.lsnumber=:ls
for(HltResult::iterator hltIt=hltresult.begin();hltIt!=hltresult.end();++hltIt){
std::map<unsigned int,HLTV32DB::hltinfo>::const_iterator pathIt; std::map<unsigned int,HLTV32DB::hltinfo>::const_iterator pathBeg=hltIt->begin(); std::map<unsigned int,HLTV32DB::hltinfo>::const_iterator pathEnd=hltIt->end(); for(pathIt=pathBeg;pathIt!=pathEnd;++pathIt){ unsigned int cmslsnum = pathIt->second.cmsluminr; std::string pathname = pathIt->second.pathname; unsigned int inputcount = pathIt->second.hltinput; unsigned int acceptcount = pathIt->second.hltaccept; unsigned int prescale = pathIt->second.prescale; std::cout<<"cmslsnum "<<cmslsnum<<" pathname "<<pathname<<" inputcount "<<inputcount<<" acceptcount "<<acceptcount<<" prescale "<<prescale<<std::endl; } }
Implements lumi::DataPipe.
Definition at line 74 of file HLTV32DB.cc.
References EnergyCorrector::c, lumi::HLTV32DB::hltinfo::cmsluminr, COMMITINTERVAL, COMMITLSINTERVAL, gather_cfg::cout, Exception, lumi::HLTV32DB::hltinfo::hltaccept, dataDML::hltdataid, lumi::HLTV32DB::hltinfo::hltinput, mps_fire::i, lumi::DataPipe::m_authpath, lumi::DataPipe::m_dest, lumi::DataPipe::m_mode, lumi::DataPipe::m_source, lumi::HLTV32DB::hltinfo::pathname, lumi::HLTV32DB::hltinfo::prescale, q1, lumi::DBConfig::setAuthentication(), AlCaHLTBitMon_QueryRunRegistry::string, dataDML::svc, writeHltData(), and writeHltDataToSchema2().
|
overridevirtual |
void lumi::HLTV32DB::writeHltData | ( | coral::ISessionProxy * | lumisession, |
unsigned int | irunnumber, | ||
const std::string & | source, | ||
unsigned int | npath, | ||
HltResult::iterator | hltBeg, | ||
HltResult::iterator | hltEnd, | ||
unsigned int | commitintv | ||
) |
Definition at line 320 of file HLTV32DB.cc.
References estimatePileup2::cmslsnum, gather_cfg::cout, SoftLeptonByDistance_cfi::distance, lumi::idDealer::generateNextIDForTable(), lumi::LumiNames::hltTableName(), mps_fire::i, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by retrieveData().
unsigned long long lumi::HLTV32DB::writeHltDataToSchema2 | ( | coral::ISessionProxy * | lumisession, |
unsigned int | irunnumber, | ||
const std::string & | source, | ||
unsigned int | npath, | ||
HltResult::iterator | hltBeg, | ||
HltResult::iterator | hltEnd, | ||
HltPathMap & | hltpathmap, | ||
unsigned int | commitintv | ||
) |
Definition at line 406 of file HLTV32DB.cc.
References lumi::RevisionDML::addEntry(), lumi::RevisionDML::addRevision(), lumi::RevisionDML::bookNewEntry(), lumi::RevisionDML::bookNewRevision(), lumiNorm::branch_id, estimatePileup2::cmslsnum, gather_cfg::cout, lumi::RevisionDML::Entry::data_id, revisionDML::data_id, SoftLeptonByDistance_cfi::distance, lumi::RevisionDML::Entry::entry_id, lumi::RevisionDML::Entry::entry_name, lumi::RevisionDML::getEntryInBranchByName(), lumi::LumiNames::hltdataTableName(), dataDML::hltrundata, lumi::RevisionDML::insertHltRunData(), lumi::LumiNames::lshltTableName(), lumi::RevisionDML::HltEntry::npath, lumi::RevisionDML::HltEntry::pathnames, lumiPlot::pathnames, lumi::RevisionDML::Entry::revision_id, lumi::RevisionDML::HltEntry::runnumber, source, lumi::RevisionDML::HltEntry::source, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by retrieveData().
|
static |
Definition at line 37 of file HLTV32DB.cc.
Referenced by retrieveData().
|
static |
Definition at line 38 of file HLTV32DB.cc.
Referenced by retrieveData().