CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FedCablingSummaryFactory.cc
Go to the documentation of this file.
5 #include <iostream>
6 #include <sstream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  const sistrip::Presentation& pres,
14  const sistrip::View& view,
15  const std::string& level,
16  const sistrip::Granularity& gran,
17  const std::map<uint32_t, FedCablingAnalysis*>& data) {
18  // Some initialisation
19  SummaryPlotFactoryBase::init(mon, pres, view, level, gran);
20 
21  // Check if generator class exists
23  return 0;
24  }
25 
26  // Extract monitorable
27  std::map<uint32_t, FedCablingAnalysis*>::const_iterator iter = data.begin();
28  for (; iter != data.end(); iter++) {
29  float value = static_cast<float>(sistrip::invalid_);
31  value = iter->second->fedId();
33  value = iter->second->fedCh();
35  value = iter->second->adcLevel();
36  } else {
37  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
38  << " Unexpected monitorable: "
40  continue;
41  }
44  }
45 
47 }
48 
49 //------------------------------------------------------------------------------
50 //
52  // Histogram filling and formating
53  SummaryPlotFactoryBase::fill(summary_histo);
54 
56  return;
57  }
58 
59  // Histogram formatting
65  SummaryPlotFactoryBase::generator_->axisLabel("Signal level [ADC]");
66  } else {
67  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
68  << " Unexpected SummaryHisto value:"
70  }
71 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
void init(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &)
uint32_t init(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &, const std::map< uint32_t, T > &data)
uint32_t nBins() const
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
void fill(TH1 &summary_histo)
sistrip::Granularity gran_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
static const uint16_t invalid_
Definition: Constants.h:16
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
tuple level
Definition: testEve_cfg.py:47
Log< level::Warning, false > LogWarning
void axisLabel(const std::string &)
void fill(TH1 &summary_histo)