CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_3/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/VertexReco/interface/Vertex.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 22 of file TopDQMHelpers.h.

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

Referenced by accept(), DTCtcp::Accept(), SiStripHitEffFromCalibTree::algoAnalyze(), IsolatedGenParticles::analyze(), TopDiLeptonOfflineDQM::analyze(), HLTOfflineReproducibility::analyze(), TopElectronHLTOfflineSource::analyze(), HLTrigReport::analyze(), HLTMonBTagIPSource::analyze(), HLTInfo::analyze(), TopSingleLeptonDQM::analyze(), HLTScalers::analyze(), L1TDTTF::analyze(), HLTMonBTagMuSource::analyze(), CutBasedElectronID::compute_cut(), TopSingleLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), TrigResRateMon::fillCountsPerPath(), PythiaFilterTTBar::filter(), ConfigurableAnalysis::filter(), HLTL1NumberFilter::filter(), LeptonRecoSkim::filter(), Zto2lFilter::filter(), UEDMultiLeptonFilter::filter(), HLTPhysicsDeclared::filter(), HLTLogMonitorFilter::filter(), HLTHighLevel::filter(), Tau3MuSkim::filter(), HICTrajectoryBuilder::findCompatibleMeasurements(), HLTJetMETValidation::getHLTResults(), HLTMuonPointingFilter::hltFilter(), HLTDeDxFilter::hltFilter(), HLTPixlMBFilt::hltFilter(), HLTPixelActivityFilter::hltFilter(), HLTEcalTowerFilter::hltFilter(), HLTEcalIsolationFilter::hltFilter(), HLTMuonIsoFilter::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), HLTSmartSinglet< T >::hltFilter(), HLTTrackSeedMultiplicityFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTMonoJetFilter< T >::hltFilter(), HLTElectronEoverpFilterRegional::hltFilter(), HLTEgammaL1MatchFilterPairs::hltFilter(), HLTEgammaDoubleLegCombFilter::hltFilter(), HLTHcalTowerFilter::hltFilter(), HLTHcalSimpleRecHitFilter::hltFilter(), HLTPFEnergyFractionsFilter::hltFilter(), HLTExclDiJetFilter< T >::hltFilter(), HLTFiltCand::hltFilter(), HLTEgammaEtFilterPairs::hltFilter(), HLTEgammaDoubleEtFilter::hltFilter(), HLTEgammaAllCombMassFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), HLTNVFilter::hltFilter(), HLTJetCollectionsFilter< jetType >::hltFilter(), HLTEgammaCaloIsolFilterPairs::hltFilter(), HLTPixelIsolTrackFilter::hltFilter(), HLTJetVBFFilter< T >::hltFilter(), HLTDiJetAveFilter< T >::hltFilter(), HLTmmkFilter::hltFilter(), HLTPixlMBForAlignmentFilter::hltFilter(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTPMMassFilter::hltFilter(), HLTElectronPixelMatchFilter::hltFilter(), HLTElectronEtFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTMhtFilter::hltFilter(), HLTHtMhtFilter::hltFilter(), HLTElectronPFMTFilter::hltFilter(), HLTEgammaL1MatchFilterRegional::hltFilter(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTEgammaDoubleEtPhiFilter::hltFilter(), HLTEventNumberFilter::hltFilter(), HLTJetCollectionsVBFFilter< T >::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTEgammaDoubleEtDeltaPhiFilter::hltFilter(), HLTJetTag< T >::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLT2jetGapFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTRapGapFilter::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTSingleVertexPixelTrackFilter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTForwardBackwardJetsFilter< T >::hltFilter(), HLTPMDocaFilter::hltFilter(), HLTEgammaEtFilter::hltFilter(), HLTPixelAsymmetryFilter::hltFilter(), HLTAcoFilter::hltFilter(), HLTSinglet< T >::hltFilter(), HLTDisplacedEgammaFilter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HLTAlphaTFilter< T >::hltFilter(), HLTSummaryFilter::hltFilter(), HLTElectronMuonInvMassFilter::hltFilter(), HLTEgammaCombMassFilter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTGlobalSums< T >::hltFilter(), HLTElectronOneOEMinusOneOPFilterRegional::hltFilter(), HLTEgammaGenericFilter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTPhi2METFilter::hltFilter(), HLTmmkkFilter::hltFilter(), SiStripFedZeroSuppression::IsAValidDigi(), TtDecayChannelSelector::operator()(), EETriggerTowerTask::processDigis(), EBTriggerTowerTask::processDigis(), SelectionStep< Object >::select(), SelectionStep< Object >::selectVertex(), pat::TriggerCondition::setAccept(), pat::TriggerPath::setAccept(), pat::TriggerEvent::setAccept(), TrackEfficiencyMonitor::trackerAcceptance(), DQMAnalyzer::trigger(), GsfElectronDataAnalyzer::trigger(), ZeroSuppressFP420::trkFEDclusterizer(), CastorShowerLibraryMaker::update(), 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 38 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;
}