| 1 |
pam-fi |
1.1 |
/* |
| 2 |
|
|
* TofDedxS1Cut.h |
| 3 |
|
|
* |
| 4 |
|
|
* Created on: 13-mar-2009 |
| 5 |
|
|
* Author: Nicola Mori, S. Ricciarini |
| 6 |
pam-fi |
1.2 |
* Reworked on: 21-jul-2011 |
| 7 |
|
|
* Author: Nicola Mori, Valeria Di Felice |
| 8 |
pam-fi |
1.1 |
*/ |
| 9 |
|
|
|
| 10 |
|
|
/*! @file TofDedxS1Cut.h The TofDedxS1Cut class definition file */ |
| 11 |
|
|
|
| 12 |
|
|
#ifndef TOFDEDXS1CUT_H_ |
| 13 |
|
|
#define TOFDEDXS1CUT_H_ |
| 14 |
|
|
|
| 15 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
| 16 |
|
|
|
| 17 |
|
|
|
| 18 |
pam-fi |
1.2 |
/*! @brief A cut on energy release on S1. |
| 19 |
pam-fi |
1.1 |
* |
| 20 |
pam-fi |
1.2 |
* This cut discards events whose mean dE/dx on S11+S12 is greater than a specified functional form. |
| 21 |
|
|
* Currently, this functional form is: |
| 22 |
|
|
* |
| 23 |
|
|
* <dE/dx> < (3.102 - 2.6*TMath::Log(R))*(R<1.05) + 3.*(R=1.05) |
| 24 |
|
|
* |
| 25 |
|
|
* Since this cut uses the rigidity, it is necessary to enforce the existence of a physical track |
| 26 |
|
|
* using #TrkPhsinCut before using this cut. |
| 27 |
pam-fi |
1.1 |
*/ |
| 28 |
|
|
|
| 29 |
|
|
class TofDedxS1Cut: public PamCut { |
| 30 |
|
|
|
| 31 |
|
|
public: |
| 32 |
|
|
/*! @brief Constructor. |
| 33 |
|
|
* |
| 34 |
|
|
* @param cutName The cut's name. |
| 35 |
|
|
* |
| 36 |
|
|
*/ |
| 37 |
pam-fi |
1.2 |
TofDedxS1Cut(const char *cutName): |
| 38 |
|
|
PamCut(cutName){ |
| 39 |
pam-fi |
1.1 |
} |
| 40 |
|
|
/*! @brief Destructor. */ |
| 41 |
|
|
~TofDedxS1Cut() { |
| 42 |
|
|
} |
| 43 |
|
|
|
| 44 |
|
|
/*! @brief The TofDedxS1 check. |
| 45 |
|
|
* |
| 46 |
|
|
* @param event The event to analyze. |
| 47 |
pam-fi |
1.2 |
* @return #CUTOK if <dE/dx> is lesser that the threshold function. |
| 48 |
pam-fi |
1.1 |
* @return 0 otherwise |
| 49 |
|
|
*/ |
| 50 |
|
|
int Check(PamLevel2 *event); |
| 51 |
|
|
|
| 52 |
|
|
private: |
| 53 |
|
|
|
| 54 |
|
|
}; |
| 55 |
|
|
|
| 56 |
|
|
#endif /* TOFDEDXS1CUT_H_ */ |