1 |
grimes |
1.1 |
#ifndef l1menu_TriggerRates_h
|
2 |
|
|
#define l1menu_TriggerRates_h
|
3 |
|
|
|
4 |
|
|
#include <vector>
|
5 |
|
|
|
6 |
|
|
namespace l1menu
|
7 |
|
|
{
|
8 |
|
|
struct TriggerRates
|
9 |
|
|
{
|
10 |
|
|
public:
|
11 |
|
|
/** @brief The fraction of events that passed all triggers, 1 being all events and 0 no events. */
|
12 |
|
|
float totalFraction() const { return totalFraction_; }
|
13 |
|
|
void setTotalFraction( float totalFraction ) { totalFraction_=totalFraction; }
|
14 |
|
|
|
15 |
|
|
/** @brief The fraction of events that passed a particular trigger. */
|
16 |
|
|
std::vector<float>& fractions() { return fractions_; }
|
17 |
|
|
const std::vector<float>& fractions() const { return fractions_; }
|
18 |
|
|
private:
|
19 |
|
|
float totalFraction_;
|
20 |
|
|
std::vector<float> fractions_;
|
21 |
|
|
};
|
22 |
|
|
|
23 |
|
|
} // end of namespace l1menu
|
24 |
|
|
|
25 |
|
|
#endif
|