1 |
pam-fi |
1.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 |
|
|
} |