52 moduleRawDigiToken_ = consumes<edm::DetSetVector<SiStripRawDigi> >(conf.
getParameter<
edm::InputTag>(
"srcProcessedRawDigi" ) );
67 h1NumbadAPVsRes_ = ibooker.
book1D(
"ResAPVs",
";#ResAPVs", 100, 1.0, 10001);
69 ibooker.
tag(h1NumbadAPVsRes_,1);
71 h1ADC_vs_strip_ = ibooker.
book2D(
"ADCvsAPVs",
";ADCvsAPVs", 768,-0.5,767.5, 1023, -0.5, 1022.5);
72 ibooker.
tag(h1ADC_vs_strip_,2);
86 e.
getByToken( moduleRawDigiToken_, moduleRawDigi );
90 for (; itRawDigis != moduleRawDigi->end(); ++itRawDigis) {
94 int strip =0, totADC=0;
96 for(;itRaw != itRawDigis->
end(); ++itRaw, ++strip){
98 float adc = itRaw->adc();
99 h1ADC_vs_strip_->Fill(strip,adc);
121 h1NumbadAPVsRes_->Fill(NumResAPVs);
133 if (!outputFile_.empty() && createOutputFile_) {
134 dbe->save(outputFile_);
int adc(sample_type sample)
get the ADC sample (12 bits)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
DEFINE_FWK_MODULE(HiMixingModule)
virtual void endJob()
analyzer loop
SiStripBaselineValidator(const edm::ParameterSet &)
MonitorElement * book1D(Args &&...args)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void tag(MonitorElement *, unsigned int)
iterator end()
Return the off-the-end iterator.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
virtual ~SiStripBaselineValidator()
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