| 1 |
/* |
| 2 |
* TrkIonCut.h |
| 3 |
* |
| 4 |
* Created on: 13-mar-2009 |
| 5 |
* Author: Nicola Mori, S. Ricciarini |
| 6 |
*/ |
| 7 |
|
| 8 |
/*! @file TrkIonCut.h The TrkIonCut class definition file */ |
| 9 |
|
| 10 |
#ifndef TRKIONCUT_H_ |
| 11 |
#define TRKIONCUT_H_ |
| 12 |
|
| 13 |
#include "../../PamCutBase/PamCutBase.h" |
| 14 |
|
| 15 |
/*! @brief The tracker ionization cut. |
| 16 |
* Cut on dE/dx to select MIP. |
| 17 |
* CUT DEPENDENCIES: TrkPhysSin for object trkTrack |
| 18 |
*/ |
| 19 |
|
| 20 |
class TrkIonCut: public PamCut { |
| 21 |
|
| 22 |
public: |
| 23 |
/*! @brief Constructor. |
| 24 |
* |
| 25 |
* @param cutName The cut's name. |
| 26 |
* @param maxRelease The maximum mean ionization (in MIP) in the tracker planes above which an event is discarded. Default: 3. |
| 27 |
* @param minRelease The minimum mean ionization (in MIP) in the tracker planes below which an event is discarded. Default: 0. |
| 28 |
*/ |
| 29 |
TrkIonCut(const char *cutName, float maxRelease = 3., float minRelease = 0.) : |
| 30 |
PamCut(cutName), _maxRelease(maxRelease), _minRelease(minRelease) { |
| 31 |
} |
| 32 |
/*! @brief Destructor. */ |
| 33 |
~TrkIonCut() { |
| 34 |
} |
| 35 |
|
| 36 |
/*! @brief The tracker ionization check. |
| 37 |
* |
| 38 |
* If the mean energy release in the tracker planes in MIP is greater |
| 39 |
* than the threshold (constructor's parameter) the event is discarded. |
| 40 |
* @param event The event to analyze. |
| 41 |
* @return #CUTOK if mean dE/dx is less than maxRelease and more than minRelease. |
| 42 |
* @return 0 otherwise. |
| 43 |
*/ |
| 44 |
int Check(PamLevel2 *event); |
| 45 |
|
| 46 |
private: |
| 47 |
|
| 48 |
float _maxRelease, _minRelease; |
| 49 |
|
| 50 |
}; |
| 51 |
#endif /* TRKIONCUT_H_ */ |