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

Contents of /PamCut/TofCuts/TofBetaRigHCut/TofBetaRigHCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 5 13:33:48 2009 UTC (15 years, 4 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
Added to repository.

1 /*
2 * TofBetaRigCut.h
3 *
4 * Created on: 22-apr-2009
5 * Author: S. Ricciarini
6 */
7
8 /*! @file TofBetaRigHCut.h The TofBetaRigHCut class definition file */
9
10 #ifndef TOFBETARIGHCUT_H_
11 #define TOFBETARIGHCUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 #include <TH2F.h>
16
17 /*! @brief The match between TOF beta modulus and TRK beta modulus for H (p or d).
18 * This cut discards all the events for which the absolute RELATIVE difference between TRK beta modulus (calculated from rigidity of TRK track, mass M=1 OR 2 and charge Z=1) and TOF beta modulus is greater than the threshold.
19 * Rigidity is defined as p/Z (GV) where Z is the particle charge and p the momentum modulus.
20 */
21 class TofBetaRigHCut: public PamCut {
22
23 public:
24 /*! @brief Constructor.
25 *
26 * @param cutName The cut's name.
27 * @param threshold The rigidity-difference threshold (in GV)
28 */
29 TofBetaRigHCut(const char *cutName, float threshold) :
30 PamCut(cutName), _threshold(threshold) {
31
32 }
33 /*! @brief Destructor. */
34 ~TofBetaRigHCut() {
35
36 }
37
38 /*! @brief The rigidity check.
39 *
40 * @param event The event to analyze.
41 * @return #CUTOK if the beta difference is less than the threshold
42 * @return 0 otherwise.
43 */
44 int Check(PamLevel2 *event);
45
46 private:
47
48 float _threshold;
49
50 };
51 #endif /* TOFBETARIGHCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23