40 moduleRawDigiToken_ = consumes<edm::DetSetVector<SiStripDigi> >(conf.
getParameter<
edm::InputTag>(
"srcProcessedRawDigi" ) );
52 h1NumbadAPVsRes_ = ibooker.
book1D(
"ResAPVs",
";#ResAPVs", 100, 1.0, 10001);
53 ibooker.
tag(h1NumbadAPVsRes_,1);
55 h1ADC_vs_strip_ = ibooker.
book2D(
"ADCvsAPVs",
";ADCvsAPVs", 768,-0.5,767.5, 1023, -0.5, 1022.5);
56 ibooker.
tag(h1ADC_vs_strip_,2);
64 e.
getByToken( moduleRawDigiToken_, moduleRawDigi );
68 for (; itRawDigis != moduleRawDigi->end(); ++itRawDigis) {
72 int strip =0, totStripAPV=0, apv=0,prevapv=itRaw->strip()/128;
74 for(;itRaw != itRawDigis->
end(); ++itRaw){
78 float adc = itRaw->adc();
79 h1ADC_vs_strip_->Fill(strip,adc);
88 if(adc>0) ++totStripAPV;
100 h1NumbadAPVsRes_->Fill(NumResAPVs);
int adc(sample_type sample)
get the ADC sample (12 bits)
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~SiStripBaselineValidator() override
void setCurrentFolder(std::string const &fullpath)
SiStripBaselineValidator(const edm::ParameterSet &)
MonitorElement * book1D(Args &&...args)
void tag(MonitorElement *, unsigned int)
iterator end()
Return the off-the-end iterator.
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * book2D(Args &&...args)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator