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(), SiStripHitResolFromCalibTree::algoAnalyze(), SiStripHitEffFromCalibTree::algoAnalyze(), L1TDTTF::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), L1TGT::analyze(), HLTInfo::analyze(), HLTScalers::analyze(), HcalHBHEMuonAnalyzer::analyze(), HcalHBHEMuonHighEtaAnalyzer::analyze(), MtdTracksValidation::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(), 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(), AlCaIsolatedBunchSelector::filter(), HLTHighLevel::filter(), HLTMuonPointingFilter::filter(), ConfigurableAnalysis::filter(), AlCaHEMuonFilter::filter(), AlCaHBHEMuonFilter::filter(), AlCaLowPUHBHEMuonFilter::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(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTSumJetTag< T >::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTPFTauIPFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTMuonL1TRegionalFilter::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTDeDxFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLT2L1TkMuonL1TkMuonMuRefDR::hltFilter(), L1TPFTauFilter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), L1TTkMuonFilter::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonIsoFilter::hltFilter(), L1TTkEmFilter::hltFilter(), HLTPMDocaFilter::hltFilter(), L1TTkEleFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), L1THPSPFTauFilter::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTAcoFilter::hltFilter(), HLTEgammaL1TMatchFilterRegional::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTPMMassFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTSummaryFilter::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