1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* TofDedxHeCut.h |
3 |
|
|
* |
4 |
|
|
* Created on: 03/ago/2009 |
5 |
|
|
* Author: Nicola Mori |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file TofDedxHeCut.h The TofDedxHeCut.h class definition file. */ |
9 |
|
|
|
10 |
|
|
#ifndef TOFDEDXHECUT_H_ |
11 |
|
|
#define TOFDEDXHECUT_H_ |
12 |
|
|
|
13 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
|
|
15 |
|
|
/*! @brief Cutting a band dE/dx vs. Beta for Helium. |
16 |
|
|
* This cut discards events where TOF dE/dx vs. Beta are outside the helium "corridor". This corridor is currently |
17 |
|
|
* defined by: |
18 |
|
|
* |
19 |
|
|
* dE/dx > 1 / (0.2 * (beta - 0.05)) - 2. |
20 |
|
|
* dE/dx < 1 / (0.25 * (beta - 0.1)) |
21 |
|
|
* dE/dx > 11. * beta - 7.7 |
22 |
|
|
* |
23 |
|
|
* dE/dx is the mean of the energy releases on S11, S12, S21, S22. |
24 |
|
|
*/ |
25 |
|
|
class TofDedxHeCut: public PamCut { |
26 |
|
|
|
27 |
|
|
public: |
28 |
|
|
/*! @brief Constructor. |
29 |
|
|
* |
30 |
|
|
* @param cutName The cut's name. |
31 |
|
|
*/ |
32 |
|
|
TofDedxHeCut(const char *cutName) : |
33 |
|
|
PamCut(cutName) { |
34 |
|
|
} |
35 |
|
|
/*! @brief Destructor. */ |
36 |
|
|
~TofDedxHeCut() { |
37 |
|
|
|
38 |
|
|
} |
39 |
|
|
|
40 |
|
|
/*! @brief The dE/dx vs. beta Helium check. |
41 |
|
|
* |
42 |
|
|
* @param event The event to analyze. |
43 |
|
|
* @return #CUTOK if event is inside helium "corridor". |
44 |
|
|
* @return 0 otherwise. |
45 |
|
|
*/ |
46 |
|
|
int Check(PamLevel2 *event); |
47 |
|
|
|
48 |
|
|
private: |
49 |
|
|
|
50 |
|
|
}; |
51 |
|
|
|
52 |
|
|
#endif /* TOFDEDXHECUT_H_ */ |