/[PAMELA software]/PamCut/MiscCuts/EvRateS11Cut/EvRateS11Cut.cpp
ViewVC logotype

Annotation of /PamCut/MiscCuts/EvRateS11Cut/EvRateS11Cut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Jun 8 10:38:17 2009 UTC (15 years, 5 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
Changes since 1.1: +5 -1 lines
Previous commit was outdated; fixed.

1 pam-fi 1.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 pam-fi 1.2 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 pam-fi 1.1 return 0;
20    
21     return CUTOK;
22     }

  ViewVC Help
Powered by ViewVC 1.1.23