CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripNoisesReader Class Reference

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

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

Definition at line 9 of file SiStripNoisesReader.cc.

{}

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

                                                                                {

  edm::ESHandle<SiStripNoises> SiStripNoises_;
  iSetup.get<SiStripNoisesRcd>().get(SiStripNoises_);
  edm::LogInfo("SiStripNoisesReader") << "[SiStripNoisesReader::analyze] End Reading SiStripNoises" << std::endl;
  
  std::vector<uint32_t> detid;
  SiStripNoises_->getDetIds(detid);
  edm::LogInfo("Number of detids ")  << detid.size() << std::endl;

  if (printdebug_)
    for (size_t id=0;id<detid.size()  && id<printdebug_;id++)
      {
        SiStripNoises::Range range=SiStripNoises_->getRange(detid[id]);
        
        int strip=0;
        for(int it=0;it<(range.second-range.first)*8/9;it++){
          edm::LogInfo("SiStripNoisesReader")  << "detid " << detid[id] << " \t"
                                               << " strip " << strip++ << " \t"
                                               << SiStripNoises_->getNoise(it,range)     << " \t" 
            //<< SiStripNoises_->getDisable(it,range)   << " \t" 
                                               << std::endl;        
        } 
      }
}

Member Data Documentation

Definition at line 34 of file SiStripNoisesReader.h.

Referenced by analyze().