55 if (!meBtlHitLogEnergy || !meNevents) {
56 edm::LogError(
"BtlSimHitsHarvester") <<
"Monitoring histograms not found!" << std::endl;
63 const float scale = (Nevents > 0 ? 1. / (Nevents * NBtlCrystals) : 1.);
68 "BTL cell occupancy vs hit energy;log_{10}(E_{SIM} [MeV]); Occupancy per event",
70 meBtlHitLogEnergy->
getTH1()->GetXaxis()->GetXmin(),
71 meBtlHitLogEnergy->
getTH1()->GetXaxis()->GetXmax());
75 for (
int ibin = meBtlHitLogEnergy->
getNbinsX(); ibin >= 1; --ibin) {
87 descriptions.
add(
"btlSimHitsPostProcessor",
desc);
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
Log< level::Error, false > LogError
MonitorElement * meHitOccupancy_
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
virtual double getEntries() const
get # of entries
const std::string folder_
static constexpr int MAX_ROD
~BtlSimHitsHarvester() override
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual MonitorElement * get(std::string const &fullpath) const
virtual TH1 * getTH1() const
static constexpr int kCrystalsPerRODBarPhiFlat
virtual int getNbinsX() const
get # of bins in X-axis
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
BtlSimHitsHarvester(const edm::ParameterSet &iConfig)
virtual double getBinContent(int binx) const
get content of bin (1-D)