1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* TrkHitQualCut.cpp |
3 |
|
|
* |
4 |
|
|
* Created on: 13-mar-2009 |
5 |
|
|
* Author: Sergio Ricciarini, Nicola Mori |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file TrkHitQualCut.cpp The TrkHitQualCut class implementation file */ |
9 |
|
|
|
10 |
|
|
#include "TrkHitQualCut.h" |
11 |
|
|
|
12 |
|
|
int TrkHitQualCut::Check(PamLevel2 *event) { |
13 |
|
|
|
14 |
|
|
TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack(); |
15 |
|
|
|
16 |
|
|
if (trkTrack->GetNX() < _xMinHit || // minimum number of X planes included in the track |
17 |
|
|
trkTrack->GetNY() < _yMinHit || // minimum number of Y planes included in the track |
18 |
|
|
trkTrack->GetLeverArmX() < _xLeverArm) // minimum LA for X view |
19 |
|
|
return 0; |
20 |
|
|
|
21 |
|
|
return CUTOK; |
22 |
|
|
|
23 |
|
|
} |