Parent Directory | Revision Log | Patch
revision 1.1 by pam-fi, Fri May 29 10:08:39 2009 UTC | revision 1.2 by pam-fi, Mon Jun 8 10:38:17 2009 UTC | |
---|---|---|
# | Line 11 | Line 11 |
11 | ||
12 | int EvRateS11Cut::Check(PamLevel2 *event) { | int EvRateS11Cut::Check(PamLevel2 *event) { |
13 | ||
14 | if (event->GetTrigLevel2()->pmtcount1[10] > _maxRate) | float rate = 0.; |
15 | for (int i = 0; i < 16; i++) | |
16 | rate += (float)event->GetTrigLevel2()->pmtcount1[i]; | |
17 | rate /= 16.; | |
18 | if (rate > _maxRate || rate < _minRate) | |
19 | return 0; | return 0; |
20 | ||
21 | return CUTOK; | return CUTOK; |
|
ViewVC Help | |
Powered by ViewVC 1.1.23 |