CMS 3D CMS Logo

SiStripLorentzAngleReader.cc
Go to the documentation of this file.
2 
4 
5 #include <iostream>
6 #include <cstdio>
7 #include <sys/time.h>
8 
9 using namespace cms;
10 
12  : printdebug_(iConfig.getUntrackedParameter<uint32_t>("printDebug", 5)),
13  label_(iConfig.getUntrackedParameter<std::string>("label", "")),
14  laToken_(esConsumes(edm::ESInputTag{"", label_})) {}
16 
18  const auto& lorentzAngles = iSetup.getData(laToken_);
19  edm::LogInfo("SiStripLorentzAngleReader")
20  << "[SiStripLorentzAngleReader::analyze] End Reading SiStripLorentzAngle with label " << label_ << std::endl;
21 
22  std::map<unsigned int, float> detid_la = lorentzAngles.getLorentzAngles();
23  std::map<unsigned int, float>::const_iterator it;
24  size_t count = 0;
25  for (it = detid_la.begin(); it != detid_la.end() && count < printdebug_; it++) {
26  edm::LogInfo("SiStripLorentzAngleReader") << "detid " << it->first << " \t"
27  << " Lorentz angle " << it->second;
28  count++;
29  }
30 }
ESInputTag
edm
HLT enums.
Definition: AlignableModifier.h:19
SiStripLorentzAngleReader.h
SiStripLorentzAngleReader::SiStripLorentzAngleReader
SiStripLorentzAngleReader(const edm::ParameterSet &)
Definition: SiStripLorentzAngleReader.cc:11
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
SiStripLorentzAngleReader::laToken_
edm::ESGetToken< SiStripLorentzAngle, SiStripLorentzAngleRcd > laToken_
Definition: SiStripLorentzAngleReader.h:34
submitPVResolutionJobs.count
count
Definition: submitPVResolutionJobs.py:352
SiStripLorentzAngleReader::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiStripLorentzAngleReader.cc:17
SiStripLorentzAngleReader::printdebug_
uint32_t printdebug_
Definition: SiStripLorentzAngleReader.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripLorentzAngleReader::~SiStripLorentzAngleReader
~SiStripLorentzAngleReader() override
Definition: SiStripLorentzAngleReader.cc:15
edm::EventSetup
Definition: EventSetup.h:58
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
std
Definition: JetResolutionObject.h:76
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
SiStripLorentzAngleReader::label_
std::string label_
Definition: SiStripLorentzAngleReader.h:33
SiStripLorentzAngle.h
edm::Event
Definition: Event.h:73
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37