CMS 3D CMS Logo

SiStripApvGainReader Class Reference

#include <CondTools/SiStrip/plugins/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.

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

SiStripApvGainReader::~SiStripApvGainReader (  ) 

Definition at line 16 of file SiStripApvGainReader.cc.

00016 {}


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 lat::endl(), edm::EventSetup::get(), it, printdebug_, and range.

00018                                                                                  {
00019 
00020   edm::ESHandle<SiStripApvGain> SiStripApvGain_;
00021   iSetup.get<SiStripApvGainRcd>().get(SiStripApvGain_);
00022   edm::LogInfo("SiStripApvGainReader") << "[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl;
00023   
00024   std::vector<uint32_t> detid;
00025   SiStripApvGain_->getDetIds(detid);
00026   edm::LogInfo("Number of detids ")  << detid.size() << std::endl;
00027 
00028   if (printdebug_)
00029     for (size_t id=0;id<detid.size() && id<printdebug_;id++)
00030       {
00031         SiStripApvGain::Range range=SiStripApvGain_->getRange(detid[id]);
00032         
00033         int apv=0;
00034         for(int it=0;it<range.second-range.first;it++){
00035           edm::LogInfo("SiStripApvGainReader")  << "detid " << detid[id] << " \t"
00036                                              << " apv " << apv++ << " \t"
00037                                              << SiStripApvGain_->getApvGain(it,range)     << " \t" 
00038                                              << std::endl;          
00039         } 
00040       }
00041 }


Member Data Documentation

uint32_t SiStripApvGainReader::printdebug_ [private]

Definition at line 28 of file SiStripApvGainReader.h.

Referenced by analyze().


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