--- PamCut/TrkCuts/TrkGeomCut/TrkGeomCut.h 2009/05/27 13:30:08 1.1.1.1 +++ PamCut/TrkCuts/TrkGeomCut/TrkGeomCut.h 2015/03/25 17:38:09 1.4 @@ -2,7 +2,7 @@ * TrkGeomCut.h * * Created on: 13-mar-2009 - * Author: Nicola Mori, S. Ricciarini + * Author: N. Mori, S. Ricciarini */ /*! @file TrkGeomCut.h The TrkGeomCut class definition file */ @@ -24,14 +24,18 @@ * * The parameters are the width of the regions on each side of a view that define the * fiducial acceptance region. The detector size is therefore reduce by an amount of xTol - * (yTol) on each side of the X (Y) view. + * (yTol) on each side of the X (Y) view for all the GF planes except fot M1 and M2. For these, + * xMagnTol and yMagnTol will be used as parameters. * * @param cutName The cut's name. - * @param xTol The fiducial border on X view in cm. - * @param yTol The fiducial border on Y view in cm. + * @param trkAlg The tracking algorythm used to check the track. + * @param xTol The fiducial border on X view for a generic plane in cm (except M1 and M2). + * @param yTol The fiducial border on Y view for a generic plane in cm (except M1 and M2). + * @param xMagnTol The fiducial border on X view for M1 and M2 in cm. + * @param yMagnTol The fiducial border on Y view for M1 and M2 in cm. */ - TrkGeomCut(const char *cutName, float xTol, float yTol) : - PamCut(cutName), _xTol(xTol), _yTol(yTol) { + TrkGeomCut(const char *cutName, const char *trkAlg, Float_t xTol=0.15, Float_t yTol=0.15, Float_t xMagnTol=0.15, Float_t yMagnTol=0.15) : + PamCut(cutName), _trkAlg(trkAlg), _xTol(xTol), _yTol(yTol), _xMagnTol(xMagnTol), _yMagnTol(yMagnTol) { } /*! @brief Destructor. */ ~TrkGeomCut() { @@ -45,10 +49,14 @@ */ int Check(PamLevel2 *event); + + + private: - float _xTol; - float _yTol; + const char *_trkAlg; + Float_t _xTol, _yTol; + Float_t _xMagnTol, _yMagnTol; }; #endif /* TRKGEOMCUT_H_ */