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)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
MonitorElement * meHitOccupancy_
#define DEFINE_FWK_MODULE(type)
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getEntries() const
get # of entries
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
virtual double getBinContent(int binx) const
get content of bin (1-D)
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)
static constexpr int kCrystalsPerRODBarPhiFlat
BtlSimHitsHarvester(const edm::ParameterSet &iConfig)
MonitorElement * get(std::string const &path)
virtual TH1 * getTH1() const