CMS 3D CMS Logo

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

#include <PayloadInspector.h>

Inheritance diagram for cond::payloadInspector::ScatterPlot< PayloadType, X, Y >:
cond::payloadInspector::Plot2D< PayloadType, X, Y > cond::payloadInspector::PlotBase

Public Types

typedef Plot2D< PayloadType, X, Y > Base
 

Public Member Functions

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

Definition at line 411 of file PayloadInspector.h.

Member Typedef Documentation

template<typename PayloadType , typename X , typename Y >
typedef Plot2D<PayloadType,X,Y > cond::payloadInspector::ScatterPlot< PayloadType, X, Y >::Base

Definition at line 413 of file PayloadInspector.h.

Constructor & Destructor Documentation

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

Definition at line 415 of file PayloadInspector.h.

415  :
416  Base( "Scatter", title, xLabel , yLabel ){
417  }
Plot2D< PayloadType, X, Y > Base
template<typename PayloadType , typename X , typename Y >
cond::payloadInspector::ScatterPlot< PayloadType, X, Y >::~ScatterPlot ( )
overridedefault

Member Function Documentation

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

Implements cond::payloadInspector::Plot2D< PayloadType, X, Y >.

Definition at line 419 of file PayloadInspector.h.

References jets_cff::payload.

419  {
420  for( auto iov : iovs ) {
421  std::shared_ptr<PayloadType> payload = Base::fetchPayload( std::get<1>(iov) );
422  if( payload.get() ){
423  std::tuple<X,Y> value = getFromPayload( *payload );
424  Base::m_plotData.push_back( value );
425  }
426  }
427  return true;
428  }
std::vector< std::tuple< X, Y > > m_plotData
virtual std::tuple< X, Y > getFromPayload(PayloadType &payload)=0
Definition: value.py:1
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
template<typename PayloadType , typename X , typename Y >
virtual std::tuple<X,Y> cond::payloadInspector::ScatterPlot< PayloadType, X, Y >::getFromPayload ( PayloadType &  payload)
pure virtual