CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
FSQ::BaseHandler Class Referenceabstract
Inheritance diagram for FSQ::BaseHandler:
FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

virtual void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, const edm::TriggerResults &triggerResults, const edm::TriggerNames &triggerNames, float weight)=0
 
 BaseHandler ()
 
 BaseHandler (const edm::ParameterSet &iConfig, triggerExpression::Data &eventCache)
 
virtual void book (DQMStore::IBooker &booker)=0
 
virtual void getAndStoreTokens (edm::ConsumesCollector &&iC)=0
 
virtual ~BaseHandler ()=default
 

Public Attributes

std::string m_dirname
 
triggerExpression::Datam_eventCache
 
std::unique_ptr< triggerExpression::Evaluatorm_expression
 
std::map< std::string, MonitorElement * > m_histos
 
edm::ParameterSet m_pset
 
std::set< std::string > m_usedPaths
 

Detailed Description

Definition at line 56 of file FSQDiJetAve.cc.

Member Typedef Documentation

◆ DQMStore

Definition at line 59 of file FSQDiJetAve.cc.

◆ MonitorElement

Definition at line 58 of file FSQDiJetAve.cc.

Constructor & Destructor Documentation

◆ BaseHandler() [1/2]

FSQ::BaseHandler::BaseHandler ( )

◆ ~BaseHandler()

virtual FSQ::BaseHandler::~BaseHandler ( )
virtualdefault

◆ BaseHandler() [2/2]

FSQ::BaseHandler::BaseHandler ( const edm::ParameterSet iConfig,
triggerExpression::Data eventCache 
)
inline

Definition at line 63 of file FSQDiJetAve.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), submitPVValidationJobs::split(), str, AlCaHLTBitMon_QueryRunRegistry::string, and patRefSel_triggerSelection_cff::triggerSelection.

64  : m_expression(triggerExpression::parse(iConfig.getParameter<std::string>("triggerSelection"))) {
65  // extract list of used paths
66  std::vector<std::string> strs;
67  std::string triggerSelection = iConfig.getParameter<std::string>("triggerSelection");
68  boost::split(strs, triggerSelection, boost::is_any_of("\t ,`!@#$%^&*()~/\\"));
69  for (auto& str : strs) {
70  if (str.find("HLT_") == 0) {
71  m_usedPaths.insert(str);
72  }
73  }
74 
75  m_eventCache = &eventCache;
76  std::string pathPartialName = iConfig.getParameter<std::string>("partialPathName");
77  m_dirname = iConfig.getUntrackedParameter("mainDQMDirname", std::string("HLT/FSQ/")) + pathPartialName + "/";
78  m_pset = iConfig;
79  };
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
Evaluator * parse(const T &text)
T getUntrackedParameter(std::string const &, T const &) const
std::set< std::string > m_usedPaths
Definition: FSQDiJetAve.cc:94
std::unique_ptr< triggerExpression::Evaluator > m_expression
Definition: FSQDiJetAve.cc:90
#define str(s)
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:95
std::string m_dirname
Definition: FSQDiJetAve.cc:92
triggerExpression::Data * m_eventCache
Definition: FSQDiJetAve.cc:91

Member Function Documentation

◆ analyze()

virtual void FSQ::BaseHandler::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const HLTConfigProvider hltConfig,
const trigger::TriggerEvent trgEvent,
const edm::TriggerResults triggerResults,
const edm::TriggerNames triggerNames,
float  weight 
)
pure virtual

◆ book()

virtual void FSQ::BaseHandler::book ( DQMStore::IBooker booker)
pure virtual

◆ getAndStoreTokens()

virtual void FSQ::BaseHandler::getAndStoreTokens ( edm::ConsumesCollector &&  iC)
pure virtual

Member Data Documentation

◆ m_dirname

std::string FSQ::BaseHandler::m_dirname

Definition at line 92 of file FSQDiJetAve.cc.

◆ m_eventCache

triggerExpression::Data* FSQ::BaseHandler::m_eventCache

Definition at line 91 of file FSQDiJetAve.cc.

◆ m_expression

std::unique_ptr<triggerExpression::Evaluator> FSQ::BaseHandler::m_expression

Definition at line 90 of file FSQDiJetAve.cc.

◆ m_histos

std::map<std::string, MonitorElement*> FSQ::BaseHandler::m_histos

Definition at line 93 of file FSQDiJetAve.cc.

◆ m_pset

edm::ParameterSet FSQ::BaseHandler::m_pset

Definition at line 95 of file FSQDiJetAve.cc.

◆ m_usedPaths

std::set<std::string> FSQ::BaseHandler::m_usedPaths

Definition at line 94 of file FSQDiJetAve.cc.