1 |
#ifndef l1menu_ICachedTrigger_h
|
2 |
#define l1menu_ICachedTrigger_h
|
3 |
|
4 |
//
|
5 |
// Forward declarations
|
6 |
//
|
7 |
namespace l1menu
|
8 |
{
|
9 |
class IEvent;
|
10 |
}
|
11 |
|
12 |
|
13 |
namespace l1menu
|
14 |
{
|
15 |
/** @brief An interface to a proxy trigger object that can be requested from ISamples that *may* make
|
16 |
* processing significantly faster.
|
17 |
*
|
18 |
* Some implementations of ISample can cache some information in this object that helps them
|
19 |
* process trigger rates etcetera significantly faster. For other implementations there is no
|
20 |
* improvement.
|
21 |
*
|
22 |
* @author Mark Grimes (mark.grimes@bristol.ac.uk)
|
23 |
* @date 26/Jun/2013
|
24 |
*/
|
25 |
class ICachedTrigger
|
26 |
{
|
27 |
public:
|
28 |
virtual ~ICachedTrigger() {}
|
29 |
/** @brief Whether or not the event passes this trigger. */
|
30 |
virtual bool apply( const l1menu::IEvent& event ) = 0;
|
31 |
}; // end of class ICachedTrigger
|
32 |
|
33 |
} // end of namespace l1menu
|
34 |
|
35 |
#endif
|