#include <PoolDBOutputService.h>
Classes | |
struct | Record |
Public Member Functions | |
template<typename T > | |
void | appendSinceTime (T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false) |
void | appendSinceTime (const std::string &payloadId, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false) |
cond::Time_t | beginOfTime () const |
void | closeIOV (Time_t lastTill, const std::string &recordName, bool withlogging=false) |
template<typename T > | |
void | createNewIOV (T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false) |
void | createNewIOV (const std::string &firstPayloadId, const std::string payloadType, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false) |
void | createNewIOV (const std::string &firstPayloadId, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false) |
cond::Time_t | currentTime () const |
cond::Time_t | endOfTime () const |
void | forceInit () |
bool | isNewTagRequest (const std::string &recordName) |
PoolDBOutputService (const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR) | |
void | postEndJob () |
cond::persistency::Session | session () const |
void | setLogHeaderForRecord (const std::string &recordName, const std::string &provenance, const std::string &usertext) |
std::string | tag (const std::string &recordName) |
void | tagInfo (const std::string &recordName, cond::TagInfo_t &result) |
template<typename T > | |
void | writeOne (T *payload, Time_t time, const std::string &recordName, bool withlogging=false) |
virtual | ~PoolDBOutputService () |
Private Member Functions | |
void | connect () |
void | disconnect () |
void | fillRecord (edm::ParameterSet &pset) |
void | initDB (bool dummy=false) |
Record & | lookUpRecord (const std::string &recordName) |
cond::UserLogInfo & | lookUpUserLogInfo (const std::string &recordName) |
void | postModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &) |
void | preEventProcessing (edm::StreamContext const &) |
void | preGlobalBeginLumi (edm::GlobalContext const &) |
void | preGlobalBeginRun (edm::GlobalContext const &) |
void | preModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &) |
Private Attributes | |
std::map< std::string, Record > | m_callbacks |
bool | m_closeIOV |
std::vector< cond::Time_t > | m_currentTimes |
bool | m_dbstarted |
std::map< std::string, cond::UserLogInfo > | m_logheaders |
std::recursive_mutex | m_mutex |
std::vector< std::pair< std::string, std::string > > | m_newtags |
cond::persistency::Session | m_session |
cond::TimeType | m_timetype |
std::string | m_timetypestr |
Definition at line 36 of file PoolDBOutputService.h.
PoolDBOutputService::PoolDBOutputService | ( | const edm::ParameterSet & | iConfig, |
edm::ActivityRegistry & | iAR | ||
) |
Definition at line 39 of file PoolDBOutputService.cc.
References fillRecord(), edm::ParameterSet::getParameter(), cond::lumiid, m_callbacks, m_closeIOV, m_currentTimes, m_dbstarted, m_logheaders, m_session, m_timetype, m_timetypestr, edm::service::SystemBounds::maxNumberOfStreams(), postEndJob(), postModuleEvent(), preEventProcessing(), preGlobalBeginLumi(), preGlobalBeginRun(), preModuleEvent(), cond::runnumber, s_streamIndex, cond::persistency::ConnectionPool::setParameters(), AlCaHLTBitMon_QueryRunRegistry::string, cond::timestamp, cond::time::timeTypeFromName(), and DBConfiguration_cff::toPut.
|
virtual |
Definition at line 158 of file PoolDBOutputService.cc.
References m_dbstarted, m_session, cond::persistency::Transaction::rollback(), and cond::persistency::Session::transaction().
|
inline |
Definition at line 104 of file PoolDBOutputService.h.
References align_cfg::recordName, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by SiStripBadChannelBuilder::algoAnalyze(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripApvGainBuilder::analyze(), WriteEcalMiscalibConstants::analyze(), WriteEcalMiscalibConstantsMC::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), EcalTestDevDB::analyze(), BTagCalibrationDbCreator::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV::beginJob(), QGLikelihoodSystematicsDBWriter::beginJob(), JetCorrectorDBWriter::beginJob(), QGLikelihoodDBWriter::beginJob(), SiStripFedCablingBuilder::beginRun(), CocoaDBMgr::DumpCocoaResults(), BeamSpotWrite2DB::endJob(), CentralityTableProducer::endJob(), StoreESCondition::endJob(), StoreEcalCondition::endJob(), SiStripFedCablingManipulator::endRun(), HLTPrescaleRecorder::endRun(), l1t::DataWriterExt::updateIOV(), l1t::DataWriter::updateIOV(), CaloGeometryDBWriter::write(), BeamFitter::write2DB(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), and CaloGeometryDBWriter::writeIndexed().
void PoolDBOutputService::appendSinceTime | ( | const std::string & | payloadId, |
cond::Time_t | sinceTime, | ||
const std::string & | recordName, | ||
bool | withlogging = false |
||
) |
Definition at line 247 of file PoolDBOutputService.cc.
References a, cond::persistency::Session::editIov(), idDealer::editor, cppFunctionSkipper::exception, cond::persistency::IOVEditor::flush(), cond::persistency::IOVEditor::insert(), CommonMethods::lock(), lookUpRecord(), lookUpUserLogInfo(), m_mutex, m_session, SiPixelClusterizer_cfi::payloadType, cond::persistency::IOVEditor::payloadType(), AlCaHLTBitMon_QueryRunRegistry::string, cond::throwException(), cond::persistency::Session::transaction(), and cond::UserLogInfo::usertext.
cond::Time_t PoolDBOutputService::beginOfTime | ( | ) | const |
Definition at line 175 of file PoolDBOutputService.cc.
References cond::TimeTypeSpecs::beginValue, m_timetype, and cond::timeTypeSpecs.
Referenced by SiStripBadChannelBuilder::algoAnalyze(), DBWriter::analyze(), L1KeyListWriter::analyze(), L1KeyWriter::analyze(), L1TMuonOverlapWriter::analyze(), L1TCaloParamsUpdater::analyze(), L1TCaloStage2ParamsWriter::analyze(), L1TGlobalPrescalesVetosWriter::analyze(), L1TMuonBarrelParamsWriter::analyze(), L1TMuonGlobalParamsWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), L1MenuWriter::analyze(), L1TMuonEndcapWriter::analyze(), L1TMuonEndCapForestWriter::analyze(), SiStripNoisesBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), GBRForestWriter::analyze(), SurveyInputTrackerFromDB::analyze(), WriteEcalMiscalibConstantsMC::analyze(), WriteEcalMiscalibConstants::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), TrackerSystematicMisalignments::analyze(), SiStripApvGainBuilderFromTag::analyze(), EcalTestDevDB::analyze(), TrackerGeometryCompare::analyze(), BTagCalibrationDbCreator::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), JetResolutionDBWriter::beginJob(), QGLikelihoodSystematicsDBWriter::beginJob(), JetCorrectorDBWriter::beginJob(), XMLGeometryBuilder::beginJob(), QGLikelihoodDBWriter::beginJob(), SiStripFedCablingBuilder::beginRun(), HcalParametersDBBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), GeometricDetLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), GEMRecoIdealDBLoader::beginRun(), CSCRecoIdealDBLoader::beginRun(), RPCRecoIdealDBLoader::beginRun(), PGeometricDetBuilder::beginRun(), PGeometricDetExtraBuilder::beginRun(), PHGCalParametersDBBuilder::beginRun(), ESDBCopy::copyToDB(), EcalTPGDBCopy::copyToDB(), EcalDBCopy::copyToDB(), CocoaDBMgr::DumpCocoaResults(), PhysicsTools::MVATrainerSave::endJob(), PhysicsTools::MVATrainerContainerSave::endJob(), BeamSpotWrite2DB::endJob(), CentralityTableProducer::endJob(), StoreESCondition::endJob(), BeamProfile2DB::endJob(), StoreEcalCondition::endJob(), SiStripFedCablingManipulator::endRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), HLTPrescaleRecorder::endRun(), LaserAlignment::endRunProduce(), MisalignedMuonESProducer::saveToDB(), ConditionDBWriter< SiStripApvGain >::storeOnDb(), l1t::DataWriterExt::updateIOV(), l1t::DataWriter::updateIOV(), CaloGeometryDBWriter::write(), BeamFitter::write2DB(), CaloGeometryDBWriter::writeIndexed(), and DTCalibDBUtils::writeToDB().
void PoolDBOutputService::closeIOV | ( | Time_t | lastTill, |
const std::string & | recordName, | ||
bool | withlogging = false |
||
) |
Definition at line 299 of file PoolDBOutputService.cc.
References cond::persistency::Session::editIov(), idDealer::editor, cond::persistency::IOVEditor::flush(), CommonMethods::lock(), lookUpRecord(), cond::service::PoolDBOutputService::Record::m_isNewTag, m_mutex, m_session, cond::service::PoolDBOutputService::Record::m_tag, cond::persistency::IOVEditor::setEndOfValidity(), AlCaHLTBitMon_QueryRunRegistry::string, cond::throwException(), and cond::persistency::Session::transaction().
Referenced by popcon::PopCon::finalize().
|
private |
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), o2o_db_cfgmap.DbManagerDAQ::update_hashmap(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
|
inline |
Definition at line 73 of file PoolDBOutputService.h.
References CommonMethods::lock(), SiPixelClusterizer_cfi::payloadType, align_cfg::recordName, AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by SiStripBadChannelBuilder::algoAnalyze(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripApvGainBuilder::analyze(), WriteEcalMiscalibConstantsMC::analyze(), WriteEcalMiscalibConstants::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), EcalTestDevDB::analyze(), BTagCalibrationDbCreator::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV::beginJob(), QGLikelihoodSystematicsDBWriter::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), JetCorrectorDBWriter::beginJob(), XMLGeometryBuilder::beginJob(), QGLikelihoodDBWriter::beginJob(), HcalParametersDBBuilder::beginRun(), SiStripFedCablingBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), GEMRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), GeometricDetLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), CSCRecoIdealDBLoader::beginRun(), PHGCalParametersDBBuilder::beginRun(), PGeometricDetBuilder::beginRun(), PGeometricDetExtraBuilder::beginRun(), RPCRecoIdealDBLoader::beginRun(), EcalTPGDBCopy::copyToDB(), EcalDBCopy::copyToDB(), ESDBCopy::copyToDB(), CocoaDBMgr::DumpCocoaResults(), PhysicsTools::MVATrainerSave::endJob(), PhysicsTools::MVATrainerContainerSave::endJob(), BeamSpotWrite2DB::endJob(), CentralityTableProducer::endJob(), StoreESCondition::endJob(), BeamProfile2DB::endJob(), StoreEcalCondition::endJob(), SiStripFedCablingManipulator::endRun(), HLTPrescaleRecorder::endRun(), l1t::DataWriterExt::updateIOV(), l1t::DataWriter::updateIOV(), CaloGeometryDBWriter::write(), BeamFitter::write2DB(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), and CaloGeometryDBWriter::writeIndexed().
void PoolDBOutputService::createNewIOV | ( | const std::string & | firstPayloadId, |
const std::string | payloadType, | ||
cond::Time_t | firstSinceTime, | ||
cond::Time_t | firstTillTime, | ||
const std::string & | recordName, | ||
bool | withlogging = false |
||
) |
Definition at line 186 of file PoolDBOutputService.cc.
References a, cond::persistency::Session::createIov(), idDealer::editor, cppFunctionSkipper::exception, cond::persistency::IOVEditor::flush(), cond::persistency::IOVEditor::insert(), CommonMethods::lock(), lookUpRecord(), lookUpUserLogInfo(), m_mutex, m_session, cond::persistency::IOVEditor::setDescription(), AlCaHLTBitMon_QueryRunRegistry::string, cond::SYNCH_ANY, cond::throwException(), cond::persistency::Session::transaction(), and cond::UserLogInfo::usertext.
void PoolDBOutputService::createNewIOV | ( | const std::string & | firstPayloadId, |
cond::Time_t | firstSinceTime, | ||
cond::Time_t | firstTillTime, | ||
const std::string & | recordName, | ||
bool | withlogging = false |
||
) |
Definition at line 217 of file PoolDBOutputService.cc.
References a, cond::persistency::Session::createIovForPayload(), idDealer::editor, cppFunctionSkipper::exception, cond::persistency::IOVEditor::flush(), cond::persistency::IOVEditor::insert(), CommonMethods::lock(), lookUpRecord(), lookUpUserLogInfo(), m_mutex, m_session, SiPixelClusterizer_cfi::payloadType, cond::persistency::IOVEditor::payloadType(), cond::persistency::IOVEditor::setDescription(), AlCaHLTBitMon_QueryRunRegistry::string, cond::SYNCH_ANY, cond::throwException(), cond::persistency::Session::transaction(), and cond::UserLogInfo::usertext.
cond::Time_t PoolDBOutputService::currentTime | ( | ) | const |
Definition at line 180 of file PoolDBOutputService.cc.
References m_currentTimes, and s_streamIndex.
Referenced by SiStripBadChannelBuilder::algoAnalyze(), L1MuonOverlapParamsDBProducer::analyze(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), WriteEcalMiscalibConstantsMC::analyze(), BufferedBoostIODBWriter::analyze(), WriteEcalMiscalibConstants::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), FFTJetCorrectorDBWriter::analyze(), BoostIODBWriter< DataType >::analyze(), AlignPCLThresholdsWriter::analyze(), JetResolutionDBWriter::beginJob(), SiStripFedCablingBuilder::beginRun(), ECALpedestalPCLHarvester::dqmEndJob(), SiStripGainsPCLHarvester::dqmEndJob(), CocoaDBMgr::DumpCocoaResults(), BeamSpotWrite2DB::endJob(), SurveyDBUploader::endJob(), Mixing2DB::endJob(), CentralityTableProducer::endJob(), SiStripFedCablingManipulator::endRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), popcon::L1RPCHwConfigSourceHandler::getNewObjects(), popcon::RPCEMapSourceHandler::getNewObjects(), MisalignedTrackerESProducer::produce(), MuonAlignment::saveCSCSurveyToDB(), MuonAlignment::saveCSCtoDB(), MuonAlignment::saveDTSurveyToDB(), MuonAlignment::saveDTtoDB(), TrackerAlignment::saveToDB(), ConditionDBWriter< SiStripApvGain >::setTime(), CaloGeometryDBWriter::write(), WriteESAlignments::write(), BeamFitter::write2DB(), GlobalTrackerMuonAlignment::writeGlPosRcd(), CaloGeometryDBWriter::writeIndexed(), and DTCalibDBUtils::writeToDB().
|
private |
Referenced by Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
cond::Time_t PoolDBOutputService::endOfTime | ( | ) | const |
Definition at line 170 of file PoolDBOutputService.cc.
References cond::TimeTypeSpecs::endValue, m_timetype, and cond::timeTypeSpecs.
Referenced by SiStripBadChannelBuilder::algoAnalyze(), EcalDQMStatusWriter::analyze(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripApvGainBuilder::analyze(), WriteEcalMiscalibConstantsMC::analyze(), WriteEcalMiscalibConstants::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), EcalTestDevDB::analyze(), BTagCalibrationDbCreator::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), QGLikelihoodSystematicsDBWriter::beginJob(), JetCorrectorDBWriter::beginJob(), XMLGeometryBuilder::beginJob(), QGLikelihoodDBWriter::beginJob(), HcalParametersDBBuilder::beginRun(), SiStripFedCablingBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), GEMRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), GeometricDetLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), CSCRecoIdealDBLoader::beginRun(), PGeometricDetBuilder::beginRun(), PGeometricDetExtraBuilder::beginRun(), RPCRecoIdealDBLoader::beginRun(), PHGCalParametersDBBuilder::beginRun(), EcalTPGDBCopy::copyToDB(), EcalDBCopy::copyToDB(), ESDBCopy::copyToDB(), CocoaDBMgr::DumpCocoaResults(), PhysicsTools::MVATrainerSave::endJob(), PhysicsTools::MVATrainerContainerSave::endJob(), BeamSpotWrite2DB::endJob(), CentralityTableProducer::endJob(), StoreESCondition::endJob(), BeamProfile2DB::endJob(), StoreEcalCondition::endJob(), SiStripFedCablingManipulator::endRun(), HLTPrescaleRecorder::endRun(), l1t::DataWriterExt::updateIOV(), l1t::DataWriter::updateIOV(), CaloGeometryDBWriter::write(), BeamFitter::write2DB(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), and CaloGeometryDBWriter::writeIndexed().
|
private |
Definition at line 22 of file PoolDBOutputService.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_callbacks, cond::service::PoolDBOutputService::Record::m_closeIOV, m_closeIOV, cond::service::PoolDBOutputService::Record::m_idName, m_logheaders, cond::service::PoolDBOutputService::Record::m_tag, cond::service::PoolDBOutputService::Record::m_timetype, m_timetypestr, AlCaHLTBitMon_QueryRunRegistry::string, and cond::time::timeTypeFromName().
Referenced by PoolDBOutputService().
void PoolDBOutputService::forceInit | ( | ) |
Definition at line 164 of file PoolDBOutputService.cc.
References initDB(), CommonMethods::lock(), m_dbstarted, and m_mutex.
Referenced by l1t::DataWriterExt::readObject(), l1t::WriterProxyT< Record, Type >::save(), and l1t::DataWriterExt::writeKeyList().
|
private |
Definition at line 104 of file PoolDBOutputService.cc.
References cond::persistency::Session::createDatabase(), cppFunctionSkipper::exception, cond::persistency::Session::existsDatabase(), CommonMethods::lock(), m_dbstarted, m_mutex, m_session, cond::persistency::TransactionScope::start(), AlCaHLTBitMon_QueryRunRegistry::string, cond::throwException(), and cond::persistency::Session::transaction().
Referenced by forceInit(), and lookUpRecord().
bool PoolDBOutputService::isNewTagRequest | ( | const std::string & | recordName | ) |
Definition at line 98 of file PoolDBOutputService.cc.
References lookUpRecord(), and cond::service::PoolDBOutputService::Record::m_isNewTag.
Referenced by SiStripBadChannelBuilder::algoAnalyze(), DBWriter::analyze(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripApvGainBuilder::analyze(), WriteEcalMiscalibConstantsMC::analyze(), WriteEcalMiscalibConstants::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripApvGainBuilderFromTag::analyze(), EcalTestDevDB::analyze(), BTagCalibrationDbCreator::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), JetResolutionDBWriter::beginJob(), QGLikelihoodSystematicsDBWriter::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV::beginJob(), JetCorrectorDBWriter::beginJob(), XMLGeometryBuilder::beginJob(), QGLikelihoodDBWriter::beginJob(), HcalParametersDBBuilder::beginRun(), SiStripFedCablingBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), GEMRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), GeometricDetLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), CSCRecoIdealDBLoader::beginRun(), RPCRecoIdealDBLoader::beginRun(), PGeometricDetBuilder::beginRun(), PGeometricDetExtraBuilder::beginRun(), PHGCalParametersDBBuilder::beginRun(), CocoaDBMgr::DumpCocoaResults(), BeamSpotWrite2DB::endJob(), CentralityTableProducer::endJob(), StoreESCondition::endJob(), StoreEcalCondition::endJob(), SiStripFedCablingManipulator::endRun(), AlcaBeamSpotHarvester::endRun(), HLTPrescaleRecorder::endRun(), ConditionDBWriter< SiStripApvGain >::storeOnDb(), l1t::DataWriterExt::updateIOV(), l1t::DataWriter::updateIOV(), CaloGeometryDBWriter::write(), BeamFitter::write2DB(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), CaloGeometryDBWriter::writeIndexed(), and DTCalibDBUtils::writeToDB().
|
private |
Definition at line 274 of file PoolDBOutputService.cc.
References cond::persistency::Session::existsIov(), initDB(), CommonMethods::lock(), m_callbacks, m_dbstarted, m_mutex, m_session, cond::throwException(), and cond::persistency::Session::transaction().
Referenced by appendSinceTime(), closeIOV(), createNewIOV(), isNewTagRequest(), tag(), and tagInfo().
|
private |
Definition at line 292 of file PoolDBOutputService.cc.
References m_logheaders.
Referenced by appendSinceTime(), createNewIOV(), and setLogHeaderForRecord().
void PoolDBOutputService::postEndJob | ( | ) |
Definition at line 120 of file PoolDBOutputService.cc.
References cond::persistency::Transaction::commit(), m_dbstarted, m_session, and cond::persistency::Session::transaction().
Referenced by PoolDBOutputService().
|
private |
Definition at line 140 of file PoolDBOutputService.cc.
References s_streamIndex.
Referenced by PoolDBOutputService().
|
private |
Definition at line 129 of file PoolDBOutputService.cc.
References m_currentTimes, edm::StreamContext::streamID(), edm::StreamContext::timestamp(), edm::StreamID::value(), and edm::Timestamp::value().
Referenced by PoolDBOutputService().
|
private |
Definition at line 152 of file PoolDBOutputService.cc.
References edm::GlobalContext::luminosityBlockID(), m_currentTimes, ntuplemaker::time, and edm::LuminosityBlockID::value().
Referenced by PoolDBOutputService().
|
private |
Definition at line 145 of file PoolDBOutputService.cc.
References edm::GlobalContext::luminosityBlockID(), m_currentTimes, edm::LuminosityBlockID::run(), and ntuplemaker::time.
Referenced by PoolDBOutputService().
|
private |
Definition at line 135 of file PoolDBOutputService.cc.
References s_streamIndex, edm::StreamContext::streamID(), and edm::StreamID::value().
Referenced by PoolDBOutputService().
cond::persistency::Session PoolDBOutputService::session | ( | ) | const |
Definition at line 88 of file PoolDBOutputService.cc.
References m_session, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by PCLMetadataWriter::endRun(), popcon::PopCon::initialize(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::readObject(), l1t::DataWriter::readObject(), l1t::WriterProxyT< Record, Type >::save(), l1t::DataWriterExt::writeKeyList(), l1t::DataWriter::writeKeyList(), and l1t::DataWriter::writePayload().
void PoolDBOutputService::setLogHeaderForRecord | ( | const std::string & | recordName, |
const std::string & | provenance, | ||
const std::string & | usertext | ||
) |
Definition at line 318 of file PoolDBOutputService.cc.
References lookUpUserLogInfo(), cond::UserLogInfo::provenance, and cond::UserLogInfo::usertext.
Referenced by popcon::PopCon::write().
std::string PoolDBOutputService::tag | ( | const std::string & | recordName | ) |
Definition at line 93 of file PoolDBOutputService.cc.
References lookUpRecord(), and cond::service::PoolDBOutputService::Record::m_tag.
Referenced by PCLMetadataWriter::endRun(), popcon::PopCon::initialize(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::updateIOV(), and l1t::DataWriterExt::updateIOV().
void PoolDBOutputService::tagInfo | ( | const std::string & | recordName, |
cond::TagInfo_t & | result | ||
) |
Definition at line 327 of file PoolDBOutputService.cc.
References cond::persistency::IOVProxy::getLast(), plotBeamSpotDB::last, cond::TagInfo_t::lastInterval, cond::TagInfo_t::lastPayloadToken, CommonMethods::lock(), lookUpRecord(), m_mutex, m_session, cond::service::PoolDBOutputService::Record::m_tag, cond::TagInfo_t::name, cond::Iov_t::payloadId, cond::persistency::Session::readIov(), record, cond::persistency::IOVProxy::sequenceSize(), cond::Iov_t::since, cond::TagInfo_t::size, and cond::Iov_t::till.
Referenced by l1t::DataWriter::lastPayloadToken(), l1t::DataWriterExt::lastPayloadToken(), l1t::DataWriterExt::updateIOV(), and l1t::DataWriter::updateIOV().
|
inline |
Definition at line 54 of file PoolDBOutputService.h.
References CommonMethods::lock(), SiPixelClusterizer_cfi::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by EcalDQMStatusWriter::analyze(), L1MuonOverlapParamsDBProducer::analyze(), GBRForestWriter::analyze(), SurveyInputTrackerFromDB::analyze(), BufferedBoostIODBWriter::analyze(), TrackerSystematicMisalignments::analyze(), WriteCTPPSPixelAnalysisMask::analyze(), WriteCTPPSPixelDAQMapping::analyze(), BoostIODBWriter< DataType >::analyze(), FFTJetCorrectorDBWriter::analyze(), AlignPCLThresholdsWriter::analyze(), TrackerGeometryCompare::analyze(), MCMisalignmentScaler::analyze(), JetResolutionDBWriter::beginJob(), DTUserKeyedConfigHandler::chkConfigList(), DTKeyedConfigHandler::chkConfigList(), EcalDBCopy::copyToDB(), ECALpedestalPCLHarvester::dqmEndJob(), SiStripGainsPCLHarvester::dqmEndJob(), SurveyDBUploader::endJob(), Mixing2DB::endJob(), DTKeyedConfigDBInit::endJob(), SiStripLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), AlcaBeamSpotHarvester::endRun(), cond::BTransitionAnalyzer< EcalADCToGeVConstant, EcalADCToGeVConstantRcd >::endRun(), LaserAlignment::endRunProduce(), MisalignedTrackerESProducer::produce(), MuonAlignment::saveCSCSurveyToDB(), MuonAlignment::saveCSCtoDB(), MuonAlignment::saveDTSurveyToDB(), MuonAlignment::saveDTtoDB(), TrackerAlignment::saveToDB(), MisalignedMuonESProducer::saveToDB(), ConditionDBWriter< SiStripApvGain >::storeOnDb(), WriteESAlignments::write(), AlignmentProducerBase::writeDB(), GlobalTrackerMuonAlignment::writeGlPosRcd(), popcon::PopCon::writeOne(), DTCalibDBUtils::writeToDB(), and CreateIdealTkAlRecords::writeToDB().
|
private |
Definition at line 203 of file PoolDBOutputService.h.
Referenced by fillRecord(), lookUpRecord(), and PoolDBOutputService().
|
private |
Definition at line 205 of file PoolDBOutputService.h.
Referenced by fillRecord(), and PoolDBOutputService().
|
private |
Definition at line 198 of file PoolDBOutputService.h.
Referenced by currentTime(), PoolDBOutputService(), preEventProcessing(), preGlobalBeginLumi(), and preGlobalBeginRun().
|
private |
Definition at line 201 of file PoolDBOutputService.h.
Referenced by forceInit(), initDB(), lookUpRecord(), PoolDBOutputService(), postEndJob(), and ~PoolDBOutputService().
|
private |
Definition at line 206 of file PoolDBOutputService.h.
Referenced by fillRecord(), lookUpUserLogInfo(), and PoolDBOutputService().
|
private |
Definition at line 195 of file PoolDBOutputService.h.
Referenced by appendSinceTime(), closeIOV(), createNewIOV(), forceInit(), initDB(), lookUpRecord(), and tagInfo().
|
private |
Definition at line 204 of file PoolDBOutputService.h.
|
private |
Definition at line 200 of file PoolDBOutputService.h.
Referenced by appendSinceTime(), closeIOV(), createNewIOV(), initDB(), lookUpRecord(), PoolDBOutputService(), postEndJob(), session(), tagInfo(), and ~PoolDBOutputService().
|
private |
Definition at line 196 of file PoolDBOutputService.h.
Referenced by beginOfTime(), endOfTime(), and PoolDBOutputService().
|
private |
Definition at line 197 of file PoolDBOutputService.h.
Referenced by fillRecord(), and PoolDBOutputService().