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

Contents of /PamCut/TofCuts/TofBetaCut/TofBetaCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jun 10 15:48:17 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
FILE REMOVED
Removed because of overlap with TofBetaRangeCut

1 /*
2 * TofBetaCut.h
3 *
4 * Created on: 13-mar-2009
5 * Author: Nicola Mori, S. Ricciarini
6 */
7
8 /*! @file TofBetaCut.h The TofBetaCut class definition file */
9
10 #ifndef TOFBETACUT_H_
11 #define TOFBETACUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15
16 /*! @brief The TofBeta cut.
17 * This cut ensures that beta (referred to a specified track) has been calculated
18 *
19 */
20
21 class TofBetaCut: public PamCut {
22
23 public:
24
25 /*! @brief Constructor.
26 * The parameters are: the TOF-index for the track which is necessary to input to derive the beta and (resMax, qualCut and chi2Cut) for the quality of beta. 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.
27 *
28 * @param cutName The cut's name.
29 * @param trackTof Pointer to the TOF-index indicating the track to be used when evaluating
30 * the beta (default value for TOF_index is 0, corresponding to the TOF stand-alone
31 * track [no TRK information to build the TOF stand-alone track]). The pointer to the
32 * TOF_index for TRK-track as given by TrkPhSinCut can be used.
33 *
34 * @param resMax Default: 10. (equivalent to beta[12])
35 * @param qualCut Default: 10. (equivalent to beta[12])
36 * @param chi2Cut Default: 20. (equivalent to beta[12])
37 */
38 TofBetaCut(const char *cutName, int *trackTof=NULL, float resMax=10., float qualCut=10., float chi2Cut=20.):
39 PamCut(cutName), _trackTof(trackTof), _resMax(resMax), _qualCut(qualCut), _chi2Cut(chi2Cut) {
40 }
41 /*! @brief Destructor. */
42 ~TofBetaCut() {
43 }
44
45 /*! @brief The TofBeta check.
46 *
47 * @param event The event to analyze.
48 * @return #CUTOK if beta ("high quality") has been calculated
49 * @return 0 otherwise
50 */
51 int Check(PamLevel2 *event);
52
53 float beta; ///< The beta value for the last examined event.
54
55 private:
56
57 int *_trackTof;
58
59 float _resMax, _qualCut, _chi2Cut;
60
61 };
62
63 #endif /* TOFBETACUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23