CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
METTesterPostProcessorHarvesting Class Reference

#include <METTesterPostProcessorHarvesting.h>

Inheritance diagram for METTesterPostProcessorHarvesting:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 METTesterPostProcessorHarvesting (const edm::ParameterSet &)
 
 ~METTesterPostProcessorHarvesting () override
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
 DQMEDHarvester ()
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 

Private Attributes

edm::InputTag inputMETLabelMiniAOD_
 
edm::InputTag inputMETLabelRECO_
 
std::vector< std::string > met_dirs
 
MonitorElementmMET_MiniAOD_over_Reco
 
MonitorElementmMETDeltaPhi_GenMETTrue_MiniAOD_over_Reco
 
MonitorElementmMETDifference_GenMETTrue_MET100to150_MiniAOD_over_Reco
 
MonitorElementmMETDifference_GenMETTrue_MET20to40_MiniAOD_over_Reco
 
MonitorElementmMETDifference_GenMETTrue_MET300to400_MiniAOD_over_Reco
 
MonitorElementmMETDifference_GenMETTrue_MiniAOD_over_Reco
 
MonitorElementmMETPhi_MiniAOD_over_Reco
 
MonitorElementmPFChargedHadronEtFraction_MiniAOD_over_Reco
 
MonitorElementmPFHFEMEtFraction_MiniAOD_over_Reco
 
MonitorElementmPFHFHadronEtFraction_MiniAOD_over_Reco
 
MonitorElementmPFNeutralHadronEtFraction_MiniAOD_over_Reco
 
MonitorElementmPFPhotonEtFraction_MiniAOD_over_Reco
 
MonitorElementmSumET_MiniAOD_over_Reco
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 27 of file METTesterPostProcessorHarvesting.h.

Constructor & Destructor Documentation

◆ METTesterPostProcessorHarvesting()

METTesterPostProcessorHarvesting::METTesterPostProcessorHarvesting ( const edm::ParameterSet iConfig)
explicit

◆ ~METTesterPostProcessorHarvesting()

METTesterPostProcessorHarvesting::~METTesterPostProcessorHarvesting ( )
override

Definition at line 23 of file METTesterPostProcessorHarvesting.cc.

23 {}

Member Function Documentation

◆ dqmEndJob()

void METTesterPostProcessorHarvesting::dqmEndJob ( DQMStore::IBooker ibook_,
DQMStore::IGetter iget_ 
)
overrideprivatevirtual

Implements DQMEDHarvester.

Definition at line 26 of file METTesterPostProcessorHarvesting.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IGetter::get(), dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getNbinsX(), dqm::legacy::MonitorElement::getRootObject(), dqm::implementation::IGetter::getSubdirs(), mps_fire::i, inputMETLabelMiniAOD_, inputMETLabelRECO_, createfilelist::int, dqmiolumiharvest::j, edm::InputTag::label(), met_dirs, mMET_MiniAOD_over_Reco, mMETDeltaPhi_GenMETTrue_MiniAOD_over_Reco, mMETDifference_GenMETTrue_MET100to150_MiniAOD_over_Reco, mMETDifference_GenMETTrue_MET20to40_MiniAOD_over_Reco, mMETDifference_GenMETTrue_MET300to400_MiniAOD_over_Reco, mMETDifference_GenMETTrue_MiniAOD_over_Reco, mMETPhi_MiniAOD_over_Reco, mPFChargedHadronEtFraction_MiniAOD_over_Reco, mPFHFEMEtFraction_MiniAOD_over_Reco, mPFHFHadronEtFraction_MiniAOD_over_Reco, mPFNeutralHadronEtFraction_MiniAOD_over_Reco, mPFPhotonEtFraction_MiniAOD_over_Reco, mSumET_MiniAOD_over_Reco, dqm::impl::MonitorElement::setBinContent(), dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

