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