test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
 ~BaseHandler ()
 

Public Attributes

std::string m_dirname
 
triggerExpression::Datam_eventCache
 
std::unique_ptr
< triggerExpression::Evaluator
m_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 ( )
FSQ::BaseHandler::~BaseHandler ( )
inline

Definition at line 64 of file FSQDiJetAve.cc.

64  {
65  }
FSQ::BaseHandler::BaseHandler ( const edm::ParameterSet iConfig,
triggerExpression::Data eventCache 
)
inline

Definition at line 66 of file FSQDiJetAve.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), split, and AlCaHLTBitMon_QueryRunRegistry::string.

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

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

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

Definition at line 95 of file FSQDiJetAve.cc.

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

Definition at line 94 of file FSQDiJetAve.cc.

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

Definition at line 97 of file FSQDiJetAve.cc.

edm::ParameterSet FSQ::BaseHandler::m_pset

Definition at line 99 of file FSQDiJetAve.cc.

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

Definition at line 98 of file FSQDiJetAve.cc.