26  {
27  std::vector<std::string> subDirVec;
28  std::string RunDir = "JetMET/METValidation/";
29  iget_.setCurrentFolder(RunDir);
30  met_dirs = iget_.getSubdirs();
31  bool found_reco_dir = false;
32  bool found_miniaod_dir = false;
33  // loop over met subdirectories
34  for (int i = 0; i < int(met_dirs.size()); i++) {
35  if (met_dirs[i] == (RunDir + inputMETLabelRECO_.label())) {
36  found_reco_dir = true;
37  }
38  if (met_dirs[i] == (RunDir + inputMETLabelMiniAOD_.label())) {
39  found_miniaod_dir = true;
40  }
41  }
42  if (found_miniaod_dir && found_reco_dir) {
43  std::string rundir_reco = RunDir + inputMETLabelRECO_.label();
44  std::string rundir_miniaod = RunDir + inputMETLabelMiniAOD_.label();
45  MonitorElement *mMET_Reco = iget_.get(rundir_reco + "/" + "MET");
46  MonitorElement *mMETPhi_Reco = iget_.get(rundir_reco + "/" + "METPhi");
47  MonitorElement *mSumET_Reco = iget_.get(rundir_reco + "/" + "SumET");
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");
55  MonitorElement *mMETDifference_GenMETTrue_MET20to40_Reco =
56  iget_.get(rundir_reco + "/" + "METResolution_GenMETTrue_MET20to40");
57  MonitorElement *mMETDifference_GenMETTrue_MET100to150_Reco =
58  iget_.get(rundir_reco + "/" + "METResolution_GenMETTrue_MET100to150");
59  MonitorElement *mMETDifference_GenMETTrue_MET300to400_Reco =
60  iget_.get(rundir_reco + "/" + "METResolution_GenMETTrue_MET300to400");
61 
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);
76 
77  MonitorElement *mMET_MiniAOD = iget_.get(rundir_miniaod + "/" + "MET");
78  MonitorElement *mMETPhi_MiniAOD = iget_.get(rundir_miniaod + "/" + "METPhi");
79  MonitorElement *mSumET_MiniAOD = iget_.get(rundir_miniaod + "/" + "SumET");
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");
87  MonitorElement *mMETDifference_GenMETTrue_MET20to40_MiniAOD =
88  iget_.get(rundir_miniaod + "/" + "METResolution_GenMETTrue_MET20to40");
89  MonitorElement *mMETDifference_GenMETTrue_MET100to150_MiniAOD =
90  iget_.get(rundir_miniaod + "/" + "METResolution_GenMETTrue_MET100to150");
91  MonitorElement *mMETDifference_GenMETTrue_MET300to400_MiniAOD =
92  iget_.get(rundir_miniaod + "/" + "METResolution_GenMETTrue_MET300to400");
93 
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);
108 
109  ibook_.setCurrentFolder(RunDir + "MiniAOD_over_RECO");
110  mMET_MiniAOD_over_Reco = ibook_.book1D("MET_MiniAOD_over_RECO", (TH1F *)mMET_Reco->getRootObject());
111  mMETPhi_MiniAOD_over_Reco = ibook_.book1D("METPhi_MiniAOD_over_RECO", (TH1F *)mMETPhi_Reco->getRootObject());
112  mSumET_MiniAOD_over_Reco = ibook_.book1D("SumET_MiniAOD_over_RECO", (TH1F *)mSumET_Reco->getRootObject());
114  "METDifference_GenMETTrue_MiniAOD_over_RECO", (TH1F *)mMETDifference_GenMETTrue_Reco->getRootObject());
115  mMETDeltaPhi_GenMETTrue_MiniAOD_over_Reco = ibook_.book1D("METDeltaPhi_GenMETTrue_MiniAOD_over_RECO",
116  (TH1F *)mMETDeltaPhi_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());
136 
137  std::vector<MonitorElement *> ME_MiniAOD_over_Reco;
138  ME_MiniAOD_over_Reco.push_back(mMET_MiniAOD_over_Reco);
139  ME_MiniAOD_over_Reco.push_back(mMETPhi_MiniAOD_over_Reco);
140  ME_MiniAOD_over_Reco.push_back(mSumET_MiniAOD_over_Reco);
141  ME_MiniAOD_over_Reco.push_back(mMETDifference_GenMETTrue_MiniAOD_over_Reco);
142  ME_MiniAOD_over_Reco.push_back(mMETDeltaPhi_GenMETTrue_MiniAOD_over_Reco);
143  ME_MiniAOD_over_Reco.push_back(mPFPhotonEtFraction_MiniAOD_over_Reco);
144  ME_MiniAOD_over_Reco.push_back(mPFNeutralHadronEtFraction_MiniAOD_over_Reco);
145  ME_MiniAOD_over_Reco.push_back(mPFChargedHadronEtFraction_MiniAOD_over_Reco);
146  ME_MiniAOD_over_Reco.push_back(mPFHFHadronEtFraction_MiniAOD_over_Reco);
147  ME_MiniAOD_over_Reco.push_back(mPFHFEMEtFraction_MiniAOD_over_Reco);
148  ME_MiniAOD_over_Reco.push_back(mMETDifference_GenMETTrue_MET20to40_MiniAOD_over_Reco);
149  ME_MiniAOD_over_Reco.push_back(mMETDifference_GenMETTrue_MET100to150_MiniAOD_over_Reco);
150  ME_MiniAOD_over_Reco.push_back(mMETDifference_GenMETTrue_MET300to400_MiniAOD_over_Reco);
151 
152  for (unsigned int j = 0; j < ME_MiniAOD_over_Reco.size(); j++) {
153  MonitorElement *monReco = ME_Reco[j];
154  if (monReco && monReco->getRootObject()) {
155  MonitorElement *monMiniAOD = ME_MiniAOD[j];
156  if (monMiniAOD && monMiniAOD->getRootObject()) {
157  MonitorElement *monMiniAOD_over_RECO = ME_MiniAOD_over_Reco[j];
158  if (monMiniAOD_over_RECO && monMiniAOD_over_RECO->getRootObject()) {
159  for (int i = 0; i <= (monMiniAOD_over_RECO->getNbinsX() + 1); i++) {
160  if (monReco->getBinContent(i) != 0) {
161  monMiniAOD_over_RECO->setBinContent(i, monMiniAOD->getBinContent(i) / monReco->getBinContent(i));
162  } else if (monMiniAOD->getBinContent(i) != 0) {
163  monMiniAOD_over_RECO->setBinContent(i, -0.5);
164  }
165  }
166  }
167  }
168  }
169  }
170  }
171 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
std::string const & label() const
Definition: InputTag.h:36
MonitorElement * mMETDifference_GenMETTrue_MET300to400_MiniAOD_over_Reco
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:680
virtual int getNbinsX() const
get # of bins in X-axis
TObject * getRootObject() const override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
MonitorElement * mMETDifference_GenMETTrue_MET100to150_MiniAOD_over_Reco
virtual double getBinContent(int binx) const
get content of bin (1-D)
virtual DQM_DEPRECATED std::vector< std::string > getSubdirs() const
Definition: DQMStore.cc:707

