1 |
grimes |
1.1 |
#ifndef l1menu_ITriggerRate_h
|
2 |
|
|
#define l1menu_ITriggerRate_h
|
3 |
|
|
|
4 |
|
|
#include <vector>
|
5 |
|
|
|
6 |
|
|
namespace l1menu
|
7 |
|
|
{
|
8 |
|
|
/** @brief Interface to get information about the trigger rate. Read only.
|
9 |
|
|
*
|
10 |
|
|
* @author Mark Grimes (mark.grimes@bristol.ac.uk)
|
11 |
|
|
* @date 24/Jun/2013
|
12 |
|
|
*/
|
13 |
|
|
class ITriggerRate
|
14 |
|
|
{
|
15 |
|
|
public:
|
16 |
|
|
virtual ~ITriggerRate() {}
|
17 |
|
|
|
18 |
|
|
virtual const l1menu::ITrigger& trigger() const = 0;
|
19 |
|
|
|
20 |
|
|
/** @brief The fraction of events that this trigger passed, so before applying any scaling. */
|
21 |
|
|
virtual float fraction() const = 0;
|
22 |
|
|
|
23 |
|
|
/** @brief The rate, so fraction multiplied by the scaling. */
|
24 |
|
|
virtual float rate() const = 0;
|
25 |
|
|
};
|
26 |
|
|
|
27 |
|
|
} // end of namespace l1menu
|
28 |
|
|
|
29 |
|
|
#endif
|