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 61 of file FSQDiJetAve.cc.

Member Typedef Documentation

◆ DQMStore

Definition at line 64 of file FSQDiJetAve.cc.

◆ MonitorElement

Definition at line 63 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 68 of file FSQDiJetAve.cc.

69  : m_expression(triggerExpression::parse(iConfig.getParameter<std::string>("triggerSelection"))) {
70  // extract list of used paths
71  std::vector<std::string> strs;
72  std::string triggerSelection = iConfig.getParameter<std::string>("triggerSelection");
73  boost::split(strs, triggerSelection, boost::is_any_of("\t ,`!@#$%^&*()~/\\"));
74  for (auto& str : strs) {
75  if (str.find("HLT_") == 0) {
76  m_usedPaths.insert(str);
77  }
78  }
79 
80  m_eventCache = &eventCache;
81  std::string pathPartialName = iConfig.getParameter<std::string>("partialPathName");
82  m_dirname = iConfig.getUntrackedParameter("mainDQMDirname", std::string("HLT/FSQ/")) + pathPartialName + "/";
83  m_pset = iConfig;
84  };

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

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 97 of file FSQDiJetAve.cc.

◆ m_eventCache

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

Definition at line 96 of file FSQDiJetAve.cc.

◆ m_expression

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

Definition at line 95 of file FSQDiJetAve.cc.

◆ m_histos

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

Definition at line 98 of file FSQDiJetAve.cc.

◆ m_pset

edm::ParameterSet FSQ::BaseHandler::m_pset

Definition at line 100 of file FSQDiJetAve.cc.

◆ m_usedPaths

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

Definition at line 99 of file FSQDiJetAve.cc.

FSQ::BaseHandler::m_eventCache
triggerExpression::Data * m_eventCache
Definition: FSQDiJetAve.cc:96
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
cms::dd::split
std::vector< std::string_view > split(std::string_view, const char *)
str
#define str(s)
Definition: TestProcessor.cc:48
triggerExpression::parse
Evaluator * parse(const T &text)
Definition: TriggerExpressionParser.h:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FSQ::BaseHandler::m_expression
std::unique_ptr< triggerExpression::Evaluator > m_expression
Definition: FSQDiJetAve.cc:95
FSQ::BaseHandler::m_usedPaths
std::set< std::string > m_usedPaths
Definition: FSQDiJetAve.cc:99
patRefSel_triggerSelection_cff.triggerSelection
triggerSelection
Definition: patRefSel_triggerSelection_cff.py:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
FSQ::BaseHandler::m_dirname
std::string m_dirname
Definition: FSQDiJetAve.cc:97
FSQ::BaseHandler::m_pset
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:100