Parent Directory | Revision Log
Previous commit was outdated; fixed.
1 | /* |
2 | * EvRateS11Cut.cpp |
3 | * |
4 | * Created on: 21-mag-2009 |
5 | * Author: Nicola Mori |
6 | */ |
7 | |
8 | /*! @file EvRateS11Cut.cpp The EvRateS11Cut class implementation file. */ |
9 | |
10 | #include "EvRateS11Cut.h" |
11 | |
12 | int EvRateS11Cut::Check(PamLevel2 *event) { |
13 | |
14 | 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; |
20 | |
21 | return CUTOK; |
22 | } |
ViewVC Help | |
Powered by ViewVC 1.1.23 |