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

Contents of /PamCut/TofCuts/TofBetaRangeCut/TofBetaRangeCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 23 17:27:41 2010 UTC (14 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9
Branch point for: V8
Changes since 1.1: +20 -19 lines
File MIME type: text/plain
Documentation updated.

1 /*
2 * TofBetaRangeCut.h
3 *
4 * Created on: 10-apr-2009
5 * Author: Nicola Mori, S. Ricciarini
6 */
7
8 /*! @file TofBetaRangeCut.h The TofBetaRangeCut class definition file */
9
10 #ifndef TOFBETARANGECUT_H_
11 #define TOFBETARANGECUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 /*! @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).
17 */
18
19 class TofBetaRangeCut: public PamCut {
20
21 public:
22 /*! @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.
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.
25 * 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.
28 * @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
30 * 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.
32 *
33 * @param resMax See documentation for ToFLevel2::CalcBeta. Default: 10. (equivalent to beta[12])
34 * @param qualCut See documentation for ToFLevel2::CalcBeta. Default: 10. (equivalent to beta[12])
35 * @param chi2Cut See documentation for ToFLevel2::CalcBeta. Default: 20. (equivalent to beta[12])
36 * @param minBeta the minimum beta value (with sign)
37 * @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 =
40 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. */
45 ~TofBetaRangeCut() {
46 }
47
48 /*! @brief The TofBetaRange check.
49 *
50 * @param event The event to analyze.
51 * @return #CUTOK if particle beta is inside the specified range (minBeta < beta < maxBeta)
52 * @return 0 otherwise
53 */
54 int Check(PamLevel2 *event);
55
56 private:
57
58 int *_trackTof;
59 float _resMax, _qualCut, _chi2Cut;
60
61 float _minBeta, _maxBeta;
62
63 };
64
65 #endif /* TOFBETARANGECUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23