CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripApvGainReader Class Reference

#include <SiStripApvGainReader.h>

Inheritance diagram for SiStripApvGainReader:
edm::EDAnalyzer

List of all members.

Public Member Functions

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

Private Attributes

uint32_t printdebug_

Detailed Description

Definition at line 19 of file SiStripApvGainReader.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file SiStripApvGainReader.cc.

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

Definition at line 16 of file SiStripApvGainReader.cc.

{}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 18 of file SiStripApvGainReader.cc.

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

                                                                                 {

  edm::ESHandle<SiStripApvGain> SiStripApvGain_;
  iSetup.get<SiStripApvGainRcd>().get(SiStripApvGain_);
  edm::LogInfo("SiStripApvGainReader") << "[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl;
  
  std::vector<uint32_t> detid;
  SiStripApvGain_->getDetIds(detid);
  edm::LogInfo("Number of detids ")  << detid.size() << std::endl;

  if (printdebug_)
    for (size_t id=0;id<detid.size() && id<printdebug_;id++)
      {
        SiStripApvGain::Range range=SiStripApvGain_->getRange(detid[id]);
        
        int apv=0;
        for(int it=0;it<range.second-range.first;it++){
          edm::LogInfo("SiStripApvGainReader")  << "detid " << detid[id] << " \t"
                                             << " apv " << apv++ << " \t"
                                             << SiStripApvGain_->getApvGain(it,range)     << " \t" 
                                             << std::endl;          
        } 
      }
}

Member Data Documentation

Definition at line 28 of file SiStripApvGainReader.h.

Referenced by analyze().