#include <SiStripLorentzAngleReader.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
SiStripLorentzAngleReader (const edm::ParameterSet &) | |
~SiStripLorentzAngleReader () | |
Private Attributes | |
std::string | label_ |
uint32_t | printdebug_ |
Definition at line 22 of file SiStripLorentzAngleReader.h.
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.
{}
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++; } }
std::string SiStripLorentzAngleReader::label_ [private] |
Definition at line 32 of file SiStripLorentzAngleReader.h.
Referenced by analyze().
uint32_t SiStripLorentzAngleReader::printdebug_ [private] |
Definition at line 31 of file SiStripLorentzAngleReader.h.
Referenced by analyze().