CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
cond::payloadInspector::HistoryPlot< PayloadType, Y > Class Template Referenceabstract

#include <PayloadInspector.h>

Inheritance diagram for cond::payloadInspector::HistoryPlot< PayloadType, Y >:
cond::payloadInspector::Plot2D< PayloadType, unsigned long long, Y > cond::payloadInspector::PlotBase

Public Types

typedef Plot2D< PayloadType, unsigned long long, Y > Base
 

Public Member Functions

bool fill (const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs) override
 
virtual Y getFromPayload (PayloadType &payload)=0
 
 HistoryPlot (const std::string &title, const std::string &yLabel)
 
 ~HistoryPlot () override=default
 
- Public Member Functions inherited from cond::payloadInspector::Plot2D< PayloadType, unsigned long long, Y >
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
 
- Public Member Functions inherited from cond::payloadInspector::PlotBase
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
 

Additional Inherited Members

- Protected Attributes inherited from cond::payloadInspector::Plot2D< PayloadType, unsigned long long, Y >
std::vector< std::tuple< unsigned long long, Y > > m_plotData
 
- Protected Attributes inherited from cond::payloadInspector::PlotBase
PlotAnnotations m_plotAnnotations
 
std::string m_tag0 = ""
 
std::string m_tag1 = ""
 

Detailed Description

template<typename PayloadType, typename Y>
class cond::payloadInspector::HistoryPlot< PayloadType, Y >

Definition at line 261 of file PayloadInspector.h.

Member Typedef Documentation

template<typename PayloadType , typename Y >
typedef Plot2D<PayloadType,unsigned long long,Y > cond::payloadInspector::HistoryPlot< PayloadType, Y >::Base

Definition at line 263 of file PayloadInspector.h.

Constructor & Destructor Documentation

template<typename PayloadType , typename Y >
cond::payloadInspector::HistoryPlot< PayloadType, Y >::HistoryPlot ( const std::string &  title,
const std::string &  yLabel 
)
inline

Definition at line 265 of file PayloadInspector.h.

265  :
266  Base( "History", title, "iov_since" , yLabel ){
267  }
Plot2D< PayloadType, unsigned long long, Y > Base
template<typename PayloadType , typename Y >
cond::payloadInspector::HistoryPlot< PayloadType, Y >::~HistoryPlot ( )
overridedefault

Member Function Documentation

template<typename PayloadType , typename Y >
bool cond::payloadInspector::HistoryPlot< PayloadType, Y >::fill ( const std::vector< std::tuple< cond::Time_t, cond::Hash > > &  iovs)
inlineoverridevirtual

Implements cond::payloadInspector::Plot2D< PayloadType, unsigned long long, Y >.

Definition at line 269 of file PayloadInspector.h.

References jets_cff::payload, and DOFs::Y.

269  {
270  for( auto iov : iovs ) {
271  std::shared_ptr<PayloadType> payload = Base::fetchPayload( std::get<1>(iov) );
272  if( payload.get() ){
273  Y value = getFromPayload( *payload );
274  Base::m_plotData.push_back( std::make_tuple(std::get<0>(iov),value));
275  }
276  }
277  return true;
278  }
std::vector< std::tuple< unsigned long long, Y > > m_plotData
Definition: value.py:1
virtual Y getFromPayload(PayloadType &payload)=0
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
template<typename PayloadType , typename Y >
virtual Y cond::payloadInspector::HistoryPlot< PayloadType, Y >::getFromPayload ( PayloadType &  payload)
pure virtual