|
| METMonitor (const edm::ParameterSet &) |
|
| ~METMonitor () override |
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
| DQMEDAnalyzer (DQMEDAnalyzer const &)=delete |
|
| DQMEDAnalyzer (DQMEDAnalyzer &&)=delete |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
|
| ~DQMEDAnalyzer () override=default |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
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 |
|
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) |
|
| ~ProducerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
void | analyze (edm::Event const &iEvent, edm::EventSetup const &iSetup) override |
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
void | bookME (DQMStore::IBooker &, METME &me, const std::string &histname, const std::string &histtitle, int nbins, double xmin, double xmax) |
|
void | bookME (DQMStore::IBooker &, METME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX) |
|
void | bookME (DQMStore::IBooker &, METME &me, const std::string &histname, const std::string &histtitle, int nbinsX, double xmin, double xmax, double ymin, double ymax) |
|
void | bookME (DQMStore::IBooker &, METME &me, const std::string &histname, const std::string &histtitle, int nbinsX, double xmin, double xmax, int nbinsY, double ymin, double ymax) |
|
void | bookME (DQMStore::IBooker &, METME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY) |
|
void | setMETitle (METME &me, const std::string &titleX, const std::string &titleY) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
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 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) |
|
Definition at line 49 of file METMonitor.h.
Reimplemented from DQMEDAnalyzer.
Definition at line 146 of file METMonitor.cc.
References hiPixelPairStep_cff::deltaPhi, deltaphij1j2ME_, deltaphimetj1ME_, den_genTriggerEventFlag_, METMonitor::METME::denominator, MillePedeFileConverter_cfg::e, electrons_cff::electrons, eleSelection_, eleToken_, HcalObjRepresent::Fill(), edm::Event::getByToken(), edm::EventBase::id(), fwrapper::jets, jetSelection_, jetToken_, eostools::ls(), edm::EventID::luminosityBlock(), funct::m, RazorAnalyzer::met, metME_, metME_variableBinning_, metPhiME_, metSelection_, metToken_, metVsLS_, nano_cff::muons, muoSelection_, muoToken_, nelectrons_, njets_, nmuons_, num_genTriggerEventFlag_, METMonitor::METME::numerator, phi, reco::LeafCandidate::phi(), reco::Vertex::position(), reco::LeafCandidate::pt(), findQualityFiles::v, badGlobalMuonTaggersAOD_cff::vtx, and vtxToken_.
154 float met = pfmet.
pt();
158 std::vector<reco::PFJet>
jets;
159 if ( jetHandle->size() <
njets_ )
return;
160 for (
auto const & j : *jetHandle ) {
165 float deltaPhi_met_j1= 10.0;
166 float deltaPhi_j1_j2 = 10.0;
168 if (!jets.empty()) deltaPhi_met_j1 = fabs(
deltaPhi( pfmet.
phi(), jets[0].phi() ));
169 if (jets.size() >= 2) deltaPhi_j1_j2 = fabs(
deltaPhi( jets[0].
phi(), jets[1].
phi() ));
172 std::vector<reco::GsfElectron>
electrons;
174 for (
auto const &
e : *eleHandle ) {
183 for (
auto const &
v : *vtxHandle) {
184 bool isFake =
v.isFake() ;
194 if ( muoHandle->size() <
nmuons_ )
return;
195 std::vector<reco::Muon>
muons;
196 for (
auto const &
m : *muoHandle ) {
197 bool pass =
m.isGlobalMuon() &&
m.isPFMuon() &&
m.globalTrack()->normalizedChi2() < 10. &&
m.globalTrack()->hitPattern().numberOfValidMuonHits() > 0 &&
m.numberOfMatchedStations() > 1 && fabs(
m.muonBestTrack()->dxy(vtx.
position())) < 0.2 && fabs(
m.muonBestTrack()->dz(vtx.
position())) < 0.5 &&
m.innerTrack()->hitPattern().numberOfValidPixelHits() > 0 &&
m.innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5;
200 if ( muons.size() <
nmuons_ )
return;
209 int ls =
iEvent.id().luminosityBlock();
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
MonitorElement * numerator
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
double pt() const final
transverse momentum
StringCutObjectSelector< reco::Muon, true > muoSelection_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
METME metME_variableBinning_
const Point & position() const
position
StringCutObjectSelector< reco::PFJet, true > jetSelection_
edm::EDGetTokenT< reco::GsfElectronCollection > eleToken_
MonitorElement * denominator
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
edm::EDGetTokenT< reco::PFJetCollection > jetToken_
edm::EDGetTokenT< reco::PFMETCollection > metToken_
edm::EDGetTokenT< reco::MuonCollection > muoToken_
StringCutObjectSelector< reco::MET, true > metSelection_
double phi() const final
momentum azimuthal angle
Implements DQMEDAnalyzer.
Definition at line 102 of file METMonitor.cc.
References bookME(), deltaphij1j2ME_, deltaphimetj1ME_, den_genTriggerEventFlag_, folderName_, ls_binning_, met_binning_, met_variable_binning_, metME_, metME_variableBinning_, metPhiME_, metVsLS_, METMonitor::MEbinning::nbins, num_genTriggerEventFlag_, phi_binning_, DQMStore::IBooker::setCurrentFolder(), setMETitle(), AlCaHLTBitMon_QueryRunRegistry::string, METMonitor::MEbinning::xmax, and METMonitor::MEbinning::xmin.
112 histname =
"deltaphi_metjet1"; histtitle =
"DPHI_METJ1";
116 histname =
"deltaphi_jet1jet2"; histtitle =
"DPHI_J1J2";
120 histname =
"met"; histtitle =
"PFMET";
124 histname =
"met_variable"; histtitle =
"PFMET";
128 histname =
"metVsLS"; histtitle =
"PFMET vs LS";
132 histname =
"metPhi"; histtitle =
"PFMET phi";
void setMETitle(METME &me, const std::string &titleX, const std::string &titleY)
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
METME metME_variableBinning_
void bookME(DQMStore::IBooker &, METME &me, const std::string &histname, const std::string &histtitle, int nbins, double xmin, double xmax)
static MEbinning phi_binning_
void setCurrentFolder(const std::string &fullpath)
std::vector< double > met_variable_binning_