CMS 3D CMS Logo

Classes | Functions
TopHLTOfflineDQMHelper.h File Reference
#include <string>
#include <vector>
#include "TString.h"
#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 "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 >
 
class  SelectionStepHLTBase
 

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 26 of file TopHLTOfflineDQMHelper.h.

References edm::HLTGlobalStatus::accept(), mps_fire::i, dataset::name, TriggerAnalyzer::passed, and edm::TriggerNames::triggerNames().

Referenced by acceptHLT(), TopSingleLeptonHLTOfflineDQM::analyze(), TopDiLeptonHLTOfflineDQM::analyze(), HLTOfflineDQMTopSingleLepton::MonitorSingleLepton::fill(), and HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill().

27 {
28  bool passed=false;
29  const edm::TriggerNames& triggerNames = event.triggerNames(triggerTable);
30  for(unsigned int i=0; i<triggerNames.triggerNames().size(); ++i){
31  TString name = triggerNames.triggerNames()[i].c_str();
32  //std::cout << name << " " << triggerTable.accept(i) << std::endl;
33  if(name.Contains(TString(triggerPath.c_str()), TString::kIgnoreCase)) {
34  if(triggerTable.accept(i)){
35  passed=true;
36  break;
37  }
38  }
39  }
40  return passed;
41 }
bool accept() const
Has at least one path accepted the event?
Strings const & triggerNames() const
Definition: TriggerNames.cc:20
bool acceptHLT ( const edm::Event event,
const edm::TriggerResults triggerTable,
const std::vector< std::string > &  triggerPaths 
)
inline

Definition at line 44 of file TopHLTOfflineDQMHelper.h.

References acceptHLT(), and TriggerAnalyzer::passed.

45 {
46  bool passed=false;
47  for(const auto & triggerPath : triggerPaths){
48  if(acceptHLT(event, triggerTable, triggerPath)){
49  passed=true;
50  break;
51  }
52  }
53  return passed;
54 }
bool acceptHLT(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
static std::string const triggerPaths
Definition: EdmProvDump.cc:46