| 1 |
pam-fi |
1.1 |
/* |
| 2 |
|
|
* TrkGeomCut.h |
| 3 |
|
|
* |
| 4 |
|
|
* Created on: 13-mar-2009 |
| 5 |
|
|
* Author: Nicola Mori, S. Ricciarini |
| 6 |
|
|
*/ |
| 7 |
|
|
|
| 8 |
|
|
/*! @file TrkGeomCut.h The TrkGeomCut class definition file */ |
| 9 |
|
|
|
| 10 |
|
|
#ifndef TRKGEOMCUT_H_ |
| 11 |
|
|
#define TRKGEOMCUT_H_ |
| 12 |
|
|
|
| 13 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
| 14 |
|
|
|
| 15 |
|
|
/*! @brief The tracker fiducial acceptance cut. |
| 16 |
|
|
* This cut checks if the track is inside the fiducial acceptance chosen for the tracker. |
| 17 |
|
|
* CUT DEPENDENCIES: TrkPhysSin for object trkTrack |
| 18 |
|
|
*/ |
| 19 |
|
|
|
| 20 |
|
|
class TrkGeomCut: public PamCut { |
| 21 |
|
|
|
| 22 |
|
|
public: |
| 23 |
|
|
/*! @brief Constructor. |
| 24 |
|
|
* |
| 25 |
|
|
* The parameters are the width of the regions on each side of a view that define the |
| 26 |
|
|
* fiducial acceptance region. The detector size is therefore reduce by an amount of xTol |
| 27 |
|
|
* (yTol) on each side of the X (Y) view. |
| 28 |
|
|
* |
| 29 |
|
|
* @param cutName The cut's name. |
| 30 |
|
|
* @param xTol The fiducial border on X view in cm. |
| 31 |
|
|
* @param yTol The fiducial border on Y view in cm. |
| 32 |
|
|
*/ |
| 33 |
|
|
TrkGeomCut(const char *cutName, float xTol, float yTol) : |
| 34 |
|
|
PamCut(cutName), _xTol(xTol), _yTol(yTol) { |
| 35 |
|
|
} |
| 36 |
|
|
/*! @brief Destructor. */ |
| 37 |
|
|
~TrkGeomCut() { |
| 38 |
|
|
} |
| 39 |
|
|
|
| 40 |
|
|
/*! @brief The tracker fiducial acceptance check. |
| 41 |
|
|
* |
| 42 |
|
|
* @param event The event to analyze. |
| 43 |
|
|
* @return #CUTOK if the track is inside the fiducial acceptance. |
| 44 |
|
|
* @return 0 otherwise. |
| 45 |
|
|
*/ |
| 46 |
|
|
int Check(PamLevel2 *event); |
| 47 |
|
|
|
| 48 |
|
|
private: |
| 49 |
|
|
|
| 50 |
|
|
float _xTol; |
| 51 |
|
|
float _yTol; |
| 52 |
|
|
|
| 53 |
|
|
}; |
| 54 |
|
|
#endif /* TRKGEOMCUT_H_ */ |