13 BasicPayload_data0() :
cond::payloadInspector::HistoryPlot<
cond::BasicPayload,
float>(
"Example Trend",
"data0"){
15 virtual ~BasicPayload_data0() =
default;
23 BasicPayload_data1() :
cond::payloadInspector::RunHistoryPlot<
cond::BasicPayload,
float>(
"Example Run-based Trend",
"data0"){
25 virtual ~BasicPayload_data1() =
default;
33 BasicPayload_data2() :
cond::payloadInspector::TimeHistoryPlot<
cond::BasicPayload,
float>(
"Example Time-based Trend",
"data0"){
35 virtual ~BasicPayload_data2() =
default;
46 virtual ~BasicPayload_data3() =
default;
55 BasicPayload_data4() :
cond::payloadInspector::Histogram1D<
cond::BasicPayload>(
"Example Histo1d",
"x",10,0,10){
56 Base::setSingleIov(
true );
58 virtual ~BasicPayload_data4() =
default;
60 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
61 for(
auto iov : iovs ) {
62 std::shared_ptr<cond::BasicPayload>
payload = Base::fetchPayload( std::get<1>(iov) );
64 for(
size_t j=0;j<100;j++ ) {
65 fillWithValue( j, payload->m_vec[j] );
75 BasicPayload_data5() :
cond::payloadInspector::Histogram2D<
cond::BasicPayload>(
"Example Histo2d",
"x",10,0,10,
"y",10,0,10){
76 Base::setSingleIov(
true );
78 virtual ~BasicPayload_data5() =
default;
80 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
81 for(
auto iov : iovs ) {
82 std::shared_ptr<cond::BasicPayload> payload = Base::fetchPayload( std::get<1>(iov) );
84 for(
size_t i=0;
i<10;
i++ )
85 for(
size_t j=0;j<10;j++ ) {
86 fillWithValue( j,
i, payload->m_vec[
i*10+j] );
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
payload
payload postfix for testing
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
virtual Y getFromPayload(PayloadType &payload)=0