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

Contents of /PamCut/TofCuts/TofDedxHCut/TofDedxHCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Apr 5 17:28:49 2011 UTC (13 years, 8 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
H selection with TOF (for 9th reduction).

1 /*
2 * TofDedxHCut.h
3 *
4 * Created on: 5 apr 2011
5 * Author: Nicola Mori
6 */
7
8 /*! @file TofDedxHCut.h The TofDedxHCut.h class definition file. */
9
10 #ifndef TOFDEDXHECUT_H_
11 #define TOFDEDXHECUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 /*! @brief Cutting a band dE/dx vs. Beta for hydrogen.
16 * This cut discards events where TOF dE/dx vs. Beta are outside the hydrogen "corridor". This corridor is currently
17 * defined by:
18 *
19 * dE/dx > 1 / (p[0] * beta + p[1]) + p[2] + p[3]*beta;
20 * dE/dx < 1 / (p[4] * beta + p[5]) + p[6] + p[7]*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
23 * to the TOF standalone track or to the TRK physical track, depending on the value of the standAlone parameter of the constructor. The
24 * cut parameters have been obtained using the standalone beta. Currently, no test has been made to see if these parameters are good also
25 * for beta from TRK track.
26 * 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
28 * 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
30 * an undefined behavior.
31 */
32 class TofDedxHCut: public PamCut {
33
34 public:
35 /*! @brief Constructor.
36 *
37 * @param cutName The cut's name.
38 * @param layer The layer to use. Select it using values like #S11 (for single layers) or S11+S12 (for the mean of many layers).
39 * @param standAlone If true, the cut will use the standalone measure of beta; otherwise it will use the
40 * physical track.
41 */
42 TofDedxHCut(const char *cutName, unsigned int layer, bool standAlone = true);
43 /*! @brief Destructor. */
44 ~TofDedxHCut() {
45
46 }
47
48 /*! @brief The dE/dx vs. beta helium check.
49 *
50 * @param event The event to analyze.
51 * @return #CUTOK if event is inside helium "corridor".
52 * @return 0 otherwise.
53 */
54 int Check(PamLevel2 *event);
55
56 private:
57
58 unsigned int _layer;
59 bool _standAlone;
60 const float *_p;
61 // Single layers standalone
62 static const float _S11_SA_params[10], _S12_SA_params[10], _S21_SA_params[10], _S22_SA_params[10], _S31_SA_params[10],
63 _S32_SA_params[10];
64 };
65
66 #endif /* TOFDEDXHECUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23