|
bool | fill (const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs) override |
|
virtual Y | getFromPayload (PayloadType &payload)=0 |
|
| RunHistoryPlot (const std::string &title, const std::string &yLabel) |
|
| ~RunHistoryPlot () override=default |
|
std::shared_ptr< PayloadType > | fetchPayload (const cond::Hash &payloadHash) |
|
| Plot2D (const std::string &type, const std::string &title, const std::string xLabel, const std::string &yLabel) |
|
std::string | processData (const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs) override |
|
std::string | serializeData () |
|
| ~Plot2D () override=default |
|
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) |
|
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 |
|
template<typename PayloadType, typename Y>
class cond::payloadInspector::RunHistoryPlot< PayloadType, Y >
Definition at line 284 of file PayloadInspector.h.
template<typename PayloadType , typename Y >
Implements cond::payloadInspector::Plot2D< PayloadType, std::tuple< float, std::string >, Y >.
Definition at line 292 of file PayloadInspector.h.
References label, cond::lumiid, jets_cff::payload, writedatasetfile::run, writedatasetfile::runs, ntuplemaker::since, AlCaHLTBitMon_QueryRunRegistry::string, protons_cff::t, cond::timestamp, cond::Tag_t::timeType, cond::time::to_boost(), and DOFs::Y.
295 std::map<cond::Time_t,unsigned int>
runs;
298 for(
auto iov : iovs ) {
299 unsigned int run = std::get<0>(iov) >> 32;
300 auto it = runs.find( run );
301 if( it == runs.end() ) it = runs.insert( std::make_pair( run, 0 ) ).first;
305 unsigned int currentRun = 0;
307 unsigned int lumiSize = 0;
308 unsigned int rind = 0;
311 for(
auto iov : iovs ) {
312 unsigned long long since = std::get<0>(iov);
315 unsigned int run = since >> 32;
316 unsigned int lumi = since & 0xFFFFFFFF;
317 if( run != currentRun ) {
320 auto it = runs.find( run );
321 if( it == runs.end() ) {
325 lumiSize = it->second;
329 ind = rind + (lumiIndex/lumiSize);
330 label = std::to_string(run )+
" : "+std::to_string(lumi );
337 label = boost::posix_time::to_simple_string( t );
339 label = std::to_string(since );
cond::Tag_t getTagInfo(const std::string &tag)
std::vector< std::tuple< std::tuple< float, std::string >, Y > > m_plotData
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
virtual Y getFromPayload(PayloadType &payload)=0
boost::posix_time::ptime to_boost(Time_t iValue)