| 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. |
| 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. |
| 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() { |
| 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 |
|
|