39 #include "TPaveStats.h" 50 SiStripLatencyTest() :
cond::payloadInspector::Histogram1D<
SiStripLatency>(
"SiStripLatency values",
"SiStripLatency values", 5,0.0,5.0){
54 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
55 for (
auto const & iov: iovs) {
58 std::vector<SiStripLatency::Latency>
lat = payload->allLatencyAndModes();
72 SiStripLatencyMode():
cond::payloadInspector::Histogram1D<
SiStripLatency>(
"SiStripLatency mode",
"SiStripLatency mode", 70, -10, 60){
73 Base::setSingleIov(
true );
76 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs )
override{
77 for (
auto const & iov: iovs) {
78 std::shared_ptr<SiStripLatency> payload = Base::fetchPayload( std::get<1>(iov) );
81 std::vector<uint16_t> modes;
82 payload->allModes(modes);
84 for (
const auto &
mode : modes){
86 else fillWithValue(-1);
102 SiStripLatencyModeHistory():
cond::payloadInspector::HistoryPlot<
SiStripLatency,uint16_t>(
"Mode vs run number",
"Mode vs run number"){
119 SiStripLatencyNumbOfModeHistory():
cond::payloadInspector::HistoryPlot<
SiStripLatency,
int>(
"Number of modes vs run ",
"Number of modes vs run"){
124 std::vector<uint16_t> modes;
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
void fillWithValue(float value, float weight=1)
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
void allModes(std::vector< uint16_t > &allModesVector) const
Fills the passed vector with all the possible modes in the Tracker.
uint16_t singleMode() const
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
void setSingleIov(bool flag)
bool fill(const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs) override