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

Annotation of /PamCut/MiscCuts/InclInfoQualCut/InclInfoQualCut.h

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
File MIME type: text/plain
first releaze

1 pam-mep 1.1 /*
2     * InclInfoQualCut.h
3     *
4     * Created on: 27-marth-2010
5     * Author: Vitaly Malakhov
6     */
7    
8     /*! @file InclInfoQualCut.h The InclInfoQualCut class definition file */
9    
10     #ifndef INCLINFOQUALCUT_H_
11     #define INCLINFOQUALCUT_H_
12    
13     #include "../../PamCutBase/PamCutBase.h"
14    
15     /*! @brief The inclination info data quality cut: rejects events with norm of quaternions
16     * is not inside corridor 0.999 - 1.0001 and Time Gap betwean nearest real (not interpolated)
17     * quaternions more than an upper threshold.
18     */
19     class InclInfoQualCut: public PamCut {
20    
21     public:
22     /*! @brief Constructor.
23     *
24     * @param cutName The cut's name.
25     * @param TimeGapMax The maximum time gap accepted value in sec. It is value between nearesr not interpolated
26     * quaternions, default value is 300 seconds.
27     */
28     InclInfoQualCut(const char* cutName, float timeGapMax = 300) :
29     PamCut(cutName), _norm(-1.), _timeGapMax(TimeGapMax) {
30     }
31     /*! @brief Destructor. */
32     ~InclInfoQualCut() {
33     }
34    
35     /*! @brief The inclination info quality check.
36     *
37     * @param event The event to analyze.
38     * @return #CUTOK if TimeGap <= TimeGapMax and norm of quaternions lies inside a corridor 0.999 - 1.0001
39     */
40     int Check(PamLevel2 *event);
41    
42     private:
43     float _norm;
44     float _timeGapMax;
45     };
46    
47     #endif /* INCLINFOQUALCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23