ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/grimes/L1Menu/interface/l1menu/ITriggerRate.h
Revision: 1.2
Committed: Tue Jul 2 23:30:35 2013 UTC (11 years, 10 months ago) by grimes
Content type: text/plain
Branch: MAIN
Changes since 1.1: +8 -0 lines
Log Message:
Various changes to make interface conformance better, and dropping old unrequired methods

File Contents

# User Rev Content
1 grimes 1.1 #ifndef l1menu_ITriggerRate_h
2     #define l1menu_ITriggerRate_h
3    
4     #include <vector>
5    
6 grimes 1.2 //
7     // Forward declarations
8     //
9     namespace l1menu
10     {
11     class ITrigger;
12     }
13    
14 grimes 1.1 namespace l1menu
15     {
16     /** @brief Interface to get information about the trigger rate. Read only.
17     *
18     * @author Mark Grimes (mark.grimes@bristol.ac.uk)
19     * @date 24/Jun/2013
20     */
21     class ITriggerRate
22     {
23     public:
24     virtual ~ITriggerRate() {}
25    
26     virtual const l1menu::ITrigger& trigger() const = 0;
27    
28     /** @brief The fraction of events that this trigger passed, so before applying any scaling. */
29     virtual float fraction() const = 0;
30    
31     /** @brief The rate, so fraction multiplied by the scaling. */
32     virtual float rate() const = 0;
33     };
34    
35     } // end of namespace l1menu
36    
37     #endif