|
 |
|
| LepHTMonitor (const edm::ParameterSet &ps) |
|
| ~LepHTMonitor () override throw () |
|
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) final |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
void | beginStream (edm::StreamID id) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual bool | getCanSaveByLumi () |
|
| EDProducer ()=default |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbins, const double xmin, const double xmax, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const double ymin, const double ymax, const bool bookDen=true) |
|
void | bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const uint nbinsY, const double ymin, const double ymax, const bool bookDen=true) |
|
void | setMETitle (ObjME &me, const std::string &titleX, const std::string &titleY) |
|
| TriggerDQMBase ()=default |
|
virtual | ~TriggerDQMBase ()=default |
|
Definition at line 35 of file LepHTMonitor.cc.
◆ DQMStore
◆ MonitorElement
◆ LepHTMonitor()
◆ ~LepHTMonitor()
LepHTMonitor::~LepHTMonitor |
( |
| ) |
|
throw | ( | |
| ) | | |
|
override |
◆ analyze()
Reimplemented from DQMEDAnalyzer.
Definition at line 415 of file LepHTMonitor.cc.
423 bool hasFired =
false;
424 bool hasFiredAuxiliary =
false;
425 bool hasFiredLeptonAuxiliary =
false;
427 hasFiredLeptonAuxiliary =
true;
429 hasFiredAuxiliary =
true;
433 if (!(hasFiredAuxiliary || hasFiredLeptonAuxiliary))
450 if (!ele_id_decisions.
isValid()) {
530 double lep_max_pt = -1.0;
533 double trailing_ele_eta = 0;
534 double trailing_ele_phi = 0;
535 double trailing_mu_eta = 0;
536 double trailing_mu_phi = 0;
537 double min_ele_pt = -1.0;
538 double min_mu_pt = -1.0;
548 bool pass_id = (*ele_id_decisions)[el];
566 if (
electron.pt() < min_ele_pt || min_ele_pt < 0) {
588 if (
muon.pt() > lep_max_pt) {
589 lep_max_pt =
muon.pt();
590 lep_eta =
muon.eta();
591 lep_phi =
muon.phi();
593 if (
muon.pt() < min_mu_pt || min_mu_pt < 0) {
594 min_mu_pt =
muon.pt();
595 trailing_mu_eta =
muon.eta();
596 trailing_mu_phi =
muon.phi();
605 float lep_pt = lep_max_pt;
610 lep_eta = trailing_mu_eta;
611 lep_phi = trailing_mu_phi;
615 lep_eta = trailing_ele_eta;
616 lep_phi = trailing_ele_phi;
619 if (min_ele_pt < min_mu_pt) {
621 lep_eta = trailing_ele_eta;
622 lep_phi = trailing_ele_phi;
625 lep_eta = trailing_mu_eta;
626 lep_phi = trailing_mu_phi;
634 if (hasFiredLeptonAuxiliary || !
e.isRealData()) {
669 if (hasFiredAuxiliary || !
e.isRealData()) {
670 if (nleps_cut && lep_plateau) {
References funct::abs(), align::BeamSpot, den_HT_genTriggerEventFlag_, den_lep_genTriggerEventFlag_, MillePedeFileConverter_cfg::e, metsig::electron, dqm::impl::MonitorElement::Fill(), h_lepEtaPhiTurnOn_den_, h_lepEtaPhiTurnOn_num_, h_lepEtaTurnOn_den_, h_lepEtaTurnOn_num_, h_lepPhiTurnOn_den_, h_lepPhiTurnOn_num_, h_lepPtTurnOn_den_, h_lepPtTurnOn_num_, h_NPVTurnOn_den_, h_NPVTurnOn_num_, h_pfHTTurnOn_den_, h_pfHTTurnOn_num_, hltPathsAreValid_, htbins_, htCut_, edm::HandleBase::isValid(), jetEtaCut_, jetPtCut_, edm::InputTag::label(), lep_counting_threshold_, lep_d0_cut_b_, lep_d0_cut_e_, lep_dz_cut_b_, lep_dz_cut_e_, lep_eta_cut_, lep_iso_cut_, lep_pt_plateau_, metCut_, muonIDlevel_, LepHTMonitor_cff::nels, nelsCut_, LepHTMonitor_cff::nmus, nmusCut_, num_genTriggerEventFlag_, ExoticaDQM_cfi::pfJetCollection, pfMETBenchmark_cfi::pfMET, B2GDQM_cfi::pfMETCollection, ptbins_, requireValidHLTPaths_, theBeamSpot_, theBeamSpotTag_, theConversionCollection_, theConversionCollectionTag_, theElectronCollection_, theElectronTag_, theElectronVIDMap_, theElectronVIDTag_, theMuonCollection_, theMuonTag_, thePfJetCollection_, thePfJetTag_, thePfMETCollection_, thePfMETTag_, theVertexCollection_, and theVertexCollectionTag_.
◆ bookHistograms()
Implements DQMEDAnalyzer.
Definition at line 313 of file LepHTMonitor.cc.
353 if (is_mu && !is_ele) {
356 }
else if (is_ele && !is_mu) {
362 vector<float> f_ptbins;
364 f_ptbins.push_back(static_cast<float>(ptbin));
365 vector<float> f_htbins;
367 f_htbins.push_back(static_cast<float>(htbin));
371 ibooker.
book1D(
"pfHTTurnOn_num",
"Numerator;Offline H_{T} [GeV];", f_htbins.size() - 1, f_htbins.data());
373 ibooker.
book1D(
"pfHTTurnOn_den",
"Denominator;Offline H_{T} [GeV];", f_htbins.size() - 1, f_htbins.data());
376 (
"Numerator;Offline " + lepton +
" p_{T} [GeV];").c_str(),
380 (
"Denominator;Offline " + lepton +
" p_{T} [GeV];").c_str(),
393 "Numerator;Offline lepton #eta;Offline lepton #phi;",
401 "Denominator;Offline lepton #eta;Offline lepton #phi;",
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::NavigatorBase::cd(), den_HT_genTriggerEventFlag_, den_lep_genTriggerEventFlag_, etabins_max_, etabins_min_, folderName_, h_lepEtaPhiTurnOn_den_, h_lepEtaPhiTurnOn_num_, h_lepEtaTurnOn_den_, h_lepEtaTurnOn_num_, h_lepPhiTurnOn_den_, h_lepPhiTurnOn_num_, h_lepPtTurnOn_den_, h_lepPtTurnOn_num_, h_NPVTurnOn_den_, h_NPVTurnOn_num_, h_pfHTTurnOn_den_, h_pfHTTurnOn_num_, hltPathsAreValid_, htbins_, edm::InputTag::label(), nbins_eta_, nbins_npv_, nbins_phi_, npvbins_max_, npvbins_min_, num_genTriggerEventFlag_, phibins_max_, phibins_min_, ptbins_, requireValidHLTPaths_, dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, theElectronTag_, and theMuonTag_.
◆ den_HT_genTriggerEventFlag_
◆ den_lep_genTriggerEventFlag_
◆ etabins_max_
float LepHTMonitor::etabins_max_ |
|
private |
◆ etabins_min_
float LepHTMonitor::etabins_min_ |
|
private |
◆ folderName_
const std::string LepHTMonitor::folderName_ |
|
private |
◆ h_lepEtaPhiTurnOn_den_
◆ h_lepEtaPhiTurnOn_num_
◆ h_lepEtaTurnOn_den_
◆ h_lepEtaTurnOn_num_
◆ h_lepPhiTurnOn_den_
◆ h_lepPhiTurnOn_num_
◆ h_lepPtTurnOn_den_
◆ h_lepPtTurnOn_num_
◆ h_NPVTurnOn_den_
◆ h_NPVTurnOn_num_
◆ h_pfHTTurnOn_den_
◆ h_pfHTTurnOn_num_
◆ hltPathsAreValid_
bool LepHTMonitor::hltPathsAreValid_ |
|
private |
◆ htbins_
std::vector<double> LepHTMonitor::htbins_ |
|
private |
◆ htCut_
double LepHTMonitor::htCut_ |
|
private |
◆ jetEtaCut_
double LepHTMonitor::jetEtaCut_ |
|
private |
◆ jetPtCut_
double LepHTMonitor::jetPtCut_ |
|
private |
◆ lep_counting_threshold_
double LepHTMonitor::lep_counting_threshold_ |
|
private |
◆ lep_d0_cut_b_
double LepHTMonitor::lep_d0_cut_b_ |
|
private |
◆ lep_d0_cut_e_
double LepHTMonitor::lep_d0_cut_e_ |
|
private |
◆ lep_dz_cut_b_
double LepHTMonitor::lep_dz_cut_b_ |
|
private |
◆ lep_dz_cut_e_
double LepHTMonitor::lep_dz_cut_e_ |
|
private |
◆ lep_eta_cut_
double LepHTMonitor::lep_eta_cut_ |
|
private |
◆ lep_iso_cut_
double LepHTMonitor::lep_iso_cut_ |
|
private |
◆ lep_pt_plateau_
double LepHTMonitor::lep_pt_plateau_ |
|
private |
◆ metCut_
double LepHTMonitor::metCut_ |
|
private |
◆ muonIDlevel_
int LepHTMonitor::muonIDlevel_ |
|
private |
◆ nbins_eta_
int LepHTMonitor::nbins_eta_ |
|
private |
◆ nbins_npv_
int LepHTMonitor::nbins_npv_ |
|
private |
◆ nbins_phi_
int LepHTMonitor::nbins_phi_ |
|
private |
◆ nelsCut_
double LepHTMonitor::nelsCut_ |
|
private |
◆ nmusCut_
double LepHTMonitor::nmusCut_ |
|
private |
◆ npvbins_max_
float LepHTMonitor::npvbins_max_ |
|
private |
◆ npvbins_min_
float LepHTMonitor::npvbins_min_ |
|
private |
◆ num_genTriggerEventFlag_
◆ phibins_max_
float LepHTMonitor::phibins_max_ |
|
private |
◆ phibins_min_
float LepHTMonitor::phibins_min_ |
|
private |
◆ ptbins_
std::vector<double> LepHTMonitor::ptbins_ |
|
private |
◆ requireValidHLTPaths_
const bool LepHTMonitor::requireValidHLTPaths_ |
|
private |
◆ theBeamSpot_
◆ theBeamSpotTag_
◆ theConversionCollection_
◆ theConversionCollectionTag_
◆ theElectronCollection_
◆ theElectronTag_
◆ theElectronVIDMap_
◆ theElectronVIDTag_
◆ theJetTagCollection_
◆ theJetTagTag_
◆ theMuonCollection_
◆ theMuonTag_
◆ thePfJetCollection_
◆ thePfJetTag_
◆ thePfMETCollection_
◆ thePfMETTag_
◆ theVertexCollection_
◆ theVertexCollectionTag_
edm::EDGetTokenT< reco::JetTagCollection > theJetTagCollection_
MonitorElement * h_NPVTurnOn_num_
std::vector< Vertex > VertexCollection
collection of Vertex objects
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * h_pfHTTurnOn_den_
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
const std::string folderName_
MonitorElement * h_NPVTurnOn_den_
std::unique_ptr< GenericTriggerEventFlag > den_HT_genTriggerEventFlag_
Log< level::Warning, false > LogWarning
edm::InputTag thePfJetTag_
std::vector< double > ptbins_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
MonitorElement * h_lepPtTurnOn_num_
MonitorElement * h_lepEtaPhiTurnOn_num_
edm::InputTag theVertexCollectionTag_
edm::EDGetTokenT< reco::BeamSpot > theBeamSpot_
std::vector< Muon > MuonCollection
collection of Muon objects
edm::EDGetTokenT< reco::VertexCollection > theVertexCollection_
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
std::unique_ptr< GenericTriggerEventFlag > den_lep_genTriggerEventFlag_
edm::InputTag theElectronTag_
MonitorElement * h_lepPhiTurnOn_den_
edm::EDGetTokenT< reco::ConversionCollection > theConversionCollection_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
MonitorElement * h_pfHTTurnOn_num_
double lep_counting_threshold_
edm::InputTag theMuonTag_
MonitorElement * h_lepEtaTurnOn_den_
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
MonitorElement * h_lepPtTurnOn_den_
edm::InputTag thePfMETTag_
std::vector< Electron > ElectronCollection
collectin of Electron objects
edm::InputTag theJetTagTag_
nels
1: loose, 2: medium, 3: tight
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
std::vector< double > htbins_
edm::EDGetTokenT< edm::View< reco::GsfElectron > > theElectronCollection_
MonitorElement * h_lepEtaTurnOn_num_
T getParameter(std::string const &) const
MonitorElement * h_lepEtaPhiTurnOn_den_
edm::InputTag theBeamSpotTag_
MonitorElement * h_lepPhiTurnOn_num_
Abs< T >::type abs(const T &t)
edm::InputTag theElectronVIDTag_
edm::InputTag theConversionCollectionTag_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
edm::EDGetTokenT< edm::ValueMap< bool > > theElectronVIDMap_
const bool requireValidHLTPaths_