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