CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 "FWCore/MessageLogger/interface/MessageLogger.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 31 of file TopDQMHelpers.h.

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

Referenced by DTCtcp::Accept(), accept(), BPHDaughterSelect::accept(), TkStripMeasurementDet::accept(), SiStripHitEffFromCalibTree::algoAnalyze(), L1TDTTF::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), DQMHcalIsolatedBunchAlCaReco::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(), HcalIsoTrkSimAnalyzer::fillTree(), HcalIsoTrkAnalyzer::fillTree(), HLTPixelTrackFilter::filter(), HLTPhysicsDeclared::filter(), HLTPixelActivityHFSumEnergyFilter::filter(), AlCaHcalHBHEMuonFilter::filter(), AlCaHcalHEMuonFilter::filter(), AlCaHcalIsotrkFilter::filter(), HLTEventNumberFilter::filter(), PythiaFilterTTBar::filter(), HLTL1NumberFilter::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), HLTHighLevel::filter(), HLTMuonPointingFilter::filter(), ConfigurableAnalysis::filter(), AlCaLowPUHBHEMuonFilter::filter(), AlCaHEMuonFilter::filter(), AlCaHBHEMuonFilter::filter(), LeptonRecoSkim::filter(), AlCaIsoTracksFilter::filter(), HLTLogMonitorFilter::filter(), TkStripMeasurementDet::filteredRecHits(), HLTJetMETValidation::getHLTResults(), AlCaHcalIsotrkProducer::getProducts(), PrescaleEventFilter::globalEndJob(), HLTPrescaler::globalEndJob(), HLTEcalIsolationFilter::hltFilter(), HLTPixelIsolTrackFilter::hltFilter(), HLTPixelIsolTrackL1TFilter::hltFilter(), HLTEcalPixelIsolTrackFilter::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTElectronMissingHitsFilter::hltFilter(), HLTMuonL1TFilter::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTSumJetTag< T >::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTNVFilter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTPFTauIPFilter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTMuonL1TRegionalFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTDeDxFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), L1TPFTauFilter::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTMuonPFIsoFilter::hltFilter(), HLT2L1TkMuonL1TkMuonMuRefDR::hltFilter(), HLTDiJetAveEtaFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTDiJetEtaTopologyFilter< T >::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTJetEtaTopologyFilter< T >::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTPMDocaFilter::hltFilter(), L1THPSPFTauFilter::hltFilter(), L1TTkEleFilter::hltFilter(), L1TTkEmFilter::hltFilter(), L1TTkMuonFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTEgammaL1TMatchFilterRegional::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTSinglet< T >::hltFilter(), HLTAcoFilter::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTMinDPhiMETFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTPMMassFilter::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTSummaryFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTJetTagWithMatching< T >::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTElectronPFMTFilter< T >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTFiltCand::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTJetHbbFilter< T >::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), SiStripFedZeroSuppression::isAValidDigi(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), TtDecayChannelSelector::operator()(), TrigObjTnPHistColl::PathSelector::operator()(), SectorProcessorShower::process(), 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().

31  {
32  bool passed = false;
33  const edm::TriggerNames& triggerNames = event.triggerNames(triggerTable);
34  for (unsigned int i = 0; i < triggerNames.triggerNames().size(); ++i) {
35  if (triggerNames.triggerNames()[i] == triggerPath) {
36  if (triggerTable.accept(i)) {
37  passed = true;
38  break;
39  }
40  }
41  }
42  return passed;
43 }
bool accept() const
Has at least one path accepted the event?
Strings const & triggerNames() const
Definition: TriggerNames.cc:48
bool accept ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::vector< std::string > &  triggerPaths 
)
inline

Definition at line 45 of file TopDQMHelpers.h.

References accept(), and dqmiolumiharvest::j.

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