/[PAMELA software]/PamCut/TofCuts/TofBetaRangeCut/TofBetaRangeCut.cpp
ViewVC logotype

Annotation of /PamCut/TofCuts/TofBetaRangeCut/TofBetaRangeCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed May 27 13:30:09 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: MAIN
Branch point for: DEV
Initial revision

1 pam-fi 1.1 /*
2     * TofBetaRangeCut.cpp
3     *
4     * Created on: 10-apr-2009
5     * Author: Sergio Ricciarini, Nicola Mori
6     */
7    
8     /*! @file TofBetaRangeCut.cpp The TofBetaRangeCut class implementation file */
9    
10     #include "TofBetaRangeCut.h"
11    
12     int TofBetaRangeCut::Check(PamLevel2 *event) {
13    
14     int iTrackTof=0; // index initialized (default) to 0 (TOF stand-alone track)
15    
16     if (! (_trackTof==0) ) {
17     iTrackTof=*_trackTof;
18     }
19    
20     float _beta = event->GetToFLevel2()->CalcBeta(iTrackTof,_resMax,_qualCut,_chi2Cut);
21    
22     if( ! (_minBeta < _beta && _beta < _maxBeta) ) {
23     return 0;
24     }
25    
26     return CUTOK;
27    
28     }

  ViewVC Help
Powered by ViewVC 1.1.23