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 "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(), TopHLTSingleLeptonDQM::analyze(), TopHLTDiLeptonOfflineDQM::analyze(), TopHLTSingleLepton::MonitorEnsemble::fill(), EfficiencyHandler::Fill(), and TopDiLeptonOffline::MonitorEnsemble::fill().

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

References acceptHLT(), and j.

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