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

Annotation of /PamCut/MiscCuts/LShellCut/LShellCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Mar 26 10:12:19 2010 UTC (14 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
Changes since 1.1: +13 -9 lines
File MIME type: text/plain
Upper limit added. Bug in documentation fixed.

1 pam-fi 1.1 /*
2     * LShellCut.h
3     *
4     * Created on: 14-jan-2010
5     * Author: S. Ricciarini
6     */
7    
8     /*! @file LShellCut.h The LShellCut class definition file */
9    
10     #ifndef LSHELLCUT_H_
11     #define LSHELLCUT_H_
12    
13     #include "../../PamCutBase/PamCutBase.h"
14    
15 pam-fi 1.2 /*! @brief The L shell cut. */
16 pam-fi 1.1 class LShellCut: public PamCut {
17     public:
18    
19     /*! @brief Constructor.
20     *
21     *
22 pam-fi 1.2 * @param cutName The cut's name.
23     * @param LShellMin The minimum threshold value of the L shell (in units of earth radius).
24     * @param LShellMax The maximum threshold value of the L shell (in units of earth radius). If 0, only the
25     * lower threshold will be checked.
26 pam-fi 1.1 */
27 pam-fi 1.2 LShellCut(const char *cutName, Float_t LShellMin, Float_t LShellMax = 0.) :
28     PamCut(cutName), _LShellMin(LShellMin), _LShellMax(LShellMax) {
29 pam-fi 1.1 }
30    
31 pam-fi 1.2
32 pam-fi 1.1 /*! @brief Destructor. */
33     ~LShellCut() {
34     }
35    
36 pam-fi 1.2 /*! @brief Apply the L shell cut.
37 pam-fi 1.1 *
38 pam-fi 1.2 * This routine rejects the events whose L shell value is outside the parameters passed to the constructor.
39 pam-fi 1.1 * @param event The event to analyze.
40 pam-fi 1.2 * @return CUTOK if LShellMin < LShell < LShellMax (LShellMax check is done only if LShellMax > 0).
41     * @return 0 otherwise.
42 pam-fi 1.1 */
43     int Check(PamLevel2 *event);
44    
45     private:
46 pam-fi 1.2 float _LShellMin, _LShellMax;
47 pam-fi 1.1
48     };
49    
50     #endif /* LSHELLCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23