CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripLorentzAngleReader Class Reference

#include <SiStripLorentzAngleReader.h>

Inheritance diagram for SiStripLorentzAngleReader:
edm::EDAnalyzer

List of all members.

Public Member Functions

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

Private Attributes

std::string label_
uint32_t printdebug_

Detailed Description

Definition at line 22 of file SiStripLorentzAngleReader.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file SiStripLorentzAngleReader.cc.

                                                                                    :
  printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug",5)),
  label_(iConfig.getUntrackedParameter<std::string>("label","")){}
SiStripLorentzAngleReader::~SiStripLorentzAngleReader ( )

Definition at line 16 of file SiStripLorentzAngleReader.cc.

{}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 18 of file SiStripLorentzAngleReader.cc.

References prof2calltree::count, edm::EventSetup::get(), label_, and printdebug_.

                                                                                      {
  
  edm::ESHandle<SiStripLorentzAngle> SiStripLorentzAngle_;
  iSetup.get<SiStripLorentzAngleRcd>().get(label_,SiStripLorentzAngle_);
  edm::LogInfo("SiStripLorentzAngleReader") << "[SiStripLorentzAngleReader::analyze] End Reading SiStripLorentzAngle with label " << label_<< std::endl;
  
  std::map<unsigned int,float> detid_la= SiStripLorentzAngle_->getLorentzAngles();
  std::map<unsigned int,float>::const_iterator it;
  size_t count=0;
  for (it=detid_la.begin();it!=detid_la.end() && count<printdebug_;it++)
      {
        edm::LogInfo("SiStripLorentzAngleReader")  << "detid " << it->first << " \t"
                                                   << " Lorentz angle  " << it->second;
        count++;
      } 
}

Member Data Documentation

std::string SiStripLorentzAngleReader::label_ [private]

Definition at line 32 of file SiStripLorentzAngleReader.h.

Referenced by analyze().

Definition at line 31 of file SiStripLorentzAngleReader.h.

Referenced by analyze().