CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TopHLTDQMHelper.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/RecoCandidate/interface/RecoCandidate.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Framework/interface/EDConsumerBase.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 27 of file TopHLTDQMHelper.h.

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

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

28 {
29  bool passed=false;
30  const edm::TriggerNames& triggerNames = event.triggerNames(triggerTable);
31  for(unsigned int i=0; i<triggerNames.triggerNames().size(); ++i){
32  if(triggerNames.triggerNames()[i] == triggerPath) {
33  if(triggerTable.accept(i)){
34  passed=true;
35  break;
36  }
37  }
38  }
39  return passed;
40 }
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 acceptHLT ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::vector< std::string > &  triggerPaths 
)
inline

Definition at line 43 of file TopHLTDQMHelper.h.

References acceptHLT(), and j.

44 {
45  bool passed=false;
46  for(unsigned int j=0; j<triggerPaths.size(); ++j){
47  if(acceptHLT(event, triggerTable, triggerPaths[j])){
48  passed=true;
49  break;
50  }
51  }
52  return passed;
53 }
bool acceptHLT(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
int j
Definition: DBlmapReader.cc:9
static std::string const triggerPaths
Definition: EdmProvDump.cc:42