| 15 |
/*! @brief The Tof-pattern cut. |
/*! @brief The Tof-pattern cut. |
| 16 |
* |
* |
| 17 |
* Requirements: |
* Requirements: |
| 18 |
* - not more than 1 hit paddle on S11 S12 S21 S22; |
* - (1) no more than 1 hit paddle on S11 S12 S21 S22; |
| 19 |
* - at least 1 hit paddle on S1 and S2; |
* - (2) at least 1 hit paddle on S1 and S2; |
| 20 |
* - not more than 3 hit PMTs (only TDC hits with tdc<4095) outside track; |
* - (3) less than 3 hit PMTs (only TDC hits with tdc<4095) outside track on S11 and S12; |
| 21 |
* on S11 and S12; |
* - (4) if there is a hit paddle, it must be associated to the track. |
|
* - if there is a hit paddle, the PMTs (TDC hits) must be associated to the track; |
|
|
* - if no PMTs (TDC hits) are associated to the track, there must be no hit paddles. |
|
| 22 |
*/ |
*/ |
| 23 |
class TofPatternCut: public PamCut { |
class TofPatternCut: public PamCut { |
| 24 |
|
|
| 25 |
public: |
public: |
| 26 |
/*! @brief Constructor. */ |
/*! @brief Constructor. |
| 27 |
TofPatternCut(const char *cutName) : |
* |
| 28 |
PamCut(cutName), _standalone(false), _notrk(0) { |
* @param cutName The cut's name. |
| 29 |
|
* @param standalone If true, the standalone track will be used; otherwise, track |
| 30 |
|
* from tracker will be used. |
| 31 |
|
* @param notrk The number of the physical track to use. |
| 32 |
|
*/ |
| 33 |
|
TofPatternCut(const char *cutName, bool standalone = false, int notrk = 0) : |
| 34 |
|
PamCut(cutName), _standalone(standalone), _notrk(notrk) { |
| 35 |
} |
} |
| 36 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
| 37 |
~TofPatternCut() { |
~TofPatternCut() { |