--- PamCut/TrkCuts/RigFillCut/RigFillCut.h 2009/05/27 13:30:08 1.1 +++ PamCut/TrkCuts/RigFillCut/RigFillCut.h 2009/06/10 12:44:55 1.3 @@ -45,7 +45,7 @@ * * @param cutName The cut's name. * @param binning A vector containing the histogram binning in rigidity modulus (X axis) and cutoff rigidity (Y axis). - * @param + * @param thresholdCoeff The threshold rigidity coefficient for the event selection. * */ RigFillCut(const char *cutName, std::vector binning, float thresholdCoeff) : @@ -53,6 +53,20 @@ _thresholdCoeff(thresholdCoeff) { } + /*! @brief Constructor. + * + * This constructor reads the binning from a text file. The bin limits should be arranged in rows. + * + * @param cutName The cut's name. + * @param rigBinListFileName A text file containing the histogram binning. + * Note that it must contain both the upper and lower limits, and + * that the elements must be ordered (ie., lowest rigidity value in the first + * element and so on). + * @param thresholdCoeff The threshold rigidity coefficient for the event selection. + * + */ + RigFillCut(const char *cutName, const char* rigBinListFileName, float thresholdCoeff); + /*! @brief Destructor. */ ~RigFillCut() { }