#include <PayloadInspector.h>
Public Member Functions | |
std::string | data () const |
cond::persistency::Session | dbSession () |
template<typename PayloadType > | |
std::shared_ptr< PayloadType > | fetchPayload (const cond::Hash &payloadHash) |
cond::Tag_t | getTagInfo (const std::string &tag) |
virtual void | init () |
bool | isSingleIov () const |
bool | isTwoTags () const |
std::string | payloadType () const |
PlotBase () | |
bool | process (const std::string &connectionString, const std::string &tag, const std::string &timeType, cond::Time_t begin, cond::Time_t end) |
virtual std::string | processData (const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs) |
bool | processTwoTags (const std::string &connectionString, const std::string &tag0, const std::string &tag1, cond::Time_t time0, cond::Time_t time1) |
void | setSingleIov (bool flag) |
void | setTwoTags (bool flag) |
std::string | title () const |
std::string | type () const |
virtual | ~PlotBase ()=default |
Protected Attributes | |
PlotAnnotations | m_plotAnnotations |
std::string | m_tag0 = "" |
std::string | m_tag1 = "" |
Private Attributes | |
std::string | m_data = "" |
cond::persistency::Session | m_dbSession |
Definition at line 133 of file PayloadInspector.h.
cond::payloadInspector::PlotBase::PlotBase | ( | ) |
Definition at line 24 of file PayloadInspector.cc.
|
virtualdefault |
std::string cond::payloadInspector::PlotBase::data | ( | ) | const |
Definition at line 48 of file PayloadInspector.cc.
References m_data.
Referenced by data_sources.node::__str__(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), BOOST_PYTHON_MODULE(), data_sources.json_list::get_members(), and data_sources.json_list::last().
cond::persistency::Session cond::payloadInspector::PlotBase::dbSession | ( | ) |
Definition at line 150 of file PayloadInspector.cc.
References m_dbSession.
|
inline |
Definition at line 175 of file PayloadInspector.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
cond::Tag_t cond::payloadInspector::PlotBase::getTagInfo | ( | const std::string & | tag | ) |
Definition at line 144 of file PayloadInspector.cc.
References cond::persistency::Session::getTagInfo(), info(), and m_dbSession.
|
virtual |
Reimplemented in cond::payloadInspector::Histogram2D< PayloadType >, and cond::payloadInspector::Histogram1D< PayloadType >.
Definition at line 124 of file PayloadInspector.cc.
Referenced by process(), and processTwoTags().
bool cond::payloadInspector::PlotBase::isSingleIov | ( | ) | const |
Definition at line 40 of file PayloadInspector.cc.
References m_plotAnnotations, and cond::payloadInspector::PlotAnnotations::singleIov.
Referenced by BOOST_PYTHON_MODULE().
bool cond::payloadInspector::PlotBase::isTwoTags | ( | ) | const |
Definition at line 44 of file PayloadInspector.cc.
References m_plotAnnotations, and cond::payloadInspector::PlotAnnotations::twoTags.
Referenced by BOOST_PYTHON_MODULE().
std::string cond::payloadInspector::PlotBase::payloadType | ( | ) | const |
Definition at line 28 of file PayloadInspector.cc.
References cond::payloadInspector::PlotAnnotations::get(), m_plotAnnotations, and cond::payloadInspector::PlotAnnotations::PAYLOAD_TYPE_K.
Referenced by BOOST_PYTHON_MODULE().
bool cond::payloadInspector::PlotBase::process | ( | const std::string & | connectionString, |
const std::string & | tag, | ||
const std::string & | timeType, | ||
cond::Time_t | begin, | ||
cond::Time_t | end | ||
) |
Definition at line 52 of file PayloadInspector.cc.
References edm::ParameterSet::addParameter(), cond::persistency::Transaction::commit(), cond::persistency::ConnectionPool::createSession(), edm::ServiceRegistry::createSet(), cond::persistency::Session::getIovRange(), init(), m_data, m_dbSession, m_tag0, cmsPerfStripChart::operate(), processData(), cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and cond::persistency::Session::transaction().
Referenced by BOOST_PYTHON_MODULE(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().
|
virtual |
Reimplemented in cond::payloadInspector::PlotImage< PayloadType >, cond::payloadInspector::Plot3D< PayloadType, X, Y, Z >, cond::payloadInspector::Plot3D< PayloadType, float, float, float >, cond::payloadInspector::Plot2D< PayloadType, X, Y >, cond::payloadInspector::Plot2D< PayloadType, std::tuple< float, std::string >, Y >, cond::payloadInspector::Plot2D< PayloadType, std::tuple< unsigned long long, std::string >, Y >, cond::payloadInspector::Plot2D< PayloadType, unsigned long long, Y >, and cond::payloadInspector::Plot2D< PayloadType, float, float >.
Definition at line 127 of file PayloadInspector.cc.
Referenced by process(), and processTwoTags().
bool cond::payloadInspector::PlotBase::processTwoTags | ( | const std::string & | connectionString, |
const std::string & | tag0, | ||
const std::string & | tag1, | ||
cond::Time_t | time0, | ||
cond::Time_t | time1 | ||
) |
bool PlotBase::process( const std::string& connectionString, const std::string& tag, cond::Time_t begin, cond::Time_t end ){ init();
std::vector<edm::ParameterSet> psets; edm::ParameterSet pSet; pSet.addParameter("@service_type",std::string("SiteLocalConfigService")); psets.push_back(pSet); static const edm::ServiceToken services(edm::ServiceRegistry::createSet(psets)); static const edm::ServiceRegistry::Operate operate(services);
m_tag0 = tag; cond::persistency::ConnectionPool connection; m_dbSession = connection.createSession( connectionString ); m_dbSession.transaction().start(); std::vector<std::tuple<cond::Time_t,cond::Hash> > iovs; m_dbSession.getIovRange( tag, begin, end, iovs ); m_data = processData( iovs ); m_dbSession.transaction().commit(); fixme... return true; }
Definition at line 99 of file PayloadInspector.cc.
References edm::ParameterSet::addParameter(), cond::persistency::Transaction::commit(), cond::persistency::ConnectionPool::createSession(), edm::ServiceRegistry::createSet(), cond::persistency::Session::getIovRange(), init(), m_data, m_dbSession, m_tag0, m_tag1, cmsPerfStripChart::operate(), processData(), cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::Session::transaction().
Referenced by BOOST_PYTHON_MODULE().
void cond::payloadInspector::PlotBase::setSingleIov | ( | bool | flag | ) |
Definition at line 131 of file PayloadInspector.cc.
References RemoveAddSevLevel::flag, m_plotAnnotations, and cond::payloadInspector::PlotAnnotations::singleIov.
void cond::payloadInspector::PlotBase::setTwoTags | ( | bool | flag | ) |
Definition at line 135 of file PayloadInspector.cc.
References RemoveAddSevLevel::flag, m_plotAnnotations, cond::payloadInspector::PlotAnnotations::singleIov, and cond::payloadInspector::PlotAnnotations::twoTags.
std::string cond::payloadInspector::PlotBase::title | ( | ) | const |
Definition at line 32 of file PayloadInspector.cc.
References cond::payloadInspector::PlotAnnotations::get(), m_plotAnnotations, and cond::payloadInspector::PlotAnnotations::TITLE_K.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer::autolayout(), Vispa.Views.LineDecayView.LineDecayContainer::autolayoutThreadFinished(), BOOST_PYTHON_MODULE(), Vispa.Views.LineDecayView.LineDecayContainer::childFinishedAutolayouting(), and Vispa.Gui.PortWidget.PortWidget::name().
std::string cond::payloadInspector::PlotBase::type | ( | ) | const |
Definition at line 36 of file PayloadInspector.cc.
References cond::payloadInspector::PlotAnnotations::get(), m_plotAnnotations, and cond::payloadInspector::PlotAnnotations::PLOT_TYPE_K.
Referenced by BOOST_PYTHON_MODULE(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties().
|
private |
Definition at line 198 of file PayloadInspector.h.
Referenced by data(), process(), and processTwoTags().
|
private |
Definition at line 195 of file PayloadInspector.h.
Referenced by dbSession(), getTagInfo(), process(), and processTwoTags().
|
protected |
Definition at line 189 of file PayloadInspector.h.
Referenced by isSingleIov(), isTwoTags(), payloadType(), setSingleIov(), setTwoTags(), title(), and type().
|
protected |
Definition at line 190 of file PayloadInspector.h.
Referenced by process(), and processTwoTags().
|
protected |
Definition at line 191 of file PayloadInspector.h.
Referenced by processTwoTags().