--- PamCut/MiscCuts/LTQualCut/LTQualCut.h 2009/05/27 13:30:09 1.1.1.1 +++ PamCut/MiscCuts/LTQualCut/LTQualCut.h 2009/11/24 14:49:37 1.2 @@ -14,12 +14,13 @@ /*! @enum LT_Return Return values for rejected events */ enum LT_Return { - LT_NEWRUN, ///< Discarded because it is the first event of the run. + //LT_NEWRUN, ///< Discarded because it is the first event of the run. LT_INVALID ///< Discarded because the LT is greater than timeout. }; -/*! @brief The live-time data quality cut: rejects the first event of each run and events with LT greater than an upper threshold (or with LT smaller than 0). +/*! @brief The live-time data quality cut: rejects events with LT greater + * than an upper threshold (or with LT smaller than 0). */ class LTQualCut: public PamCut { @@ -31,7 +32,7 @@ * considered invalid. It must be less than the trigger timeout on IDAQ board, which * is ~ 4600 ms. Default is 4500 (use of different values must be justified). */ - LTQualCut(const char* cutName, float threshold=4500) : + LTQualCut(const char* cutName, float threshold = 4500) : PamCut(cutName), _previousRun(numeric_limits::max()), _LT(-1.), _timeout(threshold) { } /*! @brief Destructor. */ @@ -43,7 +44,6 @@ * @param event The event to analyze. * @return #CUTOK if LT < timeout. * @return #LT_INVALID if LT > timeout. - * @return #LT_NEWRUN if the event is at the beginning of the run. */ int Check(PamLevel2 *event); @@ -51,7 +51,9 @@ * * @return The live time of the last examined event in ms (-1 -> first event of the run). */ - float GetLT() { return _LT; } + float GetLT() { + return _LT; + } private: unsigned int _previousRun;