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(), 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(), HLTDeDxFilter::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLT2L1TkMuonL1TkMuonMuRefDR::hltFilter(), L1TPFTauFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), L1TTkMuonFilter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonIsoFilter::hltFilter(), L1THPSPFTauFilter::hltFilter(), L1TTkEleFilter::hltFilter(), L1TTkEmFilter::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTEgammaL1TMatchFilterRegional::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTJetTag< T >::hltFilter(), HLTPMMassFilter::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTSummaryFilter::hltFilter(), HLTJetTagWithMatching< T >::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTJetHbbFilter< T >::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::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