#include <CondTools/SiStrip/plugins/SiStripApvGainReader.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
SiStripApvGainReader (const edm::ParameterSet &) | |
~SiStripApvGainReader () | |
Private Attributes | |
uint32_t | printdebug_ |
Definition at line 19 of file SiStripApvGainReader.h.
SiStripApvGainReader::SiStripApvGainReader | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 13 of file SiStripApvGainReader.cc.
00013 : 00014 printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",1)){}
SiStripApvGainReader::~SiStripApvGainReader | ( | ) |
void SiStripApvGainReader::analyze | ( | const edm::Event & | e, | |
const edm::EventSetup & | iSetup | |||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 18 of file SiStripApvGainReader.cc.
References lat::endl(), edm::EventSetup::get(), it, printdebug_, and range.
00018 { 00019 00020 edm::ESHandle<SiStripApvGain> SiStripApvGain_; 00021 iSetup.get<SiStripApvGainRcd>().get(SiStripApvGain_); 00022 edm::LogInfo("SiStripApvGainReader") << "[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl; 00023 00024 std::vector<uint32_t> detid; 00025 SiStripApvGain_->getDetIds(detid); 00026 edm::LogInfo("Number of detids ") << detid.size() << std::endl; 00027 00028 if (printdebug_) 00029 for (size_t id=0;id<detid.size() && id<printdebug_;id++) 00030 { 00031 SiStripApvGain::Range range=SiStripApvGain_->getRange(detid[id]); 00032 00033 int apv=0; 00034 for(int it=0;it<range.second-range.first;it++){ 00035 edm::LogInfo("SiStripApvGainReader") << "detid " << detid[id] << " \t" 00036 << " apv " << apv++ << " \t" 00037 << SiStripApvGain_->getApvGain(it,range) << " \t" 00038 << std::endl; 00039 } 00040 } 00041 }
uint32_t SiStripApvGainReader::printdebug_ [private] |