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

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

Referenced by accept(), SiStripHitEffFromCalibTree::algoAnalyze(), L1TDTTF::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), GeneralHLTOffline::analyze(), HLTrigReport::analyze(), L1TGT::analyze(), TriggerRatesMonitor::analyze(), HLTScalers::analyze(), HLTInfo::analyze(), IsolatedGenParticles::analyze(), HcalHBHEMuonAnalyzer::analyze(), TopSingleLeptonDQM::analyze(), SingleTopTChannelLeptonDQM::analyze(), TopDiLeptonOfflineDQM::analyze(), CutBasedElectronID::compute_cut(), 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(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTElectronMissingHitsFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTDeDxFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTEgammaCaloIsolFilterPairs::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(), HLTPFEnergyFractionsFilter::hltFilter(), HLTSummaryFilter::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTFiltCand::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()(), parseAlgo(), AlCaDiJetsProducer::produce(), AlCaGammaJetProducer::produce(), AlCaHBHEMuonProducer::produce(), 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().

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

References accept(), and j.

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