Member Data Documentation

◆ inputMETLabelMiniAOD_

edm::InputTag METTesterPostProcessorHarvesting::inputMETLabelMiniAOD_
private

◆ inputMETLabelRECO_

edm::InputTag METTesterPostProcessorHarvesting::inputMETLabelRECO_
private

◆ met_dirs

std::vector<std::string> METTesterPostProcessorHarvesting::met_dirs
private

Definition at line 38 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mMET_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mMET_MiniAOD_over_Reco
private

Definition at line 40 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mMETDeltaPhi_GenMETTrue_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mMETDeltaPhi_GenMETTrue_MiniAOD_over_Reco
private

Definition at line 49 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mMETDifference_GenMETTrue_MET100to150_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mMETDifference_GenMETTrue_MET100to150_MiniAOD_over_Reco
private

Definition at line 51 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mMETDifference_GenMETTrue_MET20to40_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mMETDifference_GenMETTrue_MET20to40_MiniAOD_over_Reco
private

Definition at line 50 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mMETDifference_GenMETTrue_MET300to400_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mMETDifference_GenMETTrue_MET300to400_MiniAOD_over_Reco
private

Definition at line 52 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mMETDifference_GenMETTrue_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mMETDifference_GenMETTrue_MiniAOD_over_Reco
private

Definition at line 48 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mMETPhi_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mMETPhi_MiniAOD_over_Reco
private

Definition at line 41 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mPFChargedHadronEtFraction_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mPFChargedHadronEtFraction_MiniAOD_over_Reco
private

Definition at line 45 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mPFHFEMEtFraction_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mPFHFEMEtFraction_MiniAOD_over_Reco
private

Definition at line 47 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mPFHFHadronEtFraction_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mPFHFHadronEtFraction_MiniAOD_over_Reco
private

Definition at line 46 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mPFNeutralHadronEtFraction_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mPFNeutralHadronEtFraction_MiniAOD_over_Reco
private

Definition at line 44 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mPFPhotonEtFraction_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mPFPhotonEtFraction_MiniAOD_over_Reco
private

Definition at line 43 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().

◆ mSumET_MiniAOD_over_Reco

MonitorElement* METTesterPostProcessorHarvesting::mSumET_MiniAOD_over_Reco
private

Definition at line 42 of file METTesterPostProcessorHarvesting.h.

Referenced by dqmEndJob().