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

◆ accept() [1/2]

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

Definition at line 30 of file TopDQMHelpers.h.

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

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

Referenced by DTCtcp::Accept(), accept(), BPHDaughterSelect::accept(), TkStripMeasurementDet::accept(), SiStripHitEffFromCalibTree::algoAnalyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), L1TDTTF::analyze(), DQMHcalIsoTrackAlCaReco::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(), GeneralPurposeTrackAnalyzer::analyze(), TopDiLeptonOfflineDQM::analyze(), DMRChecker::analyze(), HcalHBHEMuonHighEtaAnalyzer::analyzeHadron(), HcalHBHEMuonHighEtaAnalyzer::analyzeMuon(), HcalHBHEMuonHighEtaAnalyzer::analyzeTracks(), BPHPlusMinusCandidate::build(), CutBasedElectronID::compute_cut(), trklet::TrackletCalculator::execute(), trklet::TrackletCalculatorDisplaced::execute(), trklet::TrackletProcessor::execute(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), StudyCaloGen::fillTrack(), IsolatedGenParticles::fillTrack(), HcalIsoTrkAnalyzer::fillTree(), HLTPixelTrackFilter::filter(), Tau3MuSkim::filter(), HLTPhysicsDeclared::filter(), HLTPixelActivityHFSumEnergyFilter::filter(), HLTEventNumberFilter::filter(), PythiaFilterTTBar::filter(), HLTL1NumberFilter::filter(), HLTHighLevel::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), HLTMuonPointingFilter::filter(), ConfigurableAnalysis::filter(), AlCaHBHEMuonFilter::filter(), AlCaLowPUHBHEMuonFilter::filter(), AlCaHEMuonFilter::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(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTMuonL1TFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTDeDxFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTMuonL1TRegionalFilter::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTMhtFilter::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), HLTEgammaL1TMatchFilterRegional::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTJetTagWithMatching< T >::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTSummaryFilter::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTJetHbbFilter< T >::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), HLTPMMassFilter::hltFilter(), SiStripFedZeroSuppression::isAValidDigi(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), TtDecayChannelSelector::operator()(), TrigObjTnPHistColl::PathSelector::operator()(), AlCaGammaJetProducer::produce(), AlCaDiJetsProducer::produce(), AlCaHBHEMuonProducer::produce(), SelectionStep< Object >::select(), SelectionStep< Object >::selectVertex(), pat::TriggerCondition::setAccept(), pat::TriggerPath::setAccept(), pat::TriggerEvent::setAccept(), TrackEfficiencyMonitor::trackerAcceptance(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), ZeroSuppressFP420::trkFEDclusterizer(), and CastorShowerLibraryMaker::update().

◆ accept() [2/2]

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

Definition at line 44 of file TopDQMHelpers.h.

46  {
47  bool passed = false;
48  for (unsigned int j = 0; j < triggerPaths.size(); ++j) {
49  if (accept(event, triggerTable, triggerPaths[j])) {
50  passed = true;
51  break;
52  }
53  }
54  return passed;
55 }

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

mps_fire.i
i
Definition: mps_fire.py:428
eventshapeDQM_cfi.triggerPath
triggerPath
Definition: eventshapeDQM_cfi.py:7
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
L1TEGammaOffline_cfi.triggerNames
triggerNames
Definition: L1TEGammaOffline_cfi.py:40
triggerPaths
static const std::string triggerPaths
Definition: EdmProvDump.cc:46
edm::TriggerNames
Definition: TriggerNames.h:55
TriggerAnalyzer.passed
passed
Definition: TriggerAnalyzer.py:62
edm::HLTGlobalStatus::accept
bool accept() const
Has at least one path accepted the event?
Definition: HLTGlobalStatus.h:49
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
event
Definition: event.py:1