#include <CondTools/SiStrip/plugins/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.
00006 : 00007 printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",1)){}
SiStripPedestalsReader::~SiStripPedestalsReader | ( | ) |
void SiStripPedestalsReader::analyze | ( | const edm::Event & | e, | |
const edm::EventSetup & | iSetup | |||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 11 of file SiStripPedestalsReader.cc.
References lat::endl(), edm::EventSetup::get(), it, printdebug_, range, and strip().
00011 { 00012 00013 edm::ESHandle<SiStripPedestals> SiStripPedestals_; 00014 iSetup.get<SiStripPedestalsRcd>().get(SiStripPedestals_); 00015 edm::LogInfo("SiStripPedestalsReader") << "[SiStripPedestalsReader::analyze] End Reading SiStripPedestals" << std::endl; 00016 00017 std::vector<uint32_t> detid; 00018 SiStripPedestals_->getDetIds(detid); 00019 edm::LogInfo("Number of detids ") << detid.size() << std::endl; 00020 00021 if (printdebug_) 00022 for (size_t id=0;id<detid.size() && id<printdebug_;id++) 00023 { 00024 SiStripPedestals::Range range=SiStripPedestals_->getRange(detid[id]); 00025 00026 int strip=0; 00027 for(int it=0;it<(range.second-range.first)*8/10;it++){ 00028 edm::LogInfo("SiStripPedestalsReader") << "detid " << detid[id] << " \t" 00029 << " strip " << strip++ << " \t" 00030 << SiStripPedestals_->getPed (it,range) << " \t" 00031 << std::endl; 00032 } 00033 } 00034 }
uint32_t SiStripPedestalsReader::printdebug_ [private] |