CMS 3D CMS Logo

SiStripBadStripReader Class Reference

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

Inheritance diagram for SiStripBadStripReader:

edm::EDAnalyzer

List of all members.

Public Member Functions

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

Private Attributes

uint32_t printdebug_


Detailed Description

Definition at line 18 of file SiStripBadStripReader.h.


Constructor & Destructor Documentation

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

Definition at line 10 of file SiStripBadStripReader.cc.

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

SiStripBadStripReader::~SiStripBadStripReader (  ) 

Definition at line 13 of file SiStripBadStripReader.cc.

00013 {}


Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 15 of file SiStripBadStripReader.cc.

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

00015                                                                                   {
00016   
00017   edm::ESHandle<SiStripBadStrip> SiStripBadStrip_;
00018   iSetup.get<SiStripBadStripRcd>().get(SiStripBadStrip_);
00019   edm::LogInfo("SiStripBadStripReader") << "[SiStripBadStripReader::analyze] End Reading SiStripBadStrip" << std::endl;
00020   
00021   std::vector<uint32_t> detid;
00022   SiStripBadStrip_->getDetIds(detid);
00023   
00024   if (printdebug_)
00025     for (size_t id=0;id<detid.size();id++)
00026       {
00027         SiStripBadStrip::Range range=SiStripBadStrip_->getRange(detid[id]);
00028         
00029         for(int it=0;it<range.second-range.first;it++){
00030           unsigned int value=(*(range.first+it));
00031           edm::LogInfo("SiStripBadStripReader")  << "detid " << detid[id] << " \t"
00032                                                  << " firstBadStrip " <<  SiStripBadStrip_->decode(value).firstStrip << "\t "
00033                                                  << " NconsecutiveBadStrips " << SiStripBadStrip_->decode(value).range << "\t "
00034                                                  << " flag " << SiStripBadStrip_->decode(value).flag << "\t "
00035                                                  << " packed integer " <<  std::hex << value << std::dec << "\t "
00036             //<< SiStripBadStrip_->getBadStrips(range)     << " \t"
00037                                                  << std::endl;
00038         } 
00039       }
00040 }


Member Data Documentation

uint32_t SiStripBadStripReader::printdebug_ [private]

Definition at line 27 of file SiStripBadStripReader.h.

Referenced by analyze().


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