| 1 |
pam-fi |
1.1 |
/* |
| 2 |
|
|
* CaloTrackCut.h |
| 3 |
|
|
* |
| 4 |
|
|
* Created on: 17-mar-2009 |
| 5 |
|
|
* Author: Nicola Mori |
| 6 |
|
|
*/ |
| 7 |
|
|
|
| 8 |
|
|
/*! @file CaloTrackCut.h The CaloTrackCut class definition file */ |
| 9 |
|
|
|
| 10 |
pam-fi |
1.4 |
#ifndef NO_CALOAXIS |
| 11 |
|
|
|
| 12 |
pam-fi |
1.1 |
#ifndef CALOTRACKCUT_H_ |
| 13 |
|
|
#define CALOTRACKCUT_H_ |
| 14 |
|
|
|
| 15 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
| 16 |
pam-fi |
1.4 |
#include <CaloAxis.h> |
| 17 |
pam-fi |
1.1 |
|
| 18 |
|
|
/*! @brief The calorimeter track cut. |
| 19 |
|
|
* Checks for the existence of a track in the calorimeter, using the CaloAxis routine. |
| 20 |
|
|
* WARNING: Check() assumes that level 1 data for the calorimeter exists. |
| 21 |
|
|
*/ |
| 22 |
|
|
|
| 23 |
|
|
class CaloTrackCut: public PamCut { |
| 24 |
|
|
|
| 25 |
|
|
public: |
| 26 |
|
|
/*! @brief Constructor. |
| 27 |
|
|
* |
| 28 |
|
|
* @param cutName The cut's name. |
| 29 |
pam-fi |
1.3 |
* @param showerFit If false, a single-track fits (FitAxis) is performed; if true, a shower fit (FitShower) is performed |
| 30 |
pam-fi |
1.2 |
* |
| 31 |
pam-fi |
1.1 |
*/ |
| 32 |
pam-fi |
1.2 |
CaloTrackCut(const char *cutName, Bool_t showerFit=false) : |
| 33 |
|
|
PamCut(cutName), _showerFit(showerFit) { |
| 34 |
pam-fi |
1.1 |
} |
| 35 |
|
|
/*! @brief Destructor. */ |
| 36 |
|
|
~CaloTrackCut() { |
| 37 |
|
|
} |
| 38 |
|
|
|
| 39 |
|
|
/*! @brief The calorimeter track check. |
| 40 |
|
|
* |
| 41 |
|
|
* @param event The event to analyze. |
| 42 |
|
|
* @return #CUTOK if it is possible to identify a meaningful (chi2 > 0) track in the calorimeter. |
| 43 |
|
|
* @return 0 otherwise. |
| 44 |
|
|
*/ |
| 45 |
|
|
int Check(PamLevel2 *event); |
| 46 |
|
|
|
| 47 |
|
|
/*!@{*/ |
| 48 |
|
|
/*! @brief The CaloAxis objects for the last track. |
| 49 |
|
|
* These objects stores information about the track of the last examined event. |
| 50 |
|
|
*/ |
| 51 |
|
|
CaloAxis xCaloAxis; |
| 52 |
|
|
CaloAxis yCaloAxis; |
| 53 |
|
|
/*!@}*/ |
| 54 |
pam-fi |
1.2 |
|
| 55 |
|
|
private: |
| 56 |
|
|
|
| 57 |
|
|
Bool_t _showerFit; |
| 58 |
|
|
|
| 59 |
pam-fi |
1.1 |
}; |
| 60 |
|
|
|
| 61 |
|
|
#endif /* CALOTRACKCUT_H_ */ |
| 62 |
pam-fi |
1.4 |
#endif /* NO_CALOAXIS */ |