50 : effFolderName_(iConfig.getParameter<
std::
string>(
"EffFolderName")),
51 vtxFolderName_(iConfig.getParameter<
std::
string>(
"VtxFolderName")),
52 instLumiFolderName_(iConfig.getParameter<
std::
string>(
"InstLumiFolderName")) {
53 edm::LogInfo(
"PixelDQM") <<
"SiPixelPhase1EfficiencyExtras::SiPixelPhase1EfficiencyExtras: Hello!";
57 edm::LogInfo(
"PixelDQM") <<
"SiPixelPhase1EfficiencyExtras::~SiPixelPhase1EfficiencyExtras: Destructor";
74 iGetter.
get(
effFolderName_ +
"/hitefficiency_per_Lumisection_per_PXDisk_PXForward");
77 iGetter.
get(
effFolderName_ +
"/hitefficiency_per_Lumisection_per_PXLayer_PXBarrel");
80 bool createNvtx =
true;
81 bool createInstLumi =
true;
84 if (!eff_v_lumi_forward) {
86 <<
"no hitefficiency_per_Lumisection_per_PXDisk_PXForward ME is available in " <<
effFolderName_;
89 if (!eff_v_lumi_barrel) {
91 <<
"no hitefficiency_per_Lumisection_per_PXLayer_PXBarrel ME is available in " <<
effFolderName_;
96 <<
"no NumberOfGoodPVtxVsLS_GenTK ME is available in " <<
vtxFolderName_;
99 if (!scalLumi_v_lumi) {
101 createInstLumi =
false;
105 if (vtx_v_lumi && vtx_v_lumi->
getEntries() == 0)
107 if (scalLumi_v_lumi && scalLumi_v_lumi->
getEntries() == 0)
108 createInstLumi =
false;
111 if (createInstLumi and scalLumi_v_lumi->
getTProfile()->GetMaximum() <= 0.)
112 createInstLumi =
false;
120 iBooker.
book2D(
"hitefficiency_per_meanNvtx_per_PXLayer_PXBarrel",
121 "hitefficiency_per_meanNvtx_per_PXLayer_PXBarrel; meanNvtx; PXLayer",
130 iBooker.
book2D(
"hitefficiency_per_meanNvtx_per_PXDisk_PXForward",
131 "hitefficiency_per_meanNvtx_per_PXDisk_PXForward; meanNvtx; PXDisk",
145 for (
int iLumi = 1; iLumi < numLumiNvtx - 1; iLumi++) {
152 binNumVtx = eff_v_vtx_barrel->
getTH2F()->FindBin(nvtx);
155 for (
int iLayer = 1; iLayer < 8; iLayer++) {
164 for (
int iLayer = 1; iLayer < 5; iLayer++) {
175 if (createInstLumi) {
182 iBooker.
book2D(
"hitefficiency_per_scalLumi_per_PXLayer_PXBarrel",
183 "hitefficiency_per_scalLumi_per_PXLayer_PXBarrel; scal inst lumi E30; PXLayer",
192 iBooker.
book2D(
"hitefficiency_per_scalLumi_per_PXDisk_PXForward",
193 "hitefficiency_per_scalLumi_per_PXDisk_PXForward; scal inst lumi E30; PXDisk",
203 double scalLumi = 0.0;
207 for (
int iLumi = 1; iLumi < numLumiScal - 1; iLumi++) {
214 binNumScal = eff_v_scalLumi_barrel->
getTH2F()->FindBin(scalLumi);
217 for (
int iLayer = 1; iLayer < 8; iLayer++) {
222 eff_v_scalLumi_forward->
setBinContent(binNumScal, iLayer, eff);
226 for (
int iLayer = 1; iLayer < 5; iLayer++) {
231 eff_v_scalLumi_barrel->
setBinContent(binNumScal, iLayer, eff);
virtual TProfile * getTProfile() const
virtual void setCurrentFolder(std::string const &fullpath)
virtual TH2F * getTH2F() const
#define DEFINE_FWK_MODULE(type)
virtual double getEntries() const
get # of entries
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())
virtual MonitorElement * get(std::string const &fullpath) const
virtual int getNbinsX() const
get # of bins in X-axis
Log< level::Warning, false > LogWarning
virtual double getBinContent(int binx) const
get content of bin (1-D)