/[PAMELA software]/PamCut/TrkCuts/TrkHitQualCut/TrkHitQualCut.h
ViewVC logotype

Contents of /PamCut/TrkCuts/TrkHitQualCut/TrkHitQualCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 27 13:30:08 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: DEV
CVS Tags: v0r00
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

1 /*
2 * TrkHitQualCut.h
3 *
4 * Created on: 13-mar-2009
5 * Author: Nicola Mori, S. Ricciarini
6 */
7
8 /*! @file TrkHitQualCut.h The TrkHitQualCut class definition file */
9
10 #ifndef TRKHITQUALCUT_H_
11 #define TRKHITQUALCUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 /*! @brief The tracker hit quality cut.
16 *
17 * This cut performs a check on the number of hits on X and Y view
18 * and on the lever arm.
19 *
20 * CUT DEPENDENCIES: TrkPhysSin for object trkTrack
21 */
22
23 class TrkHitQualCut: public PamCut {
24
25 public:
26 /*! @brief Constructor.
27 *
28 * @param cutName The cut's name.
29 * @param xMinHit The minimum hits along the track for X view
30 * @param yMinHit The minimum hits along the track for X view
31 * @param xLeverArm The Minimum lever arm
32 */
33 TrkHitQualCut(const char *cutName, int xMinHit, int yMinHit, int xLeverArm) :
34 PamCut(cutName), _xMinHit(xMinHit), _yMinHit(yMinHit), _xLeverArm(xLeverArm) {
35 }
36 /*! @brief Destructor. */
37 ~TrkHitQualCut() {
38 }
39
40 /*! @brief The tracker hit quality check.
41 *
42 * The event is rejected if X hits or Y hist or X lever arm is less than the
43 * parameter passed to the constructor.
44 *
45 * @see TrkHitQualCut
46 * @param event The event to analyze.
47 * @return #CUTOK if X hits, Y hits and X lever arm are greater or equal than the minimum values.
48 * @return 0 if at least one of the above conditions is not matched.
49 */
50 /*TODO: implementare un tipo di ritorno diverso a seconda che fallisca il check sul numero di hit o quello
51 * sul lever arm (opzionale)
52 */
53 int Check(PamLevel2 *event);
54
55 private:
56
57 int _xMinHit, _yMinHit, _xLeverArm;
58
59 };
60 #endif /* TRKHITQUALCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23