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 |
|
|
} |