File indexing completed on 2024-09-11 04:33:06
0001
0002
0003 #ifndef HLTriggerOffline_JetMET_JetMETDQMPosProcessor_H
0004 #define HLTriggerOffline_JetMET_JetMETDQMPosProcessor_H
0005
0006 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0007 #include "FWCore/Framework/interface/Frameworkfwd.h"
0008
0009 #include "TEfficiency.h"
0010 #include "TPRegexp.h"
0011
0012 class JetMETDQMPostProcessor : public DQMEDHarvester {
0013 public:
0014 JetMETDQMPostProcessor(const edm::ParameterSet &pset);
0015 ~JetMETDQMPostProcessor() override {}
0016
0017 void dqmEndJob(DQMStore::IBooker &,
0018 DQMStore::IGetter &) override;
0019
0020 TProfile *dividehistos(DQMStore::IBooker &ibooker,
0021 DQMStore::IGetter &igetter,
0022 const std::string &numName,
0023 const std::string &denomName,
0024 const std::string &outName,
0025 const std::string &label,
0026 const std::string &titel);
0027
0028 private:
0029 std::string subDir_, patternJetTrg_, patternMetTrg_;
0030
0031 void Efficiency(int passing, int total, double level, double &mode, double &lowerBound, double &upperBound);
0032
0033 TH1F *getHistogram(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &histoPath);
0034 };
0035
0036 #endif