CMS 3D CMS Logo

Classes | Functions
TopDQMHelpers.h File Reference
#include <string>
#include <vector>
#include <iostream>
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Common/interface/TriggerNames.h"
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include <DataFormats/METReco/interface/PFMET.h>
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Framework/interface/EDConsumerBase.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/PatCandidates/interface/Muon.h"
#include "DataFormats/PatCandidates/interface/Electron.h"
#include "DataFormats/PatCandidates/interface/Jet.h"
#include "DataFormats/PatCandidates/interface/MET.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "DataFormats/JetReco/interface/JetID.h"
#include "DataFormats/JetReco/interface/PFJet.h"
#include "DataFormats/JetReco/interface/CaloJet.h"
#include "DataFormats/BTauReco/interface/JetTag.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "JetMETCorrections/JetCorrector/interface/JetCorrector.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include "CommonTools/Utils/interface/StringCutObjectSelector.h"
#include "FWCore/Utilities/interface/EDGetToken.h"
#include "FWCore/Utilities/interface/InputTag.h"

Go to the source code of this file.

Classes

class  Calculate
 Helper class for the calculation of a top and a W boson mass estime. More...
 
class  Calculate_miniAOD
 
class  SelectionStep< Object >
 Templated helper class to allow a selection on a certain object collection. More...
 

Functions

bool accept (const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
 
bool accept (const edm::Event &event, const edm::TriggerResults &triggerTable, const std::vector< std::string > &triggerPaths)
 

Function Documentation

◆ accept() [1/2]

bool accept ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::string &  triggerPath 
)
inline

Definition at line 31 of file TopDQMHelpers.h.

References edm::HLTGlobalStatus::accept(), mps_fire::i, TriggerAnalyzer::passed, L1TEGammaOffline_cfi::triggerNames, and JetHT_cfg::triggerPath.

Referenced by DTCtcp::Accept(), accept(), BPHDaughterSelect::accept(), TkStripMeasurementDet::accept(), SiStripHitEffFromCalibTree::algoAnalyze(), L1TDTTF::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), L1TGT::analyze(), HLTInfo::analyze(), HLTScalers::analyze(), HcalHBHEMuonAnalyzer::analyze(), HcalHBHEMuonHighEtaAnalyzer::analyze(), HLTrigReport::analyze(), SplitVertexResolution::analyze(), IsolatedGenParticles::analyze(), SingleTopTChannelLeptonDQM_miniAOD::analyze(), TopSingleLeptonDQM_miniAOD::analyze(), TopSingleLeptonDQM::analyze(), SingleTopTChannelLeptonDQM::analyze(), TopDiLeptonOfflineDQM::analyze(), GeneralPurposeTrackAnalyzer::analyze(), DMRChecker::analyze(), HcalHBHEMuonHighEtaAnalyzer::analyzeHadron(), HcalHBHEMuonHighEtaAnalyzer::analyzeMuon(), HcalHBHEMuonHighEtaAnalyzer::analyzeTracks(), CutBasedElectronID::compute_cut(), TriggerRatesMonitor::dqmAnalyze(), trklet::TrackletCalculator::execute(), trklet::TrackletCalculatorDisplaced::execute(), trklet::TrackletProcessor::execute(), trklet::TrackletProcessorDisplaced::execute(), BPHWriteSpecificDecay::fill(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), BPHOniaToMuMuBuilder::fillRecList(), StudyCaloGen::fillTrack(), IsolatedGenParticles::fillTrack(), HcalIsoTrkSimAnalyzer::fillTree(), HcalIsoTrkAnalyzer::fillTree(), HLTPixelTrackFilter::filter(), HLTPhysicsDeclared::filter(), HLTPixelActivityHFSumEnergyFilter::filter(), AlCaHcalHBHEMuonFilter::filter(), AlCaHcalHEMuonFilter::filter(), AlCaHcalIsotrkFilter::filter(), HLTEventNumberFilter::filter(), PythiaFilterTTBar::filter(), HLTL1NumberFilter::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), HLTHighLevel::filter(), HLTMuonPointingFilter::filter(), ConfigurableAnalysis::filter(), AlCaLowPUHBHEMuonFilter::filter(), AlCaHEMuonFilter::filter(), AlCaHBHEMuonFilter::filter(), LeptonRecoSkim::filter(), AlCaIsoTracksFilter::filter(), HLTLogMonitorFilter::filter(), TkStripMeasurementDet::filteredRecHits(), HLTJetMETValidation::getHLTResults(), AlCaHcalIsotrkProducer::getProducts(), PrescaleEventFilter::globalEndJob(), HLTPrescaler::globalEndJob(), HLTEcalIsolationFilter::hltFilter(), HLTPixelIsolTrackFilter::hltFilter(), HLTPixelIsolTrackL1TFilter::hltFilter(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTElectronMissingHitsFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTMuonL1TFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTSumJetTag< T >::hltFilter(), HLTNVFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTPFTauIPFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTMuonL1TRegionalFilter::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTDeDxFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLT2L1TkMuonL1TkMuonMuRefDR::hltFilter(), L1TPFTauFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTMuonL2PreFilter::hltFilter(), L1TTkMuonFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTMuonIsoFilter::hltFilter(), L1THPSPFTauFilter::hltFilter(), L1TTkEleFilter::hltFilter(), L1TTkEmFilter::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTEgammaL1TMatchFilterRegional::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTPMMassFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTSummaryFilter::hltFilter(), HLTJetTagWithMatching< T >::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTJetHbbFilter< T >::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), SiStripFedZeroSuppression::isAValidDigi(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), TtDecayChannelSelector::operator()(), TrigObjTnPHistColl::PathSelector::operator()(), SectorProcessorShower::process(), AlCaGammaJetProducer::produce(), AlCaDiJetsProducer::produce(), AlCaHBHEMuonProducer::produce(), SelectionStep< Object >::select(), SelectionStep< Object >::selectVertex(), pat::TriggerCondition::setAccept(), pat::TriggerPath::setAccept(), pat::TriggerEvent::setAccept(), TrackEfficiencyMonitor::trackerAcceptance(), and CastorShowerLibraryMaker::update().

31  {
32  bool passed = false;
33  const edm::TriggerNames& triggerNames = event.triggerNames(triggerTable);
34  for (unsigned int i = 0; i < triggerNames.triggerNames().size(); ++i) {
35  if (triggerNames.triggerNames()[i] == triggerPath) {
36  if (triggerTable.accept(i)) {
37  passed = true;
38  break;
39  }
40  }
41  }
42  return passed;
43 }
bool accept() const
Has at least one path accepted the event?

◆ accept() [2/2]

bool accept ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::vector< std::string > &  triggerPaths 
)
inline

Definition at line 45 of file TopDQMHelpers.h.

References accept(), dqmiolumiharvest::j, TriggerAnalyzer::passed, and triggerPaths.

47  {
48  bool passed = false;
49  for (unsigned int j = 0; j < triggerPaths.size(); ++j) {
50  if (accept(event, triggerTable, triggerPaths[j])) {
51  passed = true;
52  break;
53  }
54  }
55  return passed;
56 }
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31
static std::string const triggerPaths
Definition: EdmProvDump.cc:48
Definition: event.py:1