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

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

References accept(), and j.

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