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

Definition at line 64 of file FSQDiJetAve.cc.

Definition at line 63 of file FSQDiJetAve.cc.

Constructor & Destructor Documentation

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

Definition at line 68 of file FSQDiJetAve.cc.

References analyze(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HltComparatorCreateWorkflow::hltConfig, iEvent, cms::dd::split(), str, AlCaHLTBitMon_QueryRunRegistry::string, L1TEGammaOffline_cfi::triggerNames, edm::triggerResults(), and patRefSel_triggerSelection_cff::triggerSelection.

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  };
std::vector< std::string_view > split(std::string_view, const char *)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
Evaluator * parse(const T &text)
std::set< std::string > m_usedPaths
Definition: FSQDiJetAve.cc:99
std::unique_ptr< triggerExpression::Evaluator > m_expression
Definition: FSQDiJetAve.cc:95
#define str(s)
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:100
std::string m_dirname
Definition: FSQDiJetAve.cc:97
triggerExpression::Data * m_eventCache
Definition: FSQDiJetAve.cc:96

Member Function Documentation

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
virtual void FSQ::BaseHandler::book ( DQMStore::IBooker booker)
pure virtual
virtual void FSQ::BaseHandler::getAndStoreTokens ( edm::ConsumesCollector &&  iC)
pure virtual

Member Data Documentation

std::string FSQ::BaseHandler::m_dirname

Definition at line 97 of file FSQDiJetAve.cc.

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

Definition at line 96 of file FSQDiJetAve.cc.

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

Definition at line 95 of file FSQDiJetAve.cc.

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

Definition at line 98 of file FSQDiJetAve.cc.

edm::ParameterSet FSQ::BaseHandler::m_pset

Definition at line 100 of file FSQDiJetAve.cc.

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

Definition at line 99 of file FSQDiJetAve.cc.