| 1 |
/* |
| 2 |
* TrkPhSinCut.h |
| 3 |
* |
| 4 |
* Created on: 13-mar-2009 |
| 5 |
* Author: Nicola Mori, S. Ricciarini |
| 6 |
*/ |
| 7 |
|
| 8 |
/*! @file TrkPhSinCut.h The TrkPhSinCut class definition file */ |
| 9 |
|
| 10 |
#ifndef TRKPHSINCUT_H_ |
| 11 |
#define TRKPHSINCUT_H_ |
| 12 |
|
| 13 |
#include "../../PamCutBase/PamCutBase.h" |
| 14 |
|
| 15 |
/*! @brief The single physical track cut. |
| 16 |
* Only events with a single physical track (selected according to the specified sorting method) survive this selection. |
| 17 |
*/ |
| 18 |
|
| 19 |
class TrkPhSinCut: public PamCut { |
| 20 |
|
| 21 |
public: |
| 22 |
|
| 23 |
/*! @brief Constructor. |
| 24 |
* |
| 25 |
* @param cutName The cut's name. |
| 26 |
* @param sortingMethod The sorting method to be used to select the track. |
| 27 |
*/ |
| 28 |
TrkPhSinCut(const char *cutName, const char *sortingMethod) : |
| 29 |
PamCut(cutName), _sortingMethod(sortingMethod) { |
| 30 |
} |
| 31 |
/*! @brief Destructor. */ |
| 32 |
~TrkPhSinCut() { |
| 33 |
} |
| 34 |
|
| 35 |
/*! @brief The single physical track check. |
| 36 |
* |
| 37 |
* @param event The event to analyze. |
| 38 |
* @return #CUTOK if a single physical track has been found in the event |
| 39 |
* @return 0 if the event has not exactly one physical track or if the track is meaningless |
| 40 |
* (nstep > 100 or chi2 < 0.) |
| 41 |
*/ |
| 42 |
int Check(PamLevel2 *event); |
| 43 |
|
| 44 |
int iTrackTof; ///< TOF_index for TRK-track for the last good event. |
| 45 |
|
| 46 |
/*! @brief The TrkTrack for the last good event. |
| 47 |
* |
| 48 |
* When this cut checks an event, it stores its TrkTrack (selected according to the specified sortingMethod). This can then be used by successive cuts. |
| 49 |
*/ |
| 50 |
TrkTrack *trkTrack; |
| 51 |
|
| 52 |
/*! @brief The PamTrack for the last good event. |
| 53 |
* |
| 54 |
* When this cut checks an event, it stores its PamTrack (selected according to the specified sortingMethod). This can then be used by successive cuts. |
| 55 |
*/ |
| 56 |
PamTrack *pamTrack; |
| 57 |
|
| 58 |
private: |
| 59 |
|
| 60 |
const char *_sortingMethod; |
| 61 |
|
| 62 |
}; |
| 63 |
#endif /* TRKPHSINCUT_H_ */ |