12 |
|
|
13 |
#include "../../PamCutBase/PamCutBase.h" |
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
|
15 |
/*! @brief The geomagnetic field cut. */ |
/*! @brief The L shell cut. */ |
16 |
class LShellCut: public PamCut { |
class LShellCut: public PamCut { |
17 |
public: |
public: |
18 |
|
|
19 |
/*! @brief Constructor. |
/*! @brief Constructor. |
20 |
* |
* |
21 |
* |
* |
22 |
* @param cutName The cut's name.. |
* @param cutName The cut's name. |
23 |
* @param LShellMin The minimum threshold value of the L shell (in units of earth radius) |
* @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) : |
LShellCut(const char *cutName, Float_t LShellMin, Float_t LShellMax = 0.) : |
28 |
PamCut(cutName), _LShellMin(LShellMin) { |
PamCut(cutName), _LShellMin(LShellMin), _LShellMax(LShellMax) { |
29 |
} |
} |
30 |
|
|
31 |
|
|
32 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
33 |
~LShellCut() { |
~LShellCut() { |
34 |
} |
} |
35 |
|
|
36 |
/*! @brief Apply the geomagnetic cut. |
/*! @brief Apply the L shell cut. |
37 |
* |
* |
38 |
* This routine rejects the events with |B| < bAbs. |
* This routine rejects the events whose L shell value is outside the parameters passed to the constructor. |
39 |
* @param event The event to analyze. |
* @param event The event to analyze. |
40 |
* @return CUTOK if |B| > bAbs, 0 otherwise. |
* @return CUTOK if LShellMin < LShell < LShellMax (LShellMax check is done only if LShellMax > 0). |
41 |
|
* @return 0 otherwise. |
42 |
*/ |
*/ |
43 |
int Check(PamLevel2 *event); |
int Check(PamLevel2 *event); |
44 |
|
|
45 |
private: |
private: |
46 |
float _LShellMin; |
float _LShellMin, _LShellMax; |
47 |
|
|
48 |
}; |
}; |
49 |
|
|