CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/DQM/Physics/interface/TopDQMHelpers.h File Reference

#include <string>
#include <vector>
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Common/interface/TriggerNames.h"
#include "DataFormats/Common/interface/TriggerResults.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 21 of file TopDQMHelpers.h.

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

Referenced by accept(), DTCtcp::Accept(), SiStripHitEffFromCalibTree::algoAnalyze(), TopDiLeptonOfflineDQM::analyze(), TopElectronHLTOfflineSource::analyze(), HLTrigReport::analyze(), HLTMonBTagIPSource::analyze(), HLTInfo::analyze(), TopSingleLeptonDQM::analyze(), IsolatedTracksNxN::analyze(), HLTScalers::analyze(), L1TDTTF::analyze(), HLTMonBTagMuSource::analyze(), CutBasedElectronID::compute_cut(), TopSingleLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), HLTGlobalSums< T, Tid >::filter(), HLTElectronEoverpFilterRegional::filter(), HLTEgammaEtFilterPairs::filter(), HLTSingleVertexPixelTrackFilter::filter(), HLTAcoFilter::filter(), HLT2jetGapFilter::filter(), PythiaFilterTTBar::filter(), HLTEventNumberFilter::filter(), HLTMuonL1RegionalFilter::filter(), HLTMuonIsoFilter::filter(), HLTJetVBFFilter::filter(), HLTFiltCand::filter(), HLTPMMassFilter::filter(), HLTPixlMBForAlignmentFilter::filter(), HLTHcalTowerFilter::filter(), HLTMuonL1Filter::filter(), HLTMhtHtFilter::filter(), HLTSummaryFilter::filter(), HLTElectronOneOEMinusOneOPFilterRegional::filter(), HLTEgammaCombMassFilter::filter(), HLTMuonPointingFilter::filter(), ConfigurableAnalysis::filter(), HLTTrackSeedMultiplicityFilter::filter(), HLTPhi2METFilter::filter(), HLTJetCollectionsVBFFilter::filter(), HLTEgammaL1MatchFilterPairs::filter(), HLTL1NumberFilter::filter(), HLTEcalIsolationFilter::filter(), HLTElectronPixelMatchFilter::filter(), LeptonRecoSkim::filter(), HLTEcalTowerFilter::filter(), HLTEgammaGenericFilter::filter(), HLTEgammaCaloIsolFilterPairs::filter(), HLTPixelClusterShapeFilter::filter(), HLTDoublet< T1, Tid1, T2, Tid2 >::filter(), HLT1CaloJetEnergy::filter(), HLTElectronMuonInvMassFilter::filter(), Zto2lFilter::filter(), HLTPixelActivityFilter::filter(), HLTRapGapFilter::filter(), HLTEgammaL1MatchFilterRegional::filter(), HLTEgammaEtFilter::filter(), HLTEgammaDoubleLegCombFilter::filter(), HLTPhysicsDeclared::filter(), HLTSmartSinglet< T, Tid >::filter(), HLTSinglet< T, Tid >::filter(), HLTElectronPFMTFilter::filter(), HLTJetTag::filter(), HLTPixlMBFilt::filter(), HLTLogMonitorFilter::filter(), HLTDiJetAveFilter::filter(), HLTElectronEtFilter::filter(), HLTmmkFilter::filter(), HLTPixelAsymmetryFilter::filter(), HLTMuonL1toL3TkPreFilter::filter(), HLTForwardBackwardJetsFilter::filter(), HLTHighLevel::filter(), HLTEgammaGenericQuadraticFilter::filter(), HLTEgammaDoubleEtFilter::filter(), MuonPtFilter::filter(), HLTMuonL3PreFilter::filter(), HLTNVFilter::filter(), HLTHtMhtFilter::filter(), HLTEgammaDoubleEtPhiFilter::filter(), HLTPixelIsolTrackFilter::filter(), HLTMhtFilter::filter(), HLTExclDiJetFilter::filter(), HLTMuonDimuonL3Filter::filter(), HLTElectronGenericFilter::filter(), HLTEgammaDoubleEtDeltaPhiFilter::filter(), HLTHcalSimpleRecHitFilter::filter(), HLTMuonDimuonL2Filter::filter(), HLTJetCollectionsFilter::filter(), HLTPMDocaFilter::filter(), Tau3MuSkim::filter(), HLTMuonL2PreFilter::filter(), HLTMuonPtFilter::filter(), HICTrajectoryBuilder::findCompatibleMeasurements(), HLTJetMETValidation::getHLTResults(), SiStripFedZeroSuppression::IsAValidDigi(), TtDecayChannelSelector::operator()(), EETriggerTowerTask::processDigis(), EBTriggerTowerTask::processDigis(), SelectionStep< Object >::select(), pat::TriggerCondition::setAccept(), pat::TriggerPath::setAccept(), pat::TriggerEvent::setAccept(), TrackEfficiencyMonitor::trackerAcceptance(), DQMAnalyzer::trigger(), GsfElectronDataAnalyzer::trigger(), ZeroSuppressFP420::trkFEDclusterizer(), and HICTrajectoryBuilder::updateTrajectory().

{
  bool passed=false;
  const edm::TriggerNames& triggerNames = event.triggerNames(triggerTable);
  for(unsigned int i=0; i<triggerNames.triggerNames().size(); ++i){
    if(triggerNames.triggerNames()[i] == triggerPath) {
      if(triggerTable.accept(i)){
        passed=true;
        break;
      }
    }
  }
  return passed;
}
bool accept ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::vector< std::string > &  triggerPaths 
) [inline]

Definition at line 37 of file TopDQMHelpers.h.

References accept(), and j.

{
  bool passed=false;
  for(unsigned int j=0; j<triggerPaths.size(); ++j){
    if(accept(event, triggerTable, triggerPaths[j])){
      passed=true;
      break;
    }
  }
  return passed;
}