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

Contents of /PamCut/MiscCuts/LShellCut/LShellCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show 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
Error occurred while calculating annotation data.
Upper limit added. Bug in documentation fixed.

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 /*! @brief The L shell cut. */
16 class LShellCut: public PamCut {
17 public:
18
19 /*! @brief Constructor.
20 *
21 *
22 * @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 */
27 LShellCut(const char *cutName, Float_t LShellMin, Float_t LShellMax = 0.) :
28 PamCut(cutName), _LShellMin(LShellMin), _LShellMax(LShellMax) {
29 }
30
31
32 /*! @brief Destructor. */
33 ~LShellCut() {
34 }
35
36 /*! @brief Apply the L shell cut.
37 *
38 * This routine rejects the events whose L shell value is outside the parameters passed to the constructor.
39 * @param event The event to analyze.
40 * @return CUTOK if LShellMin < LShell < LShellMax (LShellMax check is done only if LShellMax > 0).
41 * @return 0 otherwise.
42 */
43 int Check(PamLevel2 *event);
44
45 private:
46 float _LShellMin, _LShellMax;
47
48 };
49
50 #endif /* LSHELLCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23