/[PAMELA software]/PamCut/MiscCuts/TrackRedGeomCut/TrackRedGeomCut.h
ViewVC logotype

Annotation of /PamCut/MiscCuts/TrackRedGeomCut/TrackRedGeomCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Jan 18 16:34:18 2010 UTC (14 years, 10 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, BeforeMergingFromV8_1
Branch point for: V8
File MIME type: text/plain
Added to repository.

1 pam-fi 1.1 /*
2     * TrackRedGeomCut.h
3     *
4     * Created on: 30-nov-2009
5     * Author: S. Ricciarini
6     */
7    
8     /*! @file TrackRedGeomCut.h The TrackRedGeomCut class definition file */
9    
10     #ifndef TRACKREDGEOMCUT_H_
11     #define TRACKREDGEOMCUT_H_
12    
13     #include "../../PamCutBase/PamCutBase.h"
14     #include "../../CaloAxis2.h"
15    
16     /*! @brief The track reduced acceptance (i.e. rectangular pipe) cut.
17     * This cut checks if the track is inside the reduced acceptance chosen.
18     * The check can be done using either the tracker's track or CaloAxis track.
19     * CUT DEPENDENCIES: objects pamTrack, xCaloAxis, yCaloAxis.
20     */
21    
22     class TrackRedGeomCut: public PamCut {
23    
24     public:
25     /*! @brief Constructor.
26     *
27     * The parameters are the X and Y lengths of the rectangular pipe define the reduced acceptance region (centered on PAMELA vertical central axis).
28     *
29     * @param cutName The cut's name.
30     * @param pamTrack The pointer to *pamTrack object
31     * @param xDim The X-side length in cm.
32     * @param yDim The Y-side length in cm.
33     */
34     TrackRedGeomCut(const char *cutName, PamTrack **pamTrack, float xDim, float yDim) :
35     PamCut(cutName), _pamTrack(pamTrack), _xCaloAxis(NULL), _yCaloAxis(NULL), _xDim(xDim), _yDim(yDim) {
36     }
37    
38     /*! @brief Constructor.
39     *
40     * The CaloAxis arguments are pointers to objects which contain the CaloAxis calorimeter
41     * track information for current event.
42     *
43     * @param cutName The cut's name.
44     * @param xCaloAxis The pointer to the CaloAxis object for X axis.
45     * @param yCaloAxis The pointer to the CaloAxis object for Y axis.
46     * @param xDim The X-side length in cm.
47     * @param yDim The Y-side length in cm.
48     */
49     TrackRedGeomCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float xDim, float yDim) :
50     PamCut(cutName), _pamTrack(NULL), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _xDim(xDim), _yDim(yDim) {
51     }
52    
53     /*! @brief Destructor. */
54     ~TrackRedGeomCut() {
55     }
56    
57     /*! @brief The track reduced acceptance check.
58     *
59     * @param event The event to analyze.
60     * @return #CUTOK if the track is inside the reduced acceptance.
61     * @return 0 otherwise.
62     */
63     int Check(PamLevel2 *event);
64    
65     private:
66    
67     PamTrack **_pamTrack;
68     CaloAxis *_xCaloAxis, *_yCaloAxis;
69     float _xDim;
70     float _yDim;
71    
72     };
73     #endif /* TRACKREDGEOMCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23