32 : printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 5)),
33 label_(iConfig.getUntrackedParameter<
std::
string>(
"label",
"")),
41 <<
"[SiPhase2OuterTrackerLorentzAngleReader::analyze] End Reading SiPhase2OuterTrackerLorentzAngle with label " 44 const auto& detid_la = lorentzAngles.getLorentzAngles();
45 std::unordered_map<unsigned int, float>::const_iterator it;
47 for (it = detid_la.begin(); it != detid_la.end() &&
count <
printdebug_; it++) {
48 edm::LogInfo(
"SiPhase2OuterTrackerLorentzAngleReader") <<
"detid " << it->first <<
" \t" 49 <<
" Lorentz angle " << it->second;
57 desc.setComment(
"Module to read SiPhase2OuterTrackerLorentzAngle Payloads");
58 desc.addUntracked<uint32_t>(
"printDebug", 5)->setComment(
"maximum amount of print-outs");
59 desc.addUntracked<
std::string>(
"label",
"")->setComment(
"label from which to read the payload");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
SiPhase2OuterTrackerLorentzAngleReader(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
const edm::ESGetToken< SiPhase2OuterTrackerLorentzAngle, SiPhase2OuterTrackerLorentzAngleRcd > laToken_
const uint32_t printdebug_
#define DEFINE_FWK_MODULE(type)
Log< level::Info, false > LogInfo
~SiPhase2OuterTrackerLorentzAngleReader() override=default