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_ */ |