#include <SiStripPedestalsReader.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
SiStripPedestalsReader (const edm::ParameterSet &) | |
~SiStripPedestalsReader () | |
Private Attributes | |
uint32_t | printdebug_ |
Definition at line 25 of file SiStripPedestalsReader.h.
SiStripPedestalsReader::SiStripPedestalsReader | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 6 of file SiStripPedestalsReader.cc.
: printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",1)){}
SiStripPedestalsReader::~SiStripPedestalsReader | ( | ) |
Definition at line 9 of file SiStripPedestalsReader.cc.
{}
void SiStripPedestalsReader::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 11 of file SiStripPedestalsReader.cc.
References cond::rpcobgas::detid, edm::EventSetup::get(), errorMatrix2Lands_multiChannel::id, printdebug_, and strip().
{ edm::ESHandle<SiStripPedestals> SiStripPedestals_; iSetup.get<SiStripPedestalsRcd>().get(SiStripPedestals_); edm::LogInfo("SiStripPedestalsReader") << "[SiStripPedestalsReader::analyze] End Reading SiStripPedestals" << std::endl; std::vector<uint32_t> detid; SiStripPedestals_->getDetIds(detid); edm::LogInfo("Number of detids ") << detid.size() << std::endl; if (printdebug_) for (size_t id=0;id<detid.size() && id<printdebug_;id++) { SiStripPedestals::Range range=SiStripPedestals_->getRange(detid[id]); int strip=0; for(int it=0;it<(range.second-range.first)*8/10;it++){ edm::LogInfo("SiStripPedestalsReader") << "detid " << detid[id] << " \t" << " strip " << strip++ << " \t" << SiStripPedestals_->getPed (it,range) << " \t" << std::endl; } } }
uint32_t SiStripPedestalsReader::printdebug_ [private] |
Definition at line 34 of file SiStripPedestalsReader.h.
Referenced by analyze().