18 BasicPayload_data0() :
cond::payloadInspector::HistoryPlot<
cond::BasicPayload,
float>(
"Example Trend",
"data0"){
20 virtual ~BasicPayload_data0() =
default;
28 BasicPayload_data1() :
cond::payloadInspector::RunHistoryPlot<
cond::BasicPayload,
float>(
"Example Run-based Trend",
"data0"){
30 virtual ~BasicPayload_data1() =
default;
38 BasicPayload_data2() :
cond::payloadInspector::TimeHistoryPlot<
cond::BasicPayload,
float>(
"Example Time-based Trend",
"data0"){
40 virtual ~BasicPayload_data2() =
default;
51 virtual ~BasicPayload_data3() =
default;
60 BasicPayload_data4() :
cond::payloadInspector::Histogram1D<
cond::BasicPayload>(
"Example Histo1d",
"x",10,0,10){
61 Base::setSingleIov(
true );
63 virtual ~BasicPayload_data4() =
default;
65 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
66 for(
auto iov : iovs ) {
67 std::shared_ptr<cond::BasicPayload>
payload = Base::fetchPayload( std::get<1>(iov) );
69 for(
size_t j=0;j<100;j++ ) {
70 fillWithValue( j, payload->m_vec[j] );
80 BasicPayload_data5() :
cond::payloadInspector::Histogram2D<
cond::BasicPayload>(
"Example Histo2d",
"x",10,0,10,
"y",10,0,10){
81 Base::setSingleIov(
true );
83 virtual ~BasicPayload_data5() =
default;
85 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
86 for(
auto iov : iovs ) {
87 std::shared_ptr<cond::BasicPayload> payload = Base::fetchPayload( std::get<1>(iov) );
89 for(
size_t i=0;
i<10;
i++ )
90 for(
size_t j=0;j<10;j++ ) {
91 fillWithValue( j,
i, payload->m_vec[
i*10+j] );
101 BasicPayload_data6() :
cond::payloadInspector::PlotImage<
cond::BasicPayload>(
"Example delivery picture" ){
102 setSingleIov(
true );
105 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
106 auto iov = iovs.front();
107 std::shared_ptr<cond::BasicPayload> payload = fetchPayload( std::get<1>(iov) );
111 TH2D h2D(
"h2D",
"Example",100,0.,
xmax,100,0.,
ymax);
114 if(payload->m_vec.size()==10000){
115 for(
size_t i=0;
i<100;
i++ )
116 for(
size_t j=0;j<100;j++ ) {
117 h2D.Fill(
i,j,payload->m_vec[
i*100+j]);
123 TCanvas
c(
"c",
"",10,10,900,500);
126 h2D.SetNdivisions(18,
"X");
127 h2D.GetXaxis()->SetTickLength(0.00);
128 h2D.GetYaxis()->SetTickLength(0.00);
129 h2D.GetXaxis()->SetTitle(
"iphi");
130 h2D.GetYaxis()->SetTitle(
"ieta");
140 l.DrawLine(
m, 0.,
m, 100.);
151 Tl.SetTextSize(0.04);
153 Tll.SetTextAlign(23);
154 Tll.SetTextSize(0.04);
157 for(
int i = 1;
i <=10;
i++){
159 char const *pchar = s.c_str();
161 Tl.DrawLatex(j-5,
int(
ymax)/1.33,pchar);
165 for(
int g = -10;
g <0;
g++){
167 char const *pchar1 = ss.c_str();
169 Tll.DrawLatex(z-5,
int(
ymax)/4,pchar1);
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
payload
payload postfix for testing
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
virtual Y getFromPayload(PayloadType &payload)=0