#include <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.
: printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",1)){}
SiStripApvGainReader::~SiStripApvGainReader | ( | ) |
Definition at line 16 of file SiStripApvGainReader.cc.
{}
void SiStripApvGainReader::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 18 of file SiStripApvGainReader.cc.
References cond::rpcobgas::detid, edm::EventSetup::get(), ExpressReco_HICollisions_FallBack::id, and printdebug_.
{ edm::ESHandle<SiStripApvGain> SiStripApvGain_; iSetup.get<SiStripApvGainRcd>().get(SiStripApvGain_); edm::LogInfo("SiStripApvGainReader") << "[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl; std::vector<uint32_t> detid; SiStripApvGain_->getDetIds(detid); edm::LogInfo("Number of detids ") << detid.size() << std::endl; if (printdebug_) for (size_t id=0;id<detid.size() && id<printdebug_;id++) { SiStripApvGain::Range range=SiStripApvGain_->getRange(detid[id]); int apv=0; for(int it=0;it<range.second-range.first;it++){ edm::LogInfo("SiStripApvGainReader") << "detid " << detid[id] << " \t" << " apv " << apv++ << " \t" << SiStripApvGain_->getApvGain(it,range) << " \t" << std::endl; } } }
uint32_t SiStripApvGainReader::printdebug_ [private] |
Definition at line 28 of file SiStripApvGainReader.h.
Referenced by analyze().