20 #include "TPaveStats.h" 39 HcalChannelQualityPlot() :
cond::payloadInspector::PlotImage<
HcalChannelQuality>(
"HCAL ChannelStatus Ratios - map ") {
43 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
46 auto iov = iovs.front();
47 std::shared_ptr<HcalChannelQuality>
payload = fetchPayload( std::get<1>(iov) );
49 HcalChannelStatusContainer* objContainer =
new HcalChannelStatusContainer(payload, std::get<0>(iov));
51 objContainer->getCanvasAll()->SaveAs(ImageName.c_str());
52 return true;}
else return false;
58 HcalChannelQualityChange() :
cond::payloadInspector::PlotImage<
HcalChannelQuality>(
"HCAL ChannelStatus Ratios - map ") {
59 setSingleIov(
false );
62 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
65 auto iov1 = iovs.front();
66 auto iov2 = iovs.back();
67 std::shared_ptr<HcalChannelQuality> payload1 = fetchPayload( std::get<1>(iov1) );
68 std::shared_ptr<HcalChannelQuality> payload2 = fetchPayload( std::get<1>(iov2) );
69 if(payload1.get() && payload2.get()) {
70 HcalChannelStatusContainer* objContainer1 =
new HcalChannelStatusContainer(payload1, std::get<0>(iov1));
71 HcalChannelStatusContainer* objContainer2 =
new HcalChannelStatusContainer(payload2, std::get<0>(iov2));
73 objContainer2->Subtract(objContainer1);
82 objContainer2->getCanvasAll()->SaveAs(ImageName.c_str());
83 return true;}
else return false;
virtual float getValue(Item *item)
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
uint32_t getValue() const