9 edm::LogInfo(
"TrackFoldedOccupancyClient") <<
"TrackFoldedOccupancyClient::Deleting TrackFoldedOccupancyClient ";
14 histTag_ = (state_ ==
"default") ? algoName_ : state_ +
"_" + algoName_;
22 edm::LogInfo(
"TrackFoldedOccupancyClient") <<
"TrackFoldedOccupancyClient::Deleting TrackFoldedOccupancyClient ";
29 edm::LogInfo(
"TrackFoldedOccupancyClient") <<
"TrackFoldedOccupancyClient::beginJob done";
36 edm::LogInfo(
"TrackFoldedOccupancyClient") <<
"TrackFoldedOccupancyClient:: Begining of Run";
54 ibooker.
book2D(histname, histname, Eta2DBin, EtaMin, EtaMax, Phi2DBin, PhiMin, PhiMax);
58 histname =
"TkEtaPhi_RelativeDifference_byFoldingmap_op_" +
histTag_;
60 ibooker.
book2D(histname, histname, Eta2DBin, EtaMin, EtaMax, Phi2DBin, PhiMin, PhiMax);
64 histname =
"TkEtaPhi_Ratio_byFoldingmap_" +
histTag_;
69 histname =
"TkEtaPhi_Ratio_byFoldingmap_op_" +
histTag_;
71 ibooker.
book2D(histname, histname, Eta2DBin, EtaMin, EtaMax, Phi2DBin, PhiMin, PhiMax);
80 edm::LogInfo(
"TrackFoldedOccupancyClient") <<
"TrackFoldedOccupancyClient::endLuminosityBlock";
86 hname =
"TrackEtaPhi_";
89 hname =
"TrackEtaPhiInverted_";
92 hname =
"TrackEtaPhiInvertedoutofphase_";
95 if (TrackEtaPhi ==
nullptr || TrackEtaPhiInverted ==
nullptr || TrackEtaPhiInvertedoutofphase ==
nullptr) {
96 edm::LogWarning(
"TrackFoldedOccupancyClient") <<
"MEs needed for this module not found. Skipping.";
106 for (
int ii = 1;
ii <= nx;
ii++) {
107 for (
int jj = 1;
jj <= ny;
jj++) {
114 if (Sum1 == 0 || Sum2 == 0) {
118 double ratio1 = Sub1 / Sum1;
119 double ratio2 = Sub2 / Sum2;
virtual int getNbinsY() const
get # of bins in Y-axis
virtual void setCurrentFolder(std::string const &fullpath)
void beginJob(void) override
BeginJob.
#define DEFINE_FWK_MODULE(type)
TrackFoldedOccupancyClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * TkEtaPhi_Ratio_byFoldingmap
MonitorElement * TkEtaPhi_RelativeDifference_byFoldingmap
void bookMEs(DQMStore::IBooker &ibooker_)
book MEs
virtual int getNbinsX() const
get # of bins in X-axis
MonitorElement * TkEtaPhi_Ratio_byFoldingmap_op
virtual MonitorElement * get(std::string const &fullpath) const
const double EtaMin[kNumberCalorimeter]
void dqmEndJob(DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_) override
EndJob.
virtual double getBinContent(int binx) const
get content of bin (1-D)
~TrackFoldedOccupancyClient() override
Destructor.
Log< level::Info, false > LogInfo
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
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
MonitorElement * TkEtaPhi_RelativeDifference_byFoldingmap_op
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
BeginRun.
Log< level::Warning, false > LogWarning
virtual void divide(const MonitorElement *, const MonitorElement *, double, double, const char *)
Replace entries with results of dividing num by denom.
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)