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