51 if (!meMVATrackEffPtTot || !meMVATrackMatchedEffPtTot || !meMVATrackMatchedEffPtMtd || !meMVATrackEffEtaTot ||
52 !meMVATrackMatchedEffEtaTot || !meMVATrackMatchedEffEtaMtd || !meRecoVtxVsLineDensity || !meRecVerNumber) {
53 edm::LogError(
"Primary4DVertexHarvester") <<
"Monitoring histograms not found!" << std::endl;
61 double nEntries = meRecoVtxVsLineDensity->
getEntries();
62 for (
int ibin = 1; ibin <= meRecoVtxVsLineDensity->
getNbinsX(); ibin++) {
64 double bin_err = meRecoVtxVsLineDensity->
getBinError(ibin) * nEvt;
74 "Track selected efficiency VS Pt;Pt [GeV];Efficiency",
76 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
77 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
79 "Track selected efficiency VS Eta;Eta;Efficiency",
81 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
82 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
84 "Track matched to GEN efficiency VS Pt;Pt [GeV];Efficiency",
86 meMVATrackMatchedEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
87 meMVATrackMatchedEffPtTot->
getTH1()->GetXaxis()->GetXmax());
89 "Track matched to GEN efficiency VS Eta;Eta;Efficiency",
91 meMVATrackMatchedEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
92 meMVATrackMatchedEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
99 for (
int ibin = 1; ibin <= meMVATrackEffPtTot->
getNbinsX(); ibin++) {
112 for (
int ibin = 1; ibin <= meMVATrackEffEtaTot->
getNbinsX(); ibin++) {
126 for (
int ibin = 1; ibin <= meMVATrackMatchedEffPtTot->
getNbinsX(); ibin++) {
140 for (
int ibin = 1; ibin <= meMVATrackMatchedEffEtaTot->
getNbinsX(); ibin++) {
161 descriptions.
add(
"Primary4DVertexPostProcessor", desc);
~Primary4DVertexHarvester() override
tuple cont
load Luminosity info ##
virtual void setEntries(double nentries)
set # of entries
MonitorElement * meMVAPtSelEff_
#define DEFINE_FWK_MODULE(type)
Primary4DVertexHarvester(const edm::ParameterSet &iConfig)
virtual double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
Log< level::Error, false > LogError
virtual int getNbinsX() const
get # of bins in X-axis
MonitorElement * meMVAEtaSelEff_
virtual double getEntries() const
get # of entries
MonitorElement * meMVAPtMatchEff_
virtual MonitorElement * get(std::string const &fullpath) const
const std::string folder_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
virtual double getBinContent(int binx) const
get content of bin (1-D)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meMVAEtaMatchEff_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
virtual void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
virtual TH1 * getTH1() const
Power< A, B >::type pow(const A &a, const B &b)