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

Annotation of /PamCut/MiscCuts/InclInfoQualCut/InclInfoQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Mon Apr 5 09:44:53 2010 UTC (14 years, 8 months ago) by pam-mep
Branch: yoyo
CVS Tags: start
Changes since 1.1: +0 -0 lines
first releaze

1 pam-mep 1.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