CMS 3D CMS Logo

SiStripNoisesReader Class Reference

#include <CondTools/SiStrip/plugins/SiStripNoisesReader.h>

Inheritance diagram for SiStripNoisesReader:

edm::EDAnalyzer

List of all members.

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 SiStripNoisesReader (const edm::ParameterSet &)
 ~SiStripNoisesReader ()

Private Attributes

uint32_t printdebug_


Detailed Description

Definition at line 25 of file SiStripNoisesReader.h.


Constructor & Destructor Documentation

SiStripNoisesReader::SiStripNoisesReader ( const edm::ParameterSet iConfig  )  [explicit]

Definition at line 6 of file SiStripNoisesReader.cc.

00006                                                                         :
00007   printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",1)){}

SiStripNoisesReader::~SiStripNoisesReader (  ) 

Definition at line 9 of file SiStripNoisesReader.cc.

00009 {}


Member Function Documentation

void SiStripNoisesReader::analyze ( const edm::Event e,
const edm::EventSetup iSetup 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 11 of file SiStripNoisesReader.cc.

References lat::endl(), edm::EventSetup::get(), it, printdebug_, range, and strip().

00011                                                                                 {
00012 
00013   edm::ESHandle<SiStripNoises> SiStripNoises_;
00014   iSetup.get<SiStripNoisesRcd>().get(SiStripNoises_);
00015   edm::LogInfo("SiStripNoisesReader") << "[SiStripNoisesReader::analyze] End Reading SiStripNoises" << std::endl;
00016   
00017   std::vector<uint32_t> detid;
00018   SiStripNoises_->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         SiStripNoises::Range range=SiStripNoises_->getRange(detid[id]);
00025         
00026         int strip=0;
00027         for(int it=0;it<(range.second-range.first)*8/9;it++){
00028           edm::LogInfo("SiStripNoisesReader")  << "detid " << detid[id] << " \t"
00029                                                << " strip " << strip++ << " \t"
00030                                                << SiStripNoises_->getNoise(it,range)     << " \t" 
00031             //<< SiStripNoises_->getDisable(it,range)   << " \t" 
00032                                                << std::endl;        
00033         } 
00034       }
00035 }


Member Data Documentation

uint32_t SiStripNoisesReader::printdebug_ [private]

Definition at line 34 of file SiStripNoisesReader.h.

Referenced by analyze().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:27 2009 for CMSSW by  doxygen 1.5.4