--- PamCut/MiscCuts/LShellCut/LShellCut.h 2010/01/18 16:34:21 1.1 +++ PamCut/MiscCuts/LShellCut/LShellCut.h 2010/03/26 10:12:19 1.2 @@ -12,34 +12,38 @@ #include "../../PamCutBase/PamCutBase.h" -/*! @brief The geomagnetic field cut. */ +/*! @brief The L shell cut. */ class LShellCut: public PamCut { public: /*! @brief Constructor. * * - * @param cutName The cut's name.. - * @param LShellMin The minimum threshold value of the L shell (in units of earth radius) + * @param cutName The cut's name. + * @param LShellMin The minimum threshold value of the L shell (in units of earth radius). + * @param LShellMax The maximum threshold value of the L shell (in units of earth radius). If 0, only the + * lower threshold will be checked. */ - LShellCut(const char *cutName, Float_t LShellMin) : - PamCut(cutName), _LShellMin(LShellMin) { + LShellCut(const char *cutName, Float_t LShellMin, Float_t LShellMax = 0.) : + PamCut(cutName), _LShellMin(LShellMin), _LShellMax(LShellMax) { } + /*! @brief Destructor. */ ~LShellCut() { } - /*! @brief Apply the geomagnetic cut. + /*! @brief Apply the L shell cut. * - * 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. * @param event The event to analyze. - * @return CUTOK if |B| > bAbs, 0 otherwise. + * @return CUTOK if LShellMin < LShell < LShellMax (LShellMax check is done only if LShellMax > 0). + * @return 0 otherwise. */ int Check(PamLevel2 *event); private: - float _LShellMin; + float _LShellMin, _LShellMax; };