59 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 10)),
60 useSimRcd_(iConfig.getParameter<bool>(
"useSimRcd")) {
75 <<
"[SiPixelLorentzAngleReader::analyze] End Reading SiPixelLorentzAngle" << std::endl;
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");
105 desc.
add<
bool>(
"useSimRcd",
false);
static const std::string kSharedResource
const std::map< unsigned int, float > & getLorentzAngles() const
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
~SiPixelLorentzAngleReader() override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
#define DEFINE_FWK_MODULE(type)
T * make(const Args &...args) const
make new ROOT object
const uint32_t printdebug_
SiPixelLorentzAngleReader(const edm::ParameterSet &)
bool getData(T &iHolder) const
void setComment(std::string const &value)
const edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleSimRcd > siPixelSimLAToken_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Log< level::Warning, true > LogPrint
const std::string siPixelLALabel_
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_