--- PamCut/TrkCuts/TrkSigmaDeflCut/TrkSigmaDeflCut.h 2009/05/27 13:30:09 1.1.1.1 +++ PamCut/TrkCuts/TrkSigmaDeflCut/TrkSigmaDeflCut.h 2010/07/08 14:00:10 1.3 @@ -14,7 +14,9 @@ /*! @brief The cut on TRK sigma_deflection. * - * This cut discards an event if its sigma_deflection (defined as sqrt(coval[4][4]), in GV^-1) is not less than the minimum deflection for the bin which contains the event deflection modulus (deflection of the first TRK track). + * This cut discards an event if its sigma_deflection (defined as sqrt(coval[4][4]), in GV^-1) + * multiplied by a constant parameter is not less than the minimum deflection for the bin which + * contains the event deflection modulus (deflection of the first TRK track). * */ class TrkSigmaDeflCut: public PamCut { @@ -27,9 +29,10 @@ * 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 sigmaDeflFactor The factor to multiply sigma_deflection by before comparing it to the deflection. */ - TrkSigmaDeflCut(const char *cutName, std::vector binning) : - PamCut(cutName), _binning(binning) { + TrkSigmaDeflCut(const char *cutName, std::vector binning, float sigmaDeflFactor = 1.) : + PamCut(cutName), _binning(binning), _sigmaDeflFactor(sigmaDeflFactor) { } /*! @brief Constructor. @@ -39,8 +42,9 @@ * 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 deflFactor The factor to multiply sigma_deflection by before comparing it to the deflection. */ - TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName); + TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName, float deflFactor = 1.); /*! @brief Destructor. */ ~TrkSigmaDeflCut() { @@ -57,10 +61,10 @@ */ int Check(PamLevel2 *event); - private: std::vector _binning; + float _sigmaDeflFactor; };