/[PAMELA software]/PamCut/TofCuts/TofDedxHCut/TofDedxHCut.h
ViewVC logotype

Diff of /PamCut/TofCuts/TofDedxHCut/TofDedxHCut.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Tue Apr 5 17:28:49 2011 UTC revision 1.2 by pam-fi, Tue Nov 29 10:20:16 2011 UTC
# Line 7  Line 7 
7    
8  /*! @file TofDedxHCut.h  The TofDedxHCut.h class definition file. */  /*! @file TofDedxHCut.h  The TofDedxHCut.h class definition file. */
9    
10  #ifndef TOFDEDXHECUT_H_  #ifndef TOFDEDXHCUT_H_
11  #define TOFDEDXHECUT_H_  #define TOFDEDXHCUT_H_
12    
13  #include "../../PamCutBase/PamCutBase.h"  #include "../../PamCutBase/PamCutBase.h"
14    
# Line 16  Line 16 
16   * This cut discards events where TOF dE/dx vs. Beta are outside the hydrogen "corridor". This corridor is currently   * This cut discards events where TOF dE/dx vs. Beta are outside the hydrogen "corridor". This corridor is currently
17   * defined by:   * defined by:
18   *   *
19   * dE/dx > 1 / (p[0] * beta + p[1]) + p[2] + p[3]*beta;   * dE/dx > _p[0] / (_p[1] * beta + _p[2]) + _p[3] + _p[4] * beta
20   * dE/dx < 1 / (p[4] * beta + p[5]) + p[6] + p[7]*beta;   * dE/dx < _p[5] / (_p[6] * beta + _p[7]) + _p[8] + _p[9] * beta
21   *   *
22   * where p[i] are calibration parameters. Currently, they are available for each single layer; the beta used is the beta[12] corresponding   * where p[i] are calibration parameters. Currently, they are available for each single layer; the beta used is the beta[12] corresponding
23   * to the TOF standalone track or to the TRK physical track, depending on the value of the standAlone parameter of the constructor. The   * to the TOF standalone track or to the TRK physical track, depending on the value of the standAlone parameter of the constructor. The
# Line 26  Line 26 
26   * If the required combination of planes has no available calibration, the one for S21 will be used. Currently, the 9th reduction uses   * If the required combination of planes has no available calibration, the one for S21 will be used. Currently, the 9th reduction uses
27   * a dE/dx calibration which allow to use an (almost) unique set of parameters for all layers, but the possibility to define cut parameters   * a dE/dx calibration which allow to use an (almost) unique set of parameters for all layers, but the possibility to define cut parameters
28   * for each layer is maintained for possible future refinements.   * for each layer is maintained for possible future refinements.
29   * Note that there's no currently available calibration for combinations of layers, so using mean release on many layers could result in   * Note that there's no currently available calibration for combinations of layers, so using mean release on many layers could potentially
30   * an undefined behavior.   * result in an undefined behavior, but given the almost constant cut parameters it should work as expected (however, THIS HAS NOT BEEN TESTED
31     * AND IS NOT GUARANTEED).
32   */   */
33  class TofDedxHCut: public PamCut {  class TofDedxHCut: public PamCut {
34    
# Line 38  public: Line 39  public:
39     * @param layer The layer to use. Select it using values like #S11 (for single layers) or S11+S12 (for the mean of many layers).     * @param layer The layer to use. Select it using values like #S11 (for single layers) or S11+S12 (for the mean of many layers).
40     * @param standAlone If true, the cut will use the standalone measure of beta; otherwise it will use the     * @param standAlone If true, the cut will use the standalone measure of beta; otherwise it will use the
41     *                   physical track.     *                   physical track.
42       * @param strict If true, a more strict cut will be applied (lower efficiency but also lower contamination).
43     */     */
44    TofDedxHCut(const char *cutName, unsigned int layer, bool standAlone = true);    TofDedxHCut(const char *cutName, unsigned int layer, bool standAlone = true, bool strict = false);
45    /*! @brief Destructor. */    /*! @brief Destructor. */
46    ~TofDedxHCut() {    ~TofDedxHCut() {
47    
# Line 61  private: Line 63  private:
63    // Single layers standalone    // Single layers standalone
64    static const float _S11_SA_params[10], _S12_SA_params[10], _S21_SA_params[10], _S22_SA_params[10], _S31_SA_params[10],    static const float _S11_SA_params[10], _S12_SA_params[10], _S21_SA_params[10], _S22_SA_params[10], _S31_SA_params[10],
65        _S32_SA_params[10];        _S32_SA_params[10];
66      // Single layers standalone, strict selection
67      static const float _S11_SA_params_strict[10], _S12_SA_params_strict[10], _S21_SA_params_strict[10],
68          _S22_SA_params_strict[10], _S31_SA_params_strict[10], _S32_SA_params_strict[10];
69  };  };
70    
71  #endif /* TOFDEDXHECUT_H_ */  #endif /* TOFDEDXHCUT_H_ */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23