PamCut: MiscCuts/EvRateS11Cut/EvRateS11Cut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# MiscCuts/EvRateS11Cut/EvRateS11Cut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * EvRateS11Cut.cpp
    00003  *
    00004  *  Created on: 21-mag-2009
    00005  *      Author: Nicola Mori
    00006  */
    00007
    00010 #include "EvRateS11Cut.h"
    00011
    00012 int EvRateS11Cut::Check(PamLevel2 *event) {
    00013
    00014   float rate = 0.;
    00015   for (int i = 0; i < 16; i++)
    00016     rate += (float)event->GetTrigLevel2()->pmtcount1[i];
    00017   rate /= 16.;
    00018   if (rate > _maxRate || rate < _minRate)
    00019     return 0;
    00020
    00021   return CUTOK;
    00022 }