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 "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/ValueMap.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "JetMETCorrections/Objects/interface/JetCorrector.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include "CommonTools/Utils/interface/StringCutObjectSelector.h"
#include "JetMETCorrections/Objects/interface/JetCorrectionsRecord.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

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

Definition at line 30 of file TopDQMHelpers.h.

References edm::HLTGlobalStatus::accept(), mps_fire::i, TriggerAnalyzer::passed, and edm::TriggerNames::triggerNames().

Referenced by DTCtcp::Accept(), accept(), BPHRecoSelect::accept(), TkStripMeasurementDet::accept(), SiStripHitEffFromCalibTree::algoAnalyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), BPHHistoSpecificDecay::analyze(), L1TDTTF::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), GeneralHLTOffline::analyze(), HLTrigReport::analyze(), L1TGT::analyze(), HLTInfo::analyze(), HLTScalers::analyze(), HcalHBHEMuonAnalyzer::analyze(), IsolatedGenParticles::analyze(), TopSingleLeptonDQM_miniAOD::analyze(), SingleTopTChannelLeptonDQM_miniAOD::analyze(), TopSingleLeptonDQM::analyze(), SingleTopTChannelLeptonDQM::analyze(), TopDiLeptonOfflineDQM::analyze(), BPHPlusMinusCandidate::build(), CutBasedElectronID::compute_cut(), DDSpecificsHasNamedValueFilter::DDSpecificsHasNamedValueFilter(), DDSpecificsMatchesValueFilter::DDSpecificsMatchesValueFilter(), TopSingleLepton_miniAOD::MonitorEnsemble::fill(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), HcalIsoTrkAnalyzer::fillTree(), HLTPixelTrackFilter::filter(), Tau3MuSkim::filter(), HLTPhysicsDeclared::filter(), HLTPixelActivityHFSumEnergyFilter::filter(), HLTMuonPointingFilter::filter(), HLTEventNumberFilter::filter(), Zto2lFilter::filter(), HLTL1NumberFilter::filter(), HLTHighLevel::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), ConfigurableAnalysis::filter(), UEDMultiLeptonFilter::filter(), AlCaHBHEMuonFilter::filter(), PythiaFilterTTBar::filter(), LeptonRecoSkim::filter(), AlCaIsoTracksFilter::filter(), HLTLogMonitorFilter::filter(), TkStripMeasurementDet::filteredRecHits(), HLTJetMETValidation::getHLTResults(), PrescaleEventFilter::globalEndJob(), HLTPrescaler::globalEndJob(), HLTEcalIsolationFilter::hltFilter(), HLTPixelIsolTrackFilter::hltFilter(), HLTPixelIsolTrackL1TFilter::hltFilter(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTElectronMissingHitsFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTMuonL1TFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTMuonL1TRegionalFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTDeDxFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTMhtFilter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTSinglet< T >::hltFilter(), HLTEgammaL1TMatchFilterRegional::hltFilter(), HLTAcoFilter::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTJetTagWithMatching< T >::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTSummaryFilter::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTJetHbbFilter< T >::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), HLTPMMassFilter::hltFilter(), SiStripFedZeroSuppression::isAValidDigi(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), TriggerHelper::off(), TtDecayChannelSelector::operator()(), TrigObjTnPHistColl::PathSelector::operator()(), AlCaDiJetsProducer::produce(), AlCaGammaJetProducer::produce(), AlCaHBHEMuonProducer::produce(), SelectionStepHLT< Object >::select(), SelectionStep< Object >::select(), SelectionStepHLT< Object >::selectVertex(), SelectionStep< Object >::selectVertex(), pat::TriggerCondition::setAccept(), pat::TriggerPath::setAccept(), pat::TriggerEvent::setAccept(), TrackEfficiencyMonitor::trackerAcceptance(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), ZeroSuppressFP420::trkFEDclusterizer(), CastorShowerLibraryMaker::update(), and BPHHistoSpecificDecay::CandidateSelect::~CandidateSelect().

32  {
33  bool passed = false;
34  const edm::TriggerNames& triggerNames = event.triggerNames(triggerTable);
35  for (unsigned int i = 0; i < triggerNames.triggerNames().size(); ++i) {
36  if (triggerNames.triggerNames()[i] == triggerPath) {
37  if (triggerTable.accept(i)) {
38  passed = true;
39  break;
40  }
41  }
42  }
43  return passed;
44 }
bool accept() const
Has at least one path accepted the event?
Strings const & triggerNames() const
Definition: TriggerNames.cc:24
bool accept ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::vector< std::string > &  triggerPaths 
)
inline

Definition at line 46 of file TopDQMHelpers.h.

References accept(), and TriggerAnalyzer::passed.

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