1 |
/* |
2 |
* InclInfoQualCut.cpp |
3 |
* |
4 |
* Created on: 27-marth-2010 |
5 |
* Author: Vitaly Malakhov |
6 |
*/ |
7 |
|
8 |
/*! @file InclInfoQualCut.cpp The InclInfoQualCut class implementation file */ |
9 |
|
10 |
#include "InclInfoQualCut.h" |
11 |
|
12 |
int InclInfoQualCut::Check(PamLevel2 *event) { |
13 |
|
14 |
_norm = sqrt(pow(event->GetOrbitalInfo()->q0,2)+pow(event->GetOrbitalInfo()->q1,2)+pow(event->GetOrbitalInfo()->q2,2)+pow(event->GetOrbitalInfo()->q3,2)); |
15 |
|
16 |
if (_norm < 0.9999 || _norm > 1.0001) { |
17 |
return 0; |
18 |
} |
19 |
|
20 |
if (event->GetOrbitalInfo()->timeGap > _timeGapMax) { |
21 |
return 0; |
22 |
} |
23 |
|
24 |
return CUTOK; |
25 |
} |