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

Annotation of /PamCut/MiscCuts/LShellCut/LShellCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Sep 2 15:07:58 2010 UTC (14 years, 3 months ago) by pam-fi
Branch: MAIN
CVS Tags: V9, HEAD
Changes since 1.2: +5 -1 lines
Bug in upper limit check fixed.

1 pam-fi 1.1 /*
2     * LShellCut.cpp
3     *
4     * Created on: 14-jan-2010
5     * Author: S. Ricciarini
6     */
7    
8     /*! @file LShellCut.cpp The LShellCut class implementation file */
9    
10     #include "LShellCut.h"
11    
12     int LShellCut::Check(PamLevel2 *event) {
13    
14 pam-fi 1.2 if (event->GetOrbitalInfo()->L <= _LShellMin) {
15 pam-fi 1.3 if (_LShellMax > 0.) { // Check also the upper limit
16     if (event->GetOrbitalInfo()->L >= _LShellMax)
17     return 0;
18     }
19     else
20 pam-fi 1.2 return 0;
21     }
22 pam-fi 1.1
23     return CUTOK;
24 pam-fi 1.2
25 pam-fi 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.23