CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripBadStripReader Class Reference

#include <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.

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

Definition at line 13 of file SiStripBadStripReader.cc.

{}

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 cond::rpcobgas::detid, edm::EventSetup::get(), errorMatrix2Lands_multiChannel::id, printdebug_, and relativeConstraints::value.

                                                                                  {
  
  edm::ESHandle<SiStripBadStrip> SiStripBadStrip_;
  iSetup.get<SiStripBadStripRcd>().get(SiStripBadStrip_);
  edm::LogInfo("SiStripBadStripReader") << "[SiStripBadStripReader::analyze] End Reading SiStripBadStrip" << std::endl;
  
  std::vector<uint32_t> detid;
  SiStripBadStrip_->getDetIds(detid);
  
  if (printdebug_)
    for (size_t id=0;id<detid.size();id++)
      {
        SiStripBadStrip::Range range=SiStripBadStrip_->getRange(detid[id]);
        
        for(int it=0;it<range.second-range.first;it++){
          unsigned int value=(*(range.first+it));
          edm::LogInfo("SiStripBadStripReader")  << "detid " << detid[id] << " \t"
                                                 << " firstBadStrip " <<  SiStripBadStrip_->decode(value).firstStrip << "\t "
                                                 << " NconsecutiveBadStrips " << SiStripBadStrip_->decode(value).range << "\t "
                                                 << " flag " << SiStripBadStrip_->decode(value).flag << "\t "
                                                 << " packed integer " <<  std::hex << value << std::dec << "\t "
            //<< SiStripBadStrip_->getBadStrips(range)     << " \t"
                                                 << std::endl;
        } 
      }
}

Member Data Documentation

Definition at line 27 of file SiStripBadStripReader.h.

Referenced by analyze().