ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/grimes/L1Menu/interface/l1menu/TriggerRates.h
Revision: 1.1
Committed: Tue Jun 18 10:18:22 2013 UTC (11 years, 10 months ago) by grimes
Content type: text/plain
Branch: MAIN
Log Message:
Fixed some bugs, and started adding functionality to calculate rates.

File Contents

# User Rev Content
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