8 using namespace dqm::impl;
11 : kLogCategory_(log_category) {
25 return num_layers * chamber_id + layer_id - num_layers;
31 Float_t degree = radian /
M_PI * 180;
44 const char* name_prefix,
45 const char* title_prefix) {
49 TString
name = TString::Format(
"%s_occ_zr%s", name_prefix, name_suffix.Data());
50 TString
title = TString::Format(
"%s ZR Occupancy :%s;|Z| [cm];R [cm]", title_prefix, title_suffix.Data());
59 std::vector<Double_t> xbins_vector;
60 for (Double_t
i = station0_xmin - 1;
i < station2_xmax + 1;
i += 0.25) {
61 if (
i > station0_xmax + 1 and
i < station1_xmin - 1)
63 if (
i > station1_xmax + 1 and
i < station2_xmin - 1)
65 xbins_vector.push_back(
i);
68 Int_t nbinsx = xbins_vector.size() - 1;
74 auto hist =
new TH2F(name, title, nbinsx, &xbins_vector[0], nbinsy, ylow, yup);
T getUntrackedParameter(std::string const &, T const &) const
TString getSuffixName(Int_t region_id)
Bool_t isMuonSimHit(const PSimHit &)
std::vector< Int_t > zr_occ_num_bins_
dqm::impl::MonitorElement * bookZROccupancy(DQMStore::IBooker &booker, Int_t region_id, const char *name_prfix, const char *title_prefix)
TString getSuffixTitle(Int_t region_id)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
~GEMBaseValidation() override=0
std::vector< Int_t > pid_list_
Int_t getPidIdx(Int_t pid)
Abs< T >::type abs(const T &t)
std::vector< Double_t > eta_range_
GEMBaseValidation(const edm::ParameterSet &, std::string)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
Float_t toDegree(Float_t radian)
std::vector< Double_t > zr_occ_range_
Int_t getDetOccBinX(Int_t num_layers, Int_t chamber_id, Int_t layer_id)