1 |
grimes |
1.1 |
#ifndef l1menu_IMenuRate_h
|
2 |
|
|
#define l1menu_IMenuRate_h
|
3 |
|
|
|
4 |
|
|
//
|
5 |
|
|
// Forward declarations
|
6 |
|
|
//
|
7 |
|
|
namespace l1menu
|
8 |
|
|
{
|
9 |
|
|
class ITriggerRate;
|
10 |
|
|
}
|
11 |
|
|
|
12 |
|
|
namespace l1menu
|
13 |
|
|
{
|
14 |
|
|
/** @brief Interface to the rates for a collection; individually, total and (eventually) correlations.
|
15 |
|
|
*
|
16 |
|
|
* @author Mark Grimes (mark.grimes@bristol.ac.uk)
|
17 |
|
|
* @date 24/Jun/2013
|
18 |
|
|
*/
|
19 |
|
|
struct IMenuRate
|
20 |
|
|
{
|
21 |
|
|
public:
|
22 |
|
|
virtual ~IMenuRate() {}
|
23 |
|
|
|
24 |
|
|
/** @brief The fraction of events that passed all triggers, 1 being all events and 0 no events. */
|
25 |
|
|
virtual float totalFraction() const = 0;
|
26 |
|
|
virtual float totalRate() const = 0;
|
27 |
|
|
|
28 |
|
|
virtual const std::vector<const l1menu::ITriggerRate*>& triggerRates() const = 0;
|
29 |
|
|
};
|
30 |
|
|
|
31 |
|
|
} // end of namespace l1menu
|
32 |
|
|
|
33 |
|
|
#endif
|