2 |
* TrkHitQualCut.h |
* TrkHitQualCut.h |
3 |
* |
* |
4 |
* Created on: 13-mar-2009 |
* Created on: 13-mar-2009 |
5 |
* Author: Nicola Mori, S. Ricciarini |
* Author: Nicola Mori |
6 |
*/ |
*/ |
7 |
|
|
8 |
/*! @file TrkHitQualCut.h The TrkHitQualCut class definition file */ |
/*! @file TrkHitQualCut.h The TrkHitQualCut class definition file */ |
14 |
|
|
15 |
/*! @brief The tracker hit quality cut. |
/*! @brief The tracker hit quality cut. |
16 |
* |
* |
17 |
* This cut performs a check on the number of hits on X and Y view |
* This cut performs a check on the number of hits on X and Y view, on the X lever arm and on the impact angle. |
|
* and on the lever arm. |
|
18 |
* |
* |
19 |
* CUT DEPENDENCIES: TrkPhysSin for object trkTrack |
* CUT DEPENDENCIES: TrkPhysSin for object trkTrack |
20 |
*/ |
*/ |
25 |
/*! @brief Constructor. |
/*! @brief Constructor. |
26 |
* |
* |
27 |
* @param cutName The cut's name. |
* @param cutName The cut's name. |
28 |
* @param xMinHit The minimum hits along the track for X view |
* @param xMinHit The minimum number of hits along the track for X view |
29 |
* @param yMinHit The minimum hits along the track for X view |
* @param yMinHit The minimum number of hits along the track for X view |
30 |
* @param xLeverArm The Minimum lever arm |
* @param xLeverArm The minimum lever arm for X view |
31 |
|
* @param xAngMin The minimum XZ angle (degrees) measured from vertical axis on the first TRK plane (can either positive or negative) |
32 |
|
* @param xAngMax The maximum XZ angle (degrees) measured from vertical axis on the first TRK plane (can either positive or negative) |
33 |
*/ |
*/ |
34 |
TrkHitQualCut(const char *cutName, int xMinHit, int yMinHit, int xLeverArm) : |
TrkHitQualCut(const char *cutName, int xMinHit, int yMinHit, int xLeverArm, Float_t xAngMin=-90., Float_t xAngMax=+90.) : |
35 |
PamCut(cutName), _xMinHit(xMinHit), _yMinHit(yMinHit), _xLeverArm(xLeverArm) { |
PamCut(cutName), _xMinHit(xMinHit), _yMinHit(yMinHit), _xLeverArm(xLeverArm), _xAngMin(xAngMin), _xAngMax(xAngMax) { |
36 |
} |
} |
37 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
38 |
~TrkHitQualCut() { |
~TrkHitQualCut() { |
40 |
|
|
41 |
/*! @brief The tracker hit quality check. |
/*! @brief The tracker hit quality check. |
42 |
* |
* |
43 |
* The event is rejected if X hits or Y hist or X lever arm is less than the |
* The event is rejected if number of X hits or Y hits or X lever arm is less than the |
44 |
* parameter passed to the constructor. |
* parameter passed to the constructor or if the angle is not inside the specified range. |
45 |
* |
* |
46 |
* @see TrkHitQualCut |
* @see TrkHitQualCut |
47 |
* @param event The event to analyze. |
* @param event The event to analyze. |
48 |
* @return #CUTOK if X hits, Y hits and X lever arm are greater or equal than the minimum values. |
* @return #CUTOK if X hits, Y hits and X lever arm are greater or equal than the minimum values and if the XZ angle satisfies the condition xAngMin < angle < xAngMax. |
49 |
* @return 0 if at least one of the above conditions is not matched. |
* @return 0 if at least one of the above conditions is not matched. |
50 |
*/ |
*/ |
|
/*TODO: implementare un tipo di ritorno diverso a seconda che fallisca il check sul numero di hit o quello |
|
|
* sul lever arm (opzionale) |
|
|
*/ |
|
51 |
int Check(PamLevel2 *event); |
int Check(PamLevel2 *event); |
52 |
|
|
53 |
private: |
private: |
54 |
|
|
55 |
int _xMinHit, _yMinHit, _xLeverArm; |
int _xMinHit, _yMinHit, _xLeverArm; |
56 |
|
Float_t _xAngMin, _xAngMax; |
57 |
|
|
58 |
}; |
}; |
59 |
#endif /* TRKHITQUALCUT_H_ */ |
#endif /* TRKHITQUALCUT_H_ */ |