30 LogDebug(
"JetMETHLTOfflineClient") <<
"dqmEndJob" << std::endl;
34 std::vector<MonitorElement*> hltMEs;
37 std::vector<std::string> fullPathHLTFolders = igetter.
getSubdirs();
38 for (
auto& fullPathHLTFolder : fullPathHLTFolders) {
41 std::cout << fullPathHLTFolder << std::endl;
42 if ((fullPathHLTFolder.find(
"Eff") != std::string::npos)) {
49 std::vector<std::string> fullSubPathHLTFolders = igetter.
getSubdirs();
50 for (
auto& fullSubPathHLTFolder : fullSubPathHLTFolders) {
52 std::cout << fullSubPathHLTFolder << std::endl;
57 LogDebug(
"JetMETHLTOfflineClient") <<
"Number of MEs for this HLT path = " << hltMEs.size() << std::endl;
59 for (
unsigned int k = 0;
k < hltMEs.size();
k++) {
61 std::cout << hltMEs[
k]->getName() << std::endl;
64 if ((hltMEs[
k]->
getName().
find(
"ME_Numerator") != std::string::npos) &&
72 for (
unsigned int l = 0;
l < hltMEs.size();
l++) {
75 if (
name.find(
"EtaPhi") != std::string::npos) {
76 TH2F* tNumerator = hltMEs[
k]->getTH2F();
77 TH2F* tDenominator = hltMEs[
l]->getTH2F();
81 auto* teff = (TH2F*)tNumerator->Clone(
title.c_str());
82 teff->Divide(tNumerator, tDenominator, 1, 1);
86 TH1F* tNumerator = hltMEs[
k]->
getTH1F();
87 TH1F* tDenominator = hltMEs[
l]->getTH1F();
91 auto* teff = (TH1F*)tNumerator->Clone(
title.c_str());
92 teff->Divide(tNumerator, tDenominator, 1, 1);
T getParameter(std::string const &) const
virtual void setCurrentFolder(std::string const &fullpath)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
#define DEFINE_FWK_MODULE(type)
~JetMETHLTOfflineClient() override
virtual TH1F * getTH1F() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
std::string getName(const G4String &)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
JetMETHLTOfflineClient(const edm::ParameterSet &)
virtual std::vector< dqm::harvesting::MonitorElement * > getContents(std::string const &path) const
virtual DQM_DEPRECATED std::vector< std::string > getSubdirs() const