27 std::vector<std::string> subDirVec;
31 bool found_reco_dir =
false;
32 bool found_miniaod_dir =
false;
36 found_reco_dir =
true;
39 found_miniaod_dir =
true;
42 if (found_miniaod_dir && found_reco_dir) {
48 MonitorElement *mMETDifference_GenMETTrue_Reco = iget_.
get(rundir_reco +
"/" +
"METDifference_GenMETTrue");
49 MonitorElement *mMETDeltaPhi_GenMETTrue_Reco = iget_.
get(rundir_reco +
"/" +
"METDeltaPhi_GenMETTrue");
50 MonitorElement *mPFPhotonEtFraction_Reco = iget_.
get(rundir_reco +
"/" +
"photonEtFraction");
51 MonitorElement *mPFNeutralHadronEtFraction_Reco = iget_.
get(rundir_reco +
"/" +
"neutralHadronEtFraction");
52 MonitorElement *mPFChargedHadronEtFraction_Reco = iget_.
get(rundir_reco +
"/" +
"chargedHadronEtFraction");
53 MonitorElement *mPFHFHadronEtFraction_Reco = iget_.
get(rundir_reco +
"/" +
"HFHadronEtFraction");
54 MonitorElement *mPFHFEMEtFraction_Reco = iget_.
get(rundir_reco +
"/" +
"HFEMEtFraction");
56 iget_.
get(rundir_reco +
"/" +
"METResolution_GenMETTrue_MET20to40");
58 iget_.
get(rundir_reco +
"/" +
"METResolution_GenMETTrue_MET100to150");
60 iget_.
get(rundir_reco +
"/" +
"METResolution_GenMETTrue_MET300to400");
62 std::vector<MonitorElement *> ME_Reco;
63 ME_Reco.push_back(mMET_Reco);
64 ME_Reco.push_back(mMETPhi_Reco);
65 ME_Reco.push_back(mSumET_Reco);
66 ME_Reco.push_back(mMETDifference_GenMETTrue_Reco);
67 ME_Reco.push_back(mMETDeltaPhi_GenMETTrue_Reco);
68 ME_Reco.push_back(mPFPhotonEtFraction_Reco);
69 ME_Reco.push_back(mPFNeutralHadronEtFraction_Reco);
70 ME_Reco.push_back(mPFChargedHadronEtFraction_Reco);
71 ME_Reco.push_back(mPFHFHadronEtFraction_Reco);
72 ME_Reco.push_back(mPFHFEMEtFraction_Reco);
73 ME_Reco.push_back(mMETDifference_GenMETTrue_MET20to40_Reco);
74 ME_Reco.push_back(mMETDifference_GenMETTrue_MET100to150_Reco);
75 ME_Reco.push_back(mMETDifference_GenMETTrue_MET300to400_Reco);
80 MonitorElement *mMETDifference_GenMETTrue_MiniAOD = iget_.
get(rundir_miniaod +
"/" +
"METDifference_GenMETTrue");
81 MonitorElement *mMETDeltaPhi_GenMETTrue_MiniAOD = iget_.
get(rundir_miniaod +
"/" +
"METDeltaPhi_GenMETTrue");
82 MonitorElement *mPFPhotonEtFraction_MiniAOD = iget_.
get(rundir_miniaod +
"/" +
"photonEtFraction");
83 MonitorElement *mPFNeutralHadronEtFraction_MiniAOD = iget_.
get(rundir_miniaod +
"/" +
"neutralHadronEtFraction");
84 MonitorElement *mPFChargedHadronEtFraction_MiniAOD = iget_.
get(rundir_miniaod +
"/" +
"chargedHadronEtFraction");
85 MonitorElement *mPFHFHadronEtFraction_MiniAOD = iget_.
get(rundir_miniaod +
"/" +
"HFHadronEtFraction");
86 MonitorElement *mPFHFEMEtFraction_MiniAOD = iget_.
get(rundir_miniaod +
"/" +
"HFEMEtFraction");
88 iget_.
get(rundir_miniaod +
"/" +
"METResolution_GenMETTrue_MET20to40");
90 iget_.
get(rundir_miniaod +
"/" +
"METResolution_GenMETTrue_MET100to150");
92 iget_.
get(rundir_miniaod +
"/" +
"METResolution_GenMETTrue_MET300to400");
94 std::vector<MonitorElement *> ME_MiniAOD;
95 ME_MiniAOD.push_back(mMET_MiniAOD);
96 ME_MiniAOD.push_back(mMETPhi_MiniAOD);
97 ME_MiniAOD.push_back(mSumET_MiniAOD);
98 ME_MiniAOD.push_back(mMETDifference_GenMETTrue_MiniAOD);
99 ME_MiniAOD.push_back(mMETDeltaPhi_GenMETTrue_MiniAOD);
100 ME_MiniAOD.push_back(mPFPhotonEtFraction_MiniAOD);
101 ME_MiniAOD.push_back(mPFNeutralHadronEtFraction_MiniAOD);
102 ME_MiniAOD.push_back(mPFChargedHadronEtFraction_MiniAOD);
103 ME_MiniAOD.push_back(mPFHFHadronEtFraction_MiniAOD);
104 ME_MiniAOD.push_back(mPFHFEMEtFraction_MiniAOD);
105 ME_MiniAOD.push_back(mMETDifference_GenMETTrue_MET20to40_MiniAOD);
106 ME_MiniAOD.push_back(mMETDifference_GenMETTrue_MET100to150_MiniAOD);
107 ME_MiniAOD.push_back(mMETDifference_GenMETTrue_MET300to400_MiniAOD);
114 "METDifference_GenMETTrue_MiniAOD_over_RECO", (TH1F *)mMETDifference_GenMETTrue_Reco->
getRootObject());
118 ibook_.
book1D(
"photonEtFraction_MiniAOD_over_RECO", (TH1F *)mPFPhotonEtFraction_Reco->
getRootObject());
120 "neutralHadronEtFraction_MiniAOD_over_RECO", (TH1F *)mPFNeutralHadronEtFraction_Reco->
getRootObject());
122 "chargedHadronEtFraction_MiniAOD_over_RECO", (TH1F *)mPFChargedHadronEtFraction_Reco->
getRootObject());
124 ibook_.
book1D(
"HFHadronEtFraction_MiniAOD_over_RECO", (TH1F *)mPFHFHadronEtFraction_Reco->
getRootObject());
126 ibook_.
book1D(
"HFEMEtEtFraction_MiniAOD_over_RECO", (TH1F *)mPFHFEMEtFraction_Reco->
getRootObject());
128 ibook_.
book1D(
"METResolution_GenMETTrue_MET20to40_MiniAOD_over_RECO",
129 (TH1F *)mMETDifference_GenMETTrue_MET20to40_Reco->
getRootObject());
131 ibook_.
book1D(
"METResolution_GenMETTrue_MET100to150_MiniAOD_over_RECO",
132 (TH1F *)mMETDifference_GenMETTrue_MET100to150_Reco->
getRootObject());
134 ibook_.
book1D(
"METResolution_GenMETTrue_MET300to400_MiniAOD_over_RECO",
135 (TH1F *)mMETDifference_GenMETTrue_MET300to400_Reco->
getRootObject());
137 std::vector<MonitorElement *> ME_MiniAOD_over_Reco;
152 for (
unsigned int j = 0; j < ME_MiniAOD_over_Reco.size(); j++) {
158 if (monMiniAOD_over_RECO && monMiniAOD_over_RECO->
getRootObject()) {
159 for (
int i = 0;
i <= (monMiniAOD_over_RECO->
getNbinsX() + 1);
i++) {
T getParameter(std::string const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
edm::InputTag inputMETLabelMiniAOD_
TObject * getRootObject() const
MonitorElement * mMETDifference_GenMETTrue_MiniAOD_over_Reco
void setCurrentFolder(std::string const &fullpath)
MonitorElement * mMETPhi_MiniAOD_over_Reco
MonitorElement * mSumET_MiniAOD_over_Reco
MonitorElement * mPFHFHadronEtFraction_MiniAOD_over_Reco
void setCurrentFolder(std::string const &fullpath)
METTesterPostProcessorHarvesting(const edm::ParameterSet &)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
MonitorElement * book1D(Args &&...args)
MonitorElement * mMET_MiniAOD_over_Reco
MonitorElement * mMETDifference_GenMETTrue_MET20to40_MiniAOD_over_Reco
MonitorElement * mMETDifference_GenMETTrue_MET300to400_MiniAOD_over_Reco
MonitorElement * mPFHFEMEtFraction_MiniAOD_over_Reco
std::vector< std::string > met_dirs
MonitorElement * mMETDeltaPhi_GenMETTrue_MiniAOD_over_Reco
MonitorElement * get(std::string const &path)
edm::InputTag inputMETLabelRECO_
~METTesterPostProcessorHarvesting() override
MonitorElement * mPFChargedHadronEtFraction_MiniAOD_over_Reco
MonitorElement * mPFPhotonEtFraction_MiniAOD_over_Reco
MonitorElement * mPFNeutralHadronEtFraction_MiniAOD_over_Reco
double getBinContent(int binx) const
get content of bin (1-D)
std::vector< std::string > getSubdirs()
int getNbinsX() const
get # of bins in X-axis
MonitorElement * mMETDifference_GenMETTrue_MET100to150_MiniAOD_over_Reco