47 h1NumbadAPVsRes_ = ibooker.
book1D(
"ResAPVs",
";#ResAPVs", 100, 1.0, 10001);
49 h1ADC_vs_strip_ = ibooker.
book2D(
"ADCvsAPVs",
";ADCvsAPVs", 768, -0.5, 767.5, 1023, -0.5, 1022.5);
56 e.
getByToken(moduleRawDigiToken_, moduleRawDigi);
60 for (; itRawDigis != moduleRawDigi->end(); ++itRawDigis) {
63 int strip = 0, totStripAPV = 0, apv = 0, prevapv = itRaw->strip() / 128;
65 for (; itRaw != itRawDigis->
end(); ++itRaw) {
67 strip = itRaw->strip();
69 float adc = itRaw->adc();
70 h1ADC_vs_strip_->Fill(strip, adc);
73 if (totStripAPV > 64) {
83 if (totStripAPV > 64) {
91 h1NumbadAPVsRes_->Fill(NumResAPVs);
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setCurrentFolder(std::string const &fullpath)
~SiStripBaselineValidator() override
#define DEFINE_FWK_MODULE(type)
SiStripBaselineValidator(const edm::ParameterSet &)
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
iterator end()
Return the off-the-end iterator.
void analyze(const edm::Event &, const edm::EventSetup &) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator