CMS 3D CMS Logo

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

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.

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

References Vispa.Share.Profiling::analyze(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), iEvent, split, harvestTrackValidationPlots::str, AlCaHLTBitMon_QueryRunRegistry::string, edm::triggerResults(), and patRefSel_triggerSelection_cff::triggerSelection.

65  :
66  m_expression(triggerExpression::parse( iConfig.getParameter<std::string>("triggerSelection")))
67  {
68  // extract list of used paths
69  std::vector<std::string> strs;
70  std::string triggerSelection = iConfig.getParameter<std::string>("triggerSelection");
71  boost::split(strs, triggerSelection, boost::is_any_of("\t ,`!@#$%^&*()~/\\"));
72  for (auto & str : strs){
73  if (str.find("HLT_")==0){
74  m_usedPaths.insert(str);
75  }
76  }
77 
78  m_eventCache = &eventCache;
79  std::string pathPartialName = iConfig.getParameter<std::string>("partialPathName");
80  m_dirname = iConfig.getUntrackedParameter("mainDQMDirname",std::string("HLT/FSQ/"))+pathPartialName + "/";
81  m_pset = iConfig;
82 
83  };
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:97
std::unique_ptr< triggerExpression::Evaluator > m_expression
Definition: FSQDiJetAve.cc:93
edm::ParameterSet m_pset
Definition: FSQDiJetAve.cc:98
double split
Definition: MVATrainer.cc:139
std::string m_dirname
Definition: FSQDiJetAve.cc:95
triggerExpression::Data * m_eventCache
Definition: FSQDiJetAve.cc:94

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

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

Definition at line 94 of file FSQDiJetAve.cc.

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

Definition at line 93 of file FSQDiJetAve.cc.

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

Definition at line 96 of file FSQDiJetAve.cc.

edm::ParameterSet FSQ::BaseHandler::m_pset

Definition at line 98 of file FSQDiJetAve.cc.

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

Definition at line 97 of file FSQDiJetAve.cc.