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/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  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 25 of file TopDQMHelpers.h.

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

Referenced by accept(), SiStripHitEffFromCalibTree::algoAnalyze(), HLTMonBTagMuSource::analyze(), HLTMonBTagIPSource::analyze(), L1TDTTF::analyze(), GeneralHLTOffline::analyze(), HLTrigReport::analyze(), TriggerRatesMonitor::analyze(), HLTInfo::analyze(), IsolatedGenParticles::analyze(), HLTScalers::analyze(), TopSingleLeptonDQM::analyze(), SingleTopTChannelLeptonDQM::analyze(), TopDiLeptonOfflineDQM::analyze(), CutBasedElectronID::compute_cut(), TopSingleLepton::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), TrigResRateMon::fillCountsPerPath(), Tau3MuSkim::filter(), HLTPhysicsDeclared::filter(), HLTMuonPointingFilter::filter(), HLTEventNumberFilter::filter(), Zto2lFilter::filter(), HLTHighLevel::filter(), HLTL1NumberFilter::filter(), ConfigurableAnalysis::filter(), UEDMultiLeptonFilter::filter(), PythiaFilterTTBar::filter(), LeptonRecoSkim::filter(), HLTLogMonitorFilter::filter(), TkStripMeasurementDet::filteredRecHits(), HLTJetMETValidation::getHLTResults(), HLTPrescaler::globalEndJob(), HLTEcalIsolationFilter::hltFilter(), HLTPixelIsolTrackFilter::hltFilter(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTElectronMissingHitsFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTDeDxFilter::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTJetTagWithMatching< T >::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTSummaryFilter::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), HLTPMMassFilter::hltFilter(), SiStripFedZeroSuppression::IsAValidDigi(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), TtDecayChannelSelector::operator()(), parseAlgo(), SelectionStep< Object >::select(), SelectionStepHLT< Object >::select(), SelectionStep< Object >::selectVertex(), SelectionStepHLT< Object >::selectVertex(), pat::TriggerCondition::setAccept(), pat::TriggerPath::setAccept(), pat::TriggerEvent::setAccept(), TrackEfficiencyMonitor::trackerAcceptance(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), ZeroSuppressFP420::trkFEDclusterizer(), and CastorShowerLibraryMaker::update().

27  {
28  bool passed = false;
29  const edm::TriggerNames& triggerNames = event.triggerNames(triggerTable);
30  for (unsigned int i = 0; i < triggerNames.triggerNames().size(); ++i) {
31  if (triggerNames.triggerNames()[i] == triggerPath) {
32  if (triggerTable.accept(i)) {
33  passed = true;
34  break;
35  }
36  }
37  }
38  return passed;
39 }
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 41 of file TopDQMHelpers.h.

References accept(), and j.

43  {
44  bool passed = false;
45  for (unsigned int j = 0; j < triggerPaths.size(); ++j) {
46  if (accept(event, triggerTable, triggerPaths[j])) {
47  passed = true;
48  break;
49  }
50  }
51  return passed;
52 }
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:25
int j
Definition: DBlmapReader.cc:9
static std::string const triggerPaths
Definition: EdmProvDump.cc:42