CMS 3D CMS Logo

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

#include <PayloadInspector.h>

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

Public Member Functions

std::shared_ptr< PayloadType > fetchPayload (const cond::Hash &payloadHash)
 
virtual bool fill (const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
 
 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
 

Protected Attributes

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::Plot2D< PayloadType, X, Y >

Definition at line 202 of file PayloadInspector.h.

Constructor & Destructor Documentation

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

Definition at line 204 of file PayloadInspector.h.

204  :
205  PlotBase(),m_plotData(){
210  m_plotAnnotations.m[PlotAnnotations::PAYLOAD_TYPE_K] = cond::demangledName( typeid(PayloadType) );
211  }
std::map< std::string, std::string > m
std::vector< std::tuple< X, Y > > m_plotData
static const char *const PAYLOAD_TYPE_K
template<typename PayloadType, typename X, typename Y>
cond::payloadInspector::Plot2D< PayloadType, X, Y >::~Plot2D ( )
overridedefault

Member Function Documentation

template<typename PayloadType, typename X, typename Y>
std::shared_ptr<PayloadType> cond::payloadInspector::Plot2D< PayloadType, X, Y >::fetchPayload ( const cond::Hash payloadHash)
inline

Definition at line 222 of file PayloadInspector.h.

222  {
223  return PlotBase::fetchPayload<PayloadType>( payloadHash );
224  }
template<typename PayloadType, typename X, typename Y>
virtual bool cond::payloadInspector::Plot2D< PayloadType, X, Y >::fill ( const std::vector< std::tuple< cond::Time_t, cond::Hash > > &  iovs)
pure virtual
template<typename PayloadType, typename X, typename Y>
std::string cond::payloadInspector::Plot2D< PayloadType, X, Y >::processData ( const std::vector< std::tuple< cond::Time_t, cond::Hash > > &  iovs)
inlineoverridevirtual

Reimplemented from cond::payloadInspector::PlotBase.

Definition at line 217 of file PayloadInspector.h.

217  {
218  fill( iovs );
219  return serializeData();
220  }
virtual bool fill(const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
template<typename PayloadType, typename X, typename Y>
std::string cond::payloadInspector::Plot2D< PayloadType, X, Y >::serializeData ( )
inline

Definition at line 213 of file PayloadInspector.h.

213  {
215  }
std::vector< std::tuple< X, Y > > m_plotData
std::string serialize(const PlotAnnotations &annotations, const std::vector< std::tuple< X, Y > > &data)

Member Data Documentation

template<typename PayloadType, typename X, typename Y>
std::vector<std::tuple<X,Y> > cond::payloadInspector::Plot2D< PayloadType, X, Y >::m_plotData
protected

Definition at line 228 of file PayloadInspector.h.