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