1 |
/* |
2 |
* TofDedxS1Cut.h |
3 |
* |
4 |
* Created on: 13-mar-2009 |
5 |
* Author: Nicola Mori, S. Ricciarini |
6 |
* Reworked on: 21-jul-2011 |
7 |
* Author: Nicola Mori, Valeria Di Felice |
8 |
*/ |
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 |
/*! @brief A cut on energy release on S1. |
19 |
* |
20 |
* 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 |
*/ |
28 |
|
29 |
class TofDedxS1Cut: public PamCut { |
30 |
|
31 |
public: |
32 |
/*! @brief Constructor. |
33 |
* |
34 |
* @param cutName The cut's name. |
35 |
* |
36 |
*/ |
37 |
TofDedxS1Cut(const char *cutName): |
38 |
PamCut(cutName){ |
39 |
} |
40 |
/*! @brief Destructor. */ |
41 |
~TofDedxS1Cut() { |
42 |
} |
43 |
|
44 |
/*! @brief The TofDedxS1 check. |
45 |
* |
46 |
* @param event The event to analyze. |
47 |
* @return #CUTOK if <dE/dx> is lesser that the threshold function. |
48 |
* @return 0 otherwise |
49 |
*/ |
50 |
int Check(PamLevel2 *event); |
51 |
|
52 |
private: |
53 |
|
54 |
}; |
55 |
|
56 |
#endif /* TOFDEDXS1CUT_H_ */ |