CMS 3D CMS Logo

SiStripDetVOff_PayloadInspector.cc
Go to the documentation of this file.
4 
6 
7 #include <memory>
8 #include <sstream>
9 
10 namespace {
11 
12  class SiStripDetVOff_LV : public cond::payloadInspector::TimeHistoryPlot<SiStripDetVOff,int>{
13  public:
14  SiStripDetVOff_LV(): cond::payloadInspector::TimeHistoryPlot<SiStripDetVOff,int >( "Nr of mod with LV OFF vs time", "nLVOff"){
15  }
16 
18  return payload.getLVoffCounts();
19  }
20 
21  };
22 
23  class SiStripDetVOff_HV : public cond::payloadInspector::TimeHistoryPlot<SiStripDetVOff,int> {
24  public:
25  SiStripDetVOff_HV() : cond::payloadInspector::TimeHistoryPlot<SiStripDetVOff,int >( "Nr of mod with HV OFF vs time","nHVOff"){
26  }
27 
28  int getFromPayload( SiStripDetVOff& payload ){
29  return payload.getHVoffCounts();
30  }
31 
32  };
33 
34 }
35 
37  PAYLOAD_INSPECTOR_CLASS( SiStripDetVOff_LV );
38  PAYLOAD_INSPECTOR_CLASS( SiStripDetVOff_HV );
39 }
int getLVoffCounts() const
Returns the total number of modules with LV off.
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
payload
payload postfix for testing
virtual Y getFromPayload(PayloadType &payload)=0
int getHVoffCounts() const
Returns the total number of modules with HV off.
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
Definition: plugin.cc:24