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

Contents of /PamCut/TofCuts/TofBetaCut/TofBetaCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 27 13:30:09 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: DEV
CVS Tags: v0r00
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
First import

1 /*
2 * TofBetaCut.cpp
3 *
4 * Created on: 13-mar-2009
5 * Author: Sergio Ricciarini, Nicola Mori
6 */
7
8 /*! @file TofBetaCut.cpp The TofBetaCut class implementation file */
9
10 #include "TofBetaCut.h"
11
12 int TofBetaCut::Check(PamLevel2 *event) {
13
14 int iTrackTof=0; // index initialized to 0 (TOF stand-alone track)
15 if (! (_trackTof==0) ) {
16 iTrackTof=*_trackTof;
17 }
18
19 beta = event->GetToFLevel2()->CalcBeta(iTrackTof,_resMax,_qualCut,_chi2Cut);
20
21 if( ! (beta < 100.) ) // NOTE: beta=100 means beta calculation was not successful
22 return 0;
23
24 return CUTOK;
25
26 }

  ViewVC Help
Powered by ViewVC 1.1.23