CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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(), i, and edm::TriggerNames::triggerNames().

Referenced by DTCtcp::Accept(), accept(), SiStripHitEffFromCalibTree::algoAnalyze(), L1TDTTF::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), GeneralHLTOffline::analyze(), HLTrigReport::analyze(), L1TGT::analyze(), TriggerRatesMonitor::analyze(), HcalHBHEMuonAnalyzer::analyze(), HLTScalers::analyze(), HLTInfo::analyze(), IsolatedGenParticles::analyze(), TopSingleLeptonDQM_miniAOD::analyze(), SingleTopTChannelLeptonDQM_miniAOD::analyze(), TopSingleLeptonDQM::analyze(), SingleTopTChannelLeptonDQM::analyze(), TopDiLeptonOfflineDQM::analyze(), CutBasedElectronID::compute_cut(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), Tau3MuSkim::filter(), HLTPhysicsDeclared::filter(), HLTPixelActivityHFSumEnergyFilter::filter(), HLTMuonPointingFilter::filter(), Zto2lFilter::filter(), HLTEventNumberFilter::filter(), HLTHighLevel::filter(), HLTL1NumberFilter::filter(), ConfigurableAnalysis::filter(), UEDMultiLeptonFilter::filter(), AlCaHBHEMuonFilter::filter(), PythiaFilterTTBar::filter(), LeptonRecoSkim::filter(), AlCaIsoTracksFilter::filter(), HLTLogMonitorFilter::filter(), TkStripMeasurementDet::filteredRecHits(), HLTJetMETValidation::getHLTResults(), HLTPrescaler::globalEndJob(), HLTEcalIsolationFilter::hltFilter(), HLTPixelIsolTrackFilter::hltFilter(), HLTPixelIsolTrackL1TFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTElectronMissingHitsFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTMuonL1TFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTMuonL1TRegionalFilter::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTDeDxFilter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTEgammaL1TMatchFilterRegional::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTJetTagWithMatching< T >::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTSummaryFilter::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTJetHbbFilter< T >::hltFilter(), HLTmmkFilter::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), HLTPMMassFilter::hltFilter(), SiStripFedZeroSuppression::IsAValidDigi(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), TtDecayChannelSelector::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(), and CastorShowerLibraryMaker::update().

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 }
int i
Definition: DBlmapReader.cc:9
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 j.

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
int j
Definition: DBlmapReader.cc:9
static std::string const triggerPaths
Definition: EdmProvDump.cc:42