#include <SiStripSummaryReader.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
SiStripSummaryReader (const edm::ParameterSet &) | |
~SiStripSummaryReader () | |
Private Attributes | |
uint32_t | printdebug_ |
Definition at line 18 of file SiStripSummaryReader.h.
SiStripSummaryReader::SiStripSummaryReader | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 12 of file SiStripSummaryReader.cc.
: printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",1)){}
SiStripSummaryReader::~SiStripSummaryReader | ( | ) |
Definition at line 15 of file SiStripSummaryReader.cc.
{}
void SiStripSummaryReader::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 17 of file SiStripSummaryReader.cc.
References trackerHits::c, cond::rpcobgas::detid, edm::EventSetup::get(), i, and printdebug_.
{ edm::ESHandle<SiStripSummary> SiStripSummary_; iSetup.get<SiStripSummaryRcd>().get(SiStripSummary_); edm::LogInfo("SiStripSummaryReader") << "[SiStripSummaryReader::analyze] End Reading SiStripSummary" << std::endl; std::vector<uint32_t> detid=SiStripSummary_->getDetIds(); std::vector<std::string> userDB=SiStripSummary_->getUserDBContent(); std::stringstream ss; for(size_t i=0;i<userDB.size();++i) ss<< userDB[i] << " \n"; if (printdebug_) for (size_t id=0;id<detid.size();id++) { ss<< "\n\tdetid " << detid[id]; SiStripSummary::Range range=SiStripSummary_->getRange(detid[id]); size_t c=0; for(SiStripSummary::ContainerIterator it =range.first;it!=range.second;++it){ ss << "\n\t\t " << userDB[c++] << " " << *it; } } edm::LogInfo("SiStripSummaryReader") << ss.str(); }
uint32_t SiStripSummaryReader::printdebug_ [private] |
Definition at line 27 of file SiStripSummaryReader.h.
Referenced by analyze().