PamCut: TofCuts/TofBetaCut/TofBetaCut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# TofCuts/TofBetaCut/TofBetaCut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * TofBetaCut.cpp
    00003  *
    00004  *  Created on: 13-mar-2009
    00005  *      Author: Sergio Ricciarini, Nicola Mori
    00006  */
    00007
    00010 #include "TofBetaCut.h"
    00011
    00012 int TofBetaCut::Check(PamLevel2 *event) {
    00013
    00014   int iTrackTof=0; // index initialized to 0 (TOF stand-alone track)
    00015   if (! (_trackTof==0) ) {
    00016     iTrackTof=*_trackTof;
    00017   }
    00018
    00019   beta = event->GetToFLevel2()->CalcBeta(iTrackTof,_resMax,_qualCut,_chi2Cut);
    00020
    00021   if( ! (beta < 100.) ) // NOTE: beta=100 means beta calculation was not successful
    00022     return 0;
    00023
    00024   return CUTOK;
    00025
    00026 }