#include <SiStripThresholdReader.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
SiStripThresholdReader (const edm::ParameterSet &) | |
~SiStripThresholdReader () | |
Private Attributes | |
uint32_t | printdebug_ |
Definition at line 25 of file SiStripThresholdReader.h.
SiStripThresholdReader::SiStripThresholdReader | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 7 of file SiStripThresholdReader.cc.
: printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",3)){}
SiStripThresholdReader::~SiStripThresholdReader | ( | ) |
Definition at line 10 of file SiStripThresholdReader.cc.
{}
void SiStripThresholdReader::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 12 of file SiStripThresholdReader.cc.
References runTheMatrix::data, cond::rpcobgas::detid, SiStripThreshold::Data::FirstStrip_and_Hth, edm::EventSetup::get(), SiStripThreshold::Data::getClusth(), SiStripThreshold::Data::getFirstStrip(), SiStripThreshold::Data::getHth(), SiStripThreshold::Data::getLth(), SiStripThreshold::Data::print(), and printdebug_.
{ edm::ESHandle<SiStripThreshold> SiStripThreshold_; iSetup.get<SiStripThresholdRcd>().get(SiStripThreshold_); edm::LogInfo("SiStripThresholdReader") << "[SiStripThresholdReader::analyze] End Reading SiStripThreshold" << std::endl; std::vector<uint32_t> detid; SiStripThreshold_->getDetIds(detid); edm::LogInfo("Number of detids ") << detid.size() << std::endl; if (printdebug_) for (size_t id=0;id<detid.size() && id<printdebug_;id++) { SiStripThreshold::Range range=SiStripThreshold_->getRange(detid[id]); //int strip=0; float old_clusTh=-1,old_lowTh=-1, old_highTh=-1, old_FirstStrip=-1; for(int it=0;it<768;it++){ SiStripThreshold::Data data=SiStripThreshold_->getData(it,range); std::stringstream ss; data.print(ss); if (old_clusTh!=data.getClusth() || old_lowTh!=data.getLth() || old_highTh!=data.getHth() || old_FirstStrip!=data.getFirstStrip()){ edm::LogInfo("SiStripThresholdReader") << "detid: " << detid[id] << " \t" << "strip: " << it << " \t" << ss.str() << "FirstStrip_and_Hth: " << data.FirstStrip_and_Hth << " \n" << std::endl; old_lowTh=data.getLth(); old_highTh=data.getHth(); old_clusTh=data.getClusth(); old_FirstStrip=data.getFirstStrip(); } } } }
uint32_t SiStripThresholdReader::printdebug_ [private] |
Definition at line 34 of file SiStripThresholdReader.h.
Referenced by analyze().