CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripPedestalsReader Class Reference

#include <SiStripPedestalsReader.h>

Inheritance diagram for SiStripPedestalsReader:
edm::EDAnalyzer

List of all members.

Public Member Functions

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

Private Attributes

uint32_t printdebug_

Detailed Description

Definition at line 25 of file SiStripPedestalsReader.h.


Constructor & Destructor Documentation

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

Definition at line 6 of file SiStripPedestalsReader.cc.

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

Definition at line 9 of file SiStripPedestalsReader.cc.

{}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 11 of file SiStripPedestalsReader.cc.

References cond::rpcobgas::detid, edm::EventSetup::get(), printdebug_, and strip().

                                                                                   {

  edm::ESHandle<SiStripPedestals> SiStripPedestals_;
  iSetup.get<SiStripPedestalsRcd>().get(SiStripPedestals_);
  edm::LogInfo("SiStripPedestalsReader") << "[SiStripPedestalsReader::analyze] End Reading SiStripPedestals" << std::endl;
  
  std::vector<uint32_t> detid;
  SiStripPedestals_->getDetIds(detid);
  edm::LogInfo("Number of detids ")  << detid.size() << std::endl;
  
  if (printdebug_)
    for (size_t id=0;id<detid.size() && id<printdebug_;id++)
      {
        SiStripPedestals::Range range=SiStripPedestals_->getRange(detid[id]);
        
        int strip=0;
        for(int it=0;it<(range.second-range.first)*8/10;it++){
          edm::LogInfo("SiStripPedestalsReader")  << "detid  " << detid[id] << " \t"
                                                  << " strip " << strip++   << " \t"
                                                  << SiStripPedestals_->getPed   (it,range)   << " \t" 
                                                  << std::endl;             
        } 
      }
}

Member Data Documentation

Definition at line 34 of file SiStripPedestalsReader.h.

Referenced by analyze().