/* * TrkPhSinCut.h * * Created on: 13-mar-2009 * Author: Nicola Mori, S. Ricciarini */ /*! @file TrkPhSinCut.h The TrkPhSinCut class definition file */ #ifndef TRKPHSINCUT_H_ #define TRKPHSINCUT_H_ #include "../../PamCutBase/PamCutBase.h" /*! @brief The single physical track cut. * Only events with a single physical track (selected according to the specified sorting method) survive this selection. */ class TrkPhSinCut: public PamCut { public: /*! @brief Constructor. * * @param cutName The cut's name. * @param trkAlg The tracking algorythm used to check the track. * @param sortingMethod The sorting method to be used to select the track. * In order to perform consistent tracking cuts, the same tracking algorythm should be set in subsequent cuts * ("STD","EXT","EXTF","NUCSTD","NUCEXT","NUCEXTF") */ TrkPhSinCut(const char *cutName, const char *alg, const char *sortingMethod) : PamCut(cutName), trkAlg(alg), _sortingMethod(sortingMethod) { // pamTrack = new PamTrack(); } /* /\*! @brief Constructor. */ /* * */ /* * @param cutName The cut's name. */ /* * @param sortingMethod The sorting method to be used to select the track. */ /* * (standard tracking algorythm is assumed) */ /* *\/ */ /* TrkPhSinCut(const char *cutName, const char *sortingMethod) : */ /* PamCut(cutName), _sortingMethod(sortingMethod) { */ /* _trkAlg = "STD"; */ /* } */ /*! @brief Destructor. */ ~TrkPhSinCut() { } /*! @brief The single physical track check. * * @param event The event to analyze. * @return #CUTOK if a single physical track has been found in the event * @return 0 if the event has not exactly one physical track or if the track is meaningless * (nstep > 100 or chi2 < 0.) */ int Check(PamLevel2 *event); const char *trkAlg;///