/[PAMELA software]/PamCut/MiscCuts/InclInfoQualCut/InclInfoQualCut.cpp
ViewVC logotype

Contents of /PamCut/MiscCuts/InclInfoQualCut/InclInfoQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 5 10:41:41 2010 UTC (14 years, 8 months ago) by pam-mep
Branch: MAIN
Changes since 1.1: +1 -1 lines
a bug fixed

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 }

  ViewVC Help
Powered by ViewVC 1.1.23