51 : effFolderName_(iConfig.getParameter<std::
string>(
"EffFolderName")),
52 vtxFolderName_(iConfig.getParameter<std::
string>(
"VtxFolderName")),
53 instLumiFolderName_(iConfig.getParameter<std::
string>(
"InstLumiFolderName")) {
54 LogInfo(
"PixelDQM") <<
"SiPixelPhase1EfficiencyExtras::SiPixelPhase1EfficiencyExtras: Hello!" << endl;
58 LogInfo(
"PixelDQM") <<
"SiPixelPhase1EfficiencyExtras::~SiPixelPhase1EfficiencyExtras: Destructor" << endl;
75 iGetter.
get(
effFolderName_ +
"/hitefficiency_per_Lumisection_per_PXDisk_PXForward");
78 iGetter.
get(
effFolderName_ +
"/hitefficiency_per_Lumisection_per_PXLayer_PXBarrel");
81 bool createNvtx =
true;
82 bool createInstLumi =
true;
85 if (!eff_v_lumi_forward) {
87 <<
"no hitefficiency_per_Lumisection_per_PXDisk_PXForward ME is available in " <<
effFolderName_ << std::endl;
90 if (!eff_v_lumi_barrel) {
92 <<
"no hitefficiency_per_Lumisection_per_PXLayer_PXBarrel ME is available in " <<
effFolderName_ << std::endl;
97 <<
"no NumberOfGoodPVtxVsLS_GenTK ME is available in " <<
vtxFolderName_ << std::endl;
100 if (!scalLumi_v_lumi) {
103 createInstLumi =
false;
107 if (vtx_v_lumi && vtx_v_lumi->
getEntries() == 0)
109 if (scalLumi_v_lumi && scalLumi_v_lumi->
getEntries() == 0)
110 createInstLumi =
false;
118 iBooker.
book2D(
"hitefficiency_per_meanNvtx_per_PXLayer_PXBarrel",
119 "hitefficiency_per_meanNvtx_per_PXLayer_PXBarrel; meanNvtx; PXLayer",
128 iBooker.
book2D(
"hitefficiency_per_meanNvtx_per_PXDisk_PXForward",
129 "hitefficiency_per_meanNvtx_per_PXDisk_PXForward; meanNvtx; PXDisk",
138 int numLumiNvtx = int(vtx_v_lumi->
getNbinsX());
143 for (
int iLumi = 1; iLumi < numLumiNvtx - 1; iLumi++) {
150 binNumVtx = eff_v_vtx_barrel->
getTH2F()->FindBin(nvtx);
153 for (
int iLayer = 1; iLayer < 8; iLayer++) {
162 for (
int iLayer = 1; iLayer < 5; iLayer++) {
173 if (createInstLumi) {
175 int yMax2 = scalLumi_v_lumi->
getTProfile()->GetMaximum();
176 yMax2 = yMax2 + yMax2 * .1;
180 iBooker.
book2D(
"hitefficiency_per_scalLumi_per_PXLayer_PXBarrel",
181 "hitefficiency_per_scalLumi_per_PXLayer_PXBarrel; scal inst lumi E30; PXLayer",
190 iBooker.
book2D(
"hitefficiency_per_scalLumi_per_PXDisk_PXForward",
191 "hitefficiency_per_scalLumi_per_PXDisk_PXForward; scal inst lumi E30; PXDisk",
200 int numLumiScal = int(scalLumi_v_lumi->
getNbinsX());
201 double scalLumi = 0.0;
205 for (
int iLumi = 1; iLumi < numLumiScal - 1; iLumi++) {
212 binNumScal = eff_v_scalLumi_barrel->
getTH2F()->FindBin(scalLumi);
215 for (
int iLayer = 1; iLayer < 8; iLayer++) {
220 eff_v_scalLumi_forward->
setBinContent(binNumScal, iLayer, eff);
224 for (
int iLayer = 1; iLayer < 5; iLayer++) {
229 eff_v_scalLumi_barrel->
setBinContent(binNumScal, iLayer, eff);
virtual TH2F * getTH2F() const
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getEntries() const
get # of entries
virtual MonitorElement * get(std::string const &fullpath) const
virtual double getBinContent(int binx) const
get content of bin (1-D)
Log< level::Info, false > LogInfo
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
virtual TProfile * getTProfile() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Log< level::Warning, false > LogWarning