CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TriggerExpressionPrescaler.h
Go to the documentation of this file.
1 #ifndef HLTrigger_HLTfilters_TriggerExpressionPrescaler_h
2 #define HLTrigger_HLTfilters_TriggerExpressionPrescaler_h
3 
6 
7 namespace triggerExpression {
8 
9 class Prescaler : public UnaryOperator {
10 public:
11  Prescaler(Evaluator * arg, unsigned int prescale) :
12  UnaryOperator(arg),
13  m_prescale(prescale),
14  m_counter()
15  { }
16 
17  bool operator()(const Data & data) const;
18 
19  void init(const Data & data);
20 
21  void dump(std::ostream & out) const {
22  out << "(" << (*m_arg) << " / " << m_prescale << ")";
23  }
24 
25 private:
26  unsigned int m_prescale;
27  mutable unsigned int m_counter;
28 };
29 
30 } // namespace triggerExpression
31 
32 #endif // HLTrigger_HLTfilters_TriggerExpressionPrescaler_h
bool operator()(const Data &data) const
void dump(std::ostream &out) const
A arg
Definition: Factorize.h:36
Prescaler(Evaluator *arg, unsigned int prescale)