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

Diff of /PamCut/MiscCuts/TrackRedGeomCut/TrackRedGeomCut.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Mon Jan 18 16:34:18 2010 UTC revision 1.2 by pam-fi, Thu Jul 8 14:00:09 2010 UTC
# Line 11  Line 11 
11  #define TRACKREDGEOMCUT_H_  #define TRACKREDGEOMCUT_H_
12    
13  #include "../../PamCutBase/PamCutBase.h"  #include "../../PamCutBase/PamCutBase.h"
14  #include "../../CaloAxis2.h"  #include <CaloAxis.h>
15    
16  /*! @brief The track reduced acceptance (i.e. rectangular pipe) cut.  /*! @brief The track reduced acceptance (i.e. rectangular pipe) cut.
17   * This cut checks if the track is inside the reduced acceptance chosen.   * This cut checks if the track is inside the reduced acceptance chosen.
# Line 32  public: Line 32  public:
32     * @param yDim The Y-side length in cm.     * @param yDim The Y-side length in cm.
33     */     */
34    TrackRedGeomCut(const char *cutName, PamTrack **pamTrack, float xDim, float yDim) :    TrackRedGeomCut(const char *cutName, PamTrack **pamTrack, float xDim, float yDim) :
35      PamCut(cutName), _pamTrack(pamTrack), _xCaloAxis(NULL), _yCaloAxis(NULL), _xDim(xDim), _yDim(yDim) {      PamCut(cutName), _pamTrack(pamTrack), _xDim(xDim), _yDim(yDim) {
36    #ifndef NO_CALOAXIS
37        _xCaloAxis = _yCaloAxis = NULL;
38    #endif /* NO_CALOAXIS */
39    }    }
40    
41    /*! @brief Constructor.    /*! @brief Constructor.
# Line 46  public: Line 49  public:
49     * @param xDim The X-side length in cm.     * @param xDim The X-side length in cm.
50     * @param yDim The Y-side length in cm.     * @param yDim The Y-side length in cm.
51     */     */
52    
53    #ifndef NO_CALOAXIS
54    TrackRedGeomCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float xDim, float yDim) :    TrackRedGeomCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float xDim, float yDim) :
55      PamCut(cutName), _pamTrack(NULL), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _xDim(xDim), _yDim(yDim) {      PamCut(cutName), _pamTrack(NULL), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _xDim(xDim), _yDim(yDim) {
56    }    }
57    #endif /* NO_CALOAXIS */
58    
59    /*! @brief Destructor. */    /*! @brief Destructor. */
60    ~TrackRedGeomCut() {    ~TrackRedGeomCut() {
# Line 65  public: Line 71  public:
71  private:  private:
72    
73    PamTrack **_pamTrack;    PamTrack **_pamTrack;
74    #ifndef NO_CALOAXIS
75    CaloAxis *_xCaloAxis, *_yCaloAxis;    CaloAxis *_xCaloAxis, *_yCaloAxis;
76    #endif /* NO_CALOAXIS */
77    float _xDim;    float _xDim;
78    float _yDim;    float _yDim;
79    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23