CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/HLTriggerOffline/Top/interface/TopHLTDQMHelper.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/RecoCandidate/interface/RecoCandidate.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "DataFormats/METReco/interface/CaloMET.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  CalculateHLT
class  SelectionStepHLT< Object >

Functions

bool acceptHLT (const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
bool acceptHLT (const edm::Event &event, const edm::TriggerResults &triggerTable, const std::vector< std::string > &triggerPaths)

Function Documentation

bool acceptHLT ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::string &  triggerPath 
) [inline]

Definition at line 23 of file TopHLTDQMHelper.h.

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

Referenced by acceptHLT(), TopHLTDiLeptonOfflineDQM::analyze(), TopHLTSingleLeptonDQM::analyze(), EfficiencyHandler::Fill(), and TopHLTSingleLepton::MonitorEnsemble::fill().

{
  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 acceptHLT ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::vector< std::string > &  triggerPaths 
) [inline]

Definition at line 39 of file TopHLTDQMHelper.h.

References acceptHLT(), and j.

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