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

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

Referenced by accept(), SiStripHitEffFromCalibTree::algoAnalyze(), HLTMonBTagIPSource::analyze(), HLTMonBTagMuSource::analyze(), TopElectronHLTOfflineSource::analyze(), L1TDTTF::analyze(), HLTrigReport::analyze(), HLTInfo::analyze(), IsolatedGenParticles::analyze(), HLTScalers::analyze(), SingleTopTChannelLeptonDQM::analyze(), TopSingleLeptonDQM::analyze(), TopDiLeptonOfflineDQM::analyze(), CutBasedElectronID::compute_cut(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopSingleLepton::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(), GCC11_FINAL< T, TOPO >::filteredRecHits(), HLTJetMETValidation::getHLTResults(), HLTPrescaler::globalEndJob(), HLTEcalIsolationFilter::hltFilter(), HLTPixelIsolTrackFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTElectronMissingHitsFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTEgammaGenericFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTDeDxFilter::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTMhtFilter::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTMhtHtFilter< T >::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTSummaryFilter::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTElectronPFMTFilter::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), HLTPMMassFilter::hltFilter(), SiStripFedZeroSuppression::IsAValidDigi(), TtDecayChannelSelector::operator()(), EETriggerTowerTask::processDigis(), EBTriggerTowerTask::processDigis(), 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 42 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:26
int j
Definition: DBlmapReader.cc:9
static std::string const triggerPaths
Definition: EdmProvDump.cc:42