/[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.4 - (show annotations) (download)
Thu May 6 15:42:53 2010 UTC (14 years, 7 months ago) by pam-fi
Branch: MAIN
CVS Tags: MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Changes since 1.3: +0 -0 lines
Restored after V8 branch (break compatibility with 8th reduction software).

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