59 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 10)),
60 useSimRcd_(iConfig.getParameter<
bool>(
"useSimRcd")) {
75 <<
"[SiPixelLorentzAngleReader::analyze] End Reading SiPixelLorentzAngle" << std::endl;
77 LorentzAngleBarrel_ =
fs->make<TH1F>(
"LorentzAngleBarrelPixel",
"LorentzAngleBarrelPixel", 150, 0, 0.15);
78 LorentzAngleForward_ =
fs->make<TH1F>(
"LorentzAngleForwardPixel",
"LorentzAngleForwardPixel", 150, 0, 0.15);
79 std::map<unsigned int, float> detid_la = SiPixelLorentzAngle_->
getLorentzAngles();
80 std::map<unsigned int, float>::const_iterator
it;
81 unsigned int count = 0;
82 for (
it = detid_la.begin();
it != detid_la.end();
it++) {
85 edm::LogPrint(
"SiPixelLorentzAngleReader") <<
"detid " <<
it->first <<
" \t" 86 <<
" Lorentz angle " <<
it->second << std::endl;
96 <<
"SiPixelLorentzAngleReader::" << __FUNCTION__ <<
"(...) :examined " <<
count <<
" DetIds" << std::endl;
101 desc.setComment(
"EDAnalyzer to read per-module SiPixelLorentzAngle payloads in the EventSetup");
102 desc.add<
std::string>(
"recoLabel",
"")->setComment(
"label for the reconstruction tags");
103 desc.add<
std::string>(
"simLabel",
"")->setComment(
"label for the simulation tags");
104 desc.addUntracked<
unsigned int>(
"printDebug", 10);
105 desc.add<
bool>(
"useSimRcd",
false);
static const std::string kSharedResource
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
~SiPixelLorentzAngleReader() override
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const std::map< unsigned int, float > & getLorentzAngles() const
const uint32_t printdebug_
SiPixelLorentzAngleReader(const edm::ParameterSet &)
const edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleSimRcd > siPixelSimLAToken_
#define DEFINE_FWK_MODULE(type)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Log< level::Warning, true > LogPrint
const std::string siPixelLALabel_
Namespace of DDCMS conversion namespace.
Log< level::Info, false > LogInfo
const std::string siPixelSimLALabel_
void analyze(const edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > siPixelLAToken_
TH1F * LorentzAngleBarrel_
TH1F * LorentzAngleForward_