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

Annotation of /PamCut/TrkCuts/TrkGeomCut/TrkGeomCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Mar 10 08:54:20 2010 UTC (14 years, 9 months ago) by pam-fi
Branch: MAIN
Changes since 1.1: +9 -7 lines
File MIME type: text/plain
Support for independent tolerances on magnet planes added.

1 pam-fi 1.1 /*
2     * TrkGeomCut.h
3     *
4     * Created on: 13-mar-2009
5 pam-fi 1.2 * Author: N. Mori, S. Ricciarini
6 pam-fi 1.1 */
7    
8     /*! @file TrkGeomCut.h The TrkGeomCut class definition file */
9    
10     #ifndef TRKGEOMCUT_H_
11     #define TRKGEOMCUT_H_
12    
13     #include "../../PamCutBase/PamCutBase.h"
14    
15     /*! @brief The tracker fiducial acceptance cut.
16     * This cut checks if the track is inside the fiducial acceptance chosen for the tracker.
17     * CUT DEPENDENCIES: TrkPhysSin for object trkTrack
18     */
19    
20     class TrkGeomCut: public PamCut {
21    
22     public:
23     /*! @brief Constructor.
24     *
25     * The parameters are the width of the regions on each side of a view that define the
26     * fiducial acceptance region. The detector size is therefore reduce by an amount of xTol
27     * (yTol) on each side of the X (Y) view.
28     *
29     * @param cutName The cut's name.
30 pam-fi 1.2 * @param xTol The fiducial border on X view for a generic plane in cm.
31     * @param yTol The fiducial border on Y view for a generic plane in cm.
32     * @param xMagnTol The fiducial border on X view for M1 and M2 in cm.
33     * @param yMagnTol The fiducial border on Y view for M1 and M2 in cm.
34 pam-fi 1.1 */
35 pam-fi 1.2 TrkGeomCut(const char *cutName, Float_t xTol=0.15, Float_t yTol=0.15, Float_t xMagnTol=0.15, Float_t yMagnTol=0.15) :
36     PamCut(cutName), _xTol(xTol), _yTol(yTol), _xMagnTol(xMagnTol), _yMagnTol(yMagnTol) {
37 pam-fi 1.1 }
38     /*! @brief Destructor. */
39     ~TrkGeomCut() {
40     }
41    
42     /*! @brief The tracker fiducial acceptance check.
43     *
44     * @param event The event to analyze.
45     * @return #CUTOK if the track is inside the fiducial acceptance.
46     * @return 0 otherwise.
47     */
48     int Check(PamLevel2 *event);
49    
50     private:
51    
52 pam-fi 1.2 Float_t _xTol, _yTol;
53     Float_t _xMagnTol, _yMagnTol;
54 pam-fi 1.1
55     };
56     #endif /* TRKGEOMCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23