PamCut: TofCuts/TofBetaRangeCut/TofBetaRangeCut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# TofCuts/TofBetaRangeCut/TofBetaRangeCut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * TofBetaRangeCut.cpp
    00003  *
    00004  *  Created on: 10-apr-2009
    00005  *      Author: Sergio Ricciarini, Nicola Mori
    00006  */
    00007
    00010 #include "TofBetaRangeCut.h"
    00011
    00012 int TofBetaRangeCut::Check(PamLevel2 *event) {
    00013
    00014   int iTrackTof=0; // index initialized (default) to 0 (TOF stand-alone track)
    00015
    00016   if (! (_trackTof==0) ) {
    00017     iTrackTof=*_trackTof;
    00018   }
    00019
    00020   float _beta = event->GetToFLevel2()->CalcBeta(iTrackTof,_resMax,_qualCut,_chi2Cut);
    00021
    00022   if( ! (_minBeta < _beta && _beta < _maxBeta) ) {
    00023     return 0;
    00024   }
    00025
    00026   return CUTOK;
    00027
    00028 }