CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripSummaryReader Class Reference

#include <SiStripSummaryReader.h>

Inheritance diagram for SiStripSummaryReader:
edm::EDAnalyzer

List of all members.

Public Member Functions

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

Private Attributes

uint32_t printdebug_

Detailed Description

Definition at line 18 of file SiStripSummaryReader.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file SiStripSummaryReader.cc.

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

Definition at line 15 of file SiStripSummaryReader.cc.

{}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 17 of file SiStripSummaryReader.cc.

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

                                                                                 {
  
  edm::ESHandle<SiStripSummary> SiStripSummary_;
  iSetup.get<SiStripSummaryRcd>().get(SiStripSummary_);
  edm::LogInfo("SiStripSummaryReader") << "[SiStripSummaryReader::analyze] End Reading SiStripSummary" << std::endl;
  
  std::vector<uint32_t> detid=SiStripSummary_->getDetIds();
  
  
  std::vector<std::string> userDB=SiStripSummary_->getUserDBContent();
  std::stringstream ss;
  for(size_t i=0;i<userDB.size();++i)
    ss<< userDB[i] << " \n";   

 
  if (printdebug_)
    for (size_t id=0;id<detid.size();id++)
      {
        ss<< "\n\tdetid " << detid[id];
        SiStripSummary::Range range=SiStripSummary_->getRange(detid[id]);
        
        size_t c=0;
        for(SiStripSummary::ContainerIterator it =range.first;it!=range.second;++it){
          ss << "\n\t\t " << userDB[c++] << " "  << *it;
        } 
      }
  edm::LogInfo("SiStripSummaryReader") << ss.str();
}

Member Data Documentation

Definition at line 27 of file SiStripSummaryReader.h.

Referenced by analyze().