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);