1 |
#ifndef l1menu_IEvent_h
|
2 |
#define l1menu_IEvent_h
|
3 |
|
4 |
//
|
5 |
// Forward declarations
|
6 |
//
|
7 |
namespace l1menu
|
8 |
{
|
9 |
class ITrigger;
|
10 |
class ISample;
|
11 |
}
|
12 |
|
13 |
namespace l1menu
|
14 |
{
|
15 |
/** @brief Interface for the most basic form of event.
|
16 |
*
|
17 |
* @author Mark Grimes (mark.grimes@bristol.ac.uk)
|
18 |
* @date 25/Jun/2013
|
19 |
*/
|
20 |
class IEvent
|
21 |
{
|
22 |
public:
|
23 |
virtual ~IEvent() {}
|
24 |
virtual bool passesTrigger( const l1menu::ITrigger& trigger ) const = 0;
|
25 |
virtual float weight() const = 0; ///< @brief The weighting this event has been given
|
26 |
virtual const l1menu::ISample& sample() const = 0; ///< @brief The sample that this event came from.
|
27 |
};
|
28 |
|
29 |
} // end of namespace l1menu
|
30 |
|
31 |
|
32 |
#endif
|