| 11 |
#define CALONOTINTCUT_H_ |
#define CALONOTINTCUT_H_ |
| 12 |
|
|
| 13 |
#include "../../PamCutBase/PamCutBase.h" |
#include "../../PamCutBase/PamCutBase.h" |
| 14 |
#include "../../CaloAxis2.h" |
#ifndef NO_CALOAXIS |
| 15 |
|
#include <CaloAxis.h> |
| 16 |
|
#endif /* NO_CALOAXIS */ |
| 17 |
|
|
| 18 |
/*! @brief The non-interacting track cut. |
/*! @brief The non-interacting track cut. |
| 19 |
* This check discards all the events who interacts in the calorimeter. It is possible to choose the track to use for |
* This check discards all the events who interacts in the calorimeter. It is possible to choose the track to use for |
| 37 |
* @param pamTrack Pointer to the Pamela track object. |
* @param pamTrack Pointer to the Pamela track object. |
| 38 |
* @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO. |
* @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO. |
| 39 |
*/ |
*/ |
| 40 |
CaloNotIntCut(const char *cutName, PamTrack **pamTrack, float qRatioMin=0.8) : |
|
| 41 |
PamCut(cutName), _pamTrack(pamTrack), _xCaloAxis(NULL), _yCaloAxis(NULL), _qRatioMin(qRatioMin) { |
CaloNotIntCut(const char *cutName, PamTrack **pamTrack, float qRatioMin = 0.8) : |
| 42 |
|
PamCut(cutName), _pamTrack(pamTrack), _qRatioMin(qRatioMin) { |
| 43 |
|
#ifndef NO_CALOAXIS |
| 44 |
|
_xCaloAxis = _yCaloAxis = NULL; |
| 45 |
|
#endif /* NO_CALOAXIS */ |
| 46 |
} |
} |
| 47 |
|
|
| 48 |
/*! @brief Constructor for calorimeter track. |
/*! @brief Constructor for calorimeter track. |
| 55 |
* @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO. |
* @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO. |
| 56 |
* @return |
* @return |
| 57 |
*/ |
*/ |
| 58 |
CaloNotIntCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float qRatioMin=0.8) : |
#ifndef NO_CALOAXIS |
| 59 |
|
CaloNotIntCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float qRatioMin = 0.8) : |
| 60 |
PamCut(cutName), _pamTrack(NULL), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _qRatioMin(qRatioMin) { |
PamCut(cutName), _pamTrack(NULL), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _qRatioMin(qRatioMin) { |
| 61 |
} |
} |
| 62 |
|
#endif /* NO_CALOAXIS */ |
| 63 |
//TODO: aggiungere il costruttore per il TOF. |
//TODO: aggiungere il costruttore per il TOF. |
| 64 |
|
|
| 65 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
| 78 |
private: |
private: |
| 79 |
|
|
| 80 |
PamTrack **_pamTrack; |
PamTrack **_pamTrack; |
| 81 |
|
#ifndef NO_CALOAXIS |
| 82 |
CaloAxis *_xCaloAxis, *_yCaloAxis; |
CaloAxis *_xCaloAxis, *_yCaloAxis; |
| 83 |
|
#endif /* NO_CALOAXIS */ |
| 84 |
float _qRatioMin; |
float _qRatioMin; |
| 85 |
|
|
| 86 |
}; |
}; |