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

Contents of /PamCut/TofCuts/TofPatternCut/TofPatternCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 8 17:40:01 2009 UTC (14 years, 11 months ago) by pam-fi
Branch: MAIN
Changes since 1.1: +9 -3 lines
File MIME type: text/plain
Constructor documentation added.

1 /*
2 * TofPatternCut.h
3 *
4 * Created on: 10-mar-2009
5 * Author: Elena Vannuccini
6 */
7
8 /*! @file TofPatternCut.h The ToFPatternCut class definition file */
9
10 #ifndef TOFPATTERNCUT_H_
11 #define TOFPATTERNCUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 /*! @brief The Tof-pattern cut.
16 *
17 * Requirements:
18 * - not more than 1 hit paddle on S11 S12 S21 S22;
19 * - at least 1 hit paddle on S1 and S2;
20 * - not more than 3 hit PMTs (only TDC hits with tdc<4095) outside track;
21 * on S11 and S12;
22 * - if there is a hit paddle, the PMTs (TDC hits) must be associated to the track;
23 * - if no PMTs (TDC hits) are associated to the track, there must be no hit paddles.
24 */
25 class TofPatternCut: public PamCut {
26
27 public:
28 /*! @brief Constructor.
29 *
30 * @param cutName The cut's name.
31 * @param standalone If true, the standalone track will be used; otherwise, track
32 * from tracker will be used.
33 * @param notrk The number of the physical track to use.
34 */
35 TofPatternCut(const char *cutName, bool standalone = false, int notrk = 0) :
36 PamCut(cutName), _standalone(standalone), _notrk(notrk) {
37 }
38 /*! @brief Destructor. */
39 ~TofPatternCut() {
40 }
41
42 /*! @brief The ToF-pattern check.
43 *
44 * @param event The event to analyze.
45 * @return #CUTOK if the event pattern matches the required characteristics.
46 */
47 int Check(PamLevel2 *event);
48
49 /*! @brief Counts the number of hit PMTs (with tdc signal) outside track
50 *
51 * @param event The event to analyze.
52 * @param plane Plane number (0-5 = S11-S32).
53 */
54 int GetNHitPMTsOutsideTrack(PamLevel2 *event, int plane);
55
56 /*! @brief Set standalone ToF track. */
57 inline void SetStandalone(int yes) {
58 if (yes)
59 _standalone = true;
60 else
61 _standalone = false;
62 }
63
64 /*! @brief Set (physical) track number (0,1,...). Default is 0 (the first). */
65 inline void SetTrackNumber(int n) {
66 _notrk = n;
67 }
68
69
70 private:
71
72 bool _standalone;
73 int _notrk;
74
75 };
76 #endif /* TOFPATTERNCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23