12 |
|
|
13 |
#include "../../PamCutBase/PamCutBase.h" |
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
|
|
|
|
15 |
/*! @brief The TofBetaRange cut. |
/*! @brief The TofBetaRange cut. |
16 |
* This cut selects a range of beta values. Note that beta can be either positive (downward going particle) or negative (upward going particle). |
* This cut selects a range of beta values. Note that beta can be either positive (downward going particle) or negative (upward going particle). |
17 |
*/ |
*/ |
20 |
|
|
21 |
public: |
public: |
22 |
/*! @brief Constructor. |
/*! @brief Constructor. |
23 |
* The parameters are: the TOF-index for the track which is necessary to input to derive the beta; resMax, qualCut and chi2Cut for the quality of beta; the minimum and maximum beta values. |
* The parameters are: the TOF-index for the track which is necessary to input to derive the beta; resMax, qualCut and chi2Cut for the quality of beta; the minimum and maximum beta values. |
24 |
* Various combinations of quality parameters are possible: default low-quality beta (used for beta[12]): 10.,10.,20.; medium-quality beta: 5.,15.,4.; high-quality beta: 3.,20.,3. |
* Various combinations of quality parameters are possible: default low-quality beta (used for beta[12]): 10.,10.,20.; medium-quality beta: 5.,15.,4.; high-quality beta: 3.,20.,3. |
25 |
* NOTE: beta can be either positive (downward going particle) or negative (upward going particle). Beta = 100 means beta calculation was not successful. |
* NOTE: beta can be either positive (downward going particle) or negative (upward going particle). Beta = 100 means beta calculation was not successful. |
26 |
|
|
27 |
* @param cutName The cut's name. |
* @param cutName The cut's name. |
28 |
* @param trackTof Pointer to the TOF-index indicating the track to be used when evaluating |
* @param trackTof Pointer to the TOF-index indicating the track to be used when evaluating |
29 |
* the beta (default value for TOF_index is 0, corresponding to the TOF stand-alone |
* the beta (default value for TOF_index is 0, corresponding to the TOF stand-alone |
30 |
* track [no TRK information to build the TOF stand-alone track]). The pointer to the |
* track [no TRK information to build the TOF stand-alone track]). The pointer to the |
31 |
* TOF_index for TRK-track as given by TrkPhSinCut can be used. |
* TOF_index for TRK-track as given by TrkPhSinCut can be used. |
32 |
* |
* |
33 |
* @param resMax Default: 10. (equivalent to beta[12]) |
* @param resMax See documentation for ToFLevel2::CalcBeta. Default: 10. (equivalent to beta[12]) |
34 |
* @param qualCut Default: 10. (equivalent to beta[12]) |
* @param qualCut See documentation for ToFLevel2::CalcBeta. Default: 10. (equivalent to beta[12]) |
35 |
* @param chi2Cut Default: 20. (equivalent to beta[12]) |
* @param chi2Cut See documentation for ToFLevel2::CalcBeta. Default: 20. (equivalent to beta[12]) |
36 |
* @param minBeta the minimum beta value (with sign) |
* @param minBeta the minimum beta value (with sign) |
37 |
* @param maxBeta the maximum beta value (with sign) |
* @param maxBeta the maximum beta value (with sign) |
38 |
*/ |
*/ |
39 |
TofBetaRangeCut(const char *cutName, int *trackTof=NULL, float resMax=10., float qualCut=10., float chi2Cut=20., float minBeta=-100., float maxBeta=100.): |
TofBetaRangeCut(const char *cutName, int *trackTof = NULL, float resMax = 10., float qualCut = 10., float chi2Cut = |
40 |
PamCut(cutName), _trackTof(trackTof), _resMax(resMax), _qualCut(qualCut), _chi2Cut(chi2Cut), _minBeta(minBeta), _maxBeta(maxBeta) { |
20., float minBeta = -100., float maxBeta = 100.) : |
41 |
|
PamCut(cutName), _trackTof(trackTof), _resMax(resMax), _qualCut(qualCut), _chi2Cut(chi2Cut), _minBeta(minBeta), |
42 |
|
_maxBeta(maxBeta) { |
43 |
} |
} |
44 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
45 |
~TofBetaRangeCut() { |
~TofBetaRangeCut() { |