1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* GeoFieldCut.h |
3 |
|
|
* |
4 |
|
|
* Created on: 10-mar-2009 |
5 |
|
|
* Author: Nicola Mori |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file GeoFieldCut.h The GeoFieldCut class definition file */ |
9 |
|
|
|
10 |
|
|
#ifndef GEOFIELDCUT_H_ |
11 |
|
|
#define GEOFIELDCUT_H_ |
12 |
|
|
|
13 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
|
|
15 |
pam-fi |
1.2 |
/*! @brief The geomagnetic field cut. */ |
16 |
pam-fi |
1.1 |
class GeoFieldCut: public PamCut { |
17 |
|
|
public: |
18 |
|
|
|
19 |
|
|
/*! @brief Constructor. |
20 |
|
|
* |
21 |
pam-fi |
1.2 |
* If the upper value is less than the lower value, it will be ignored. |
22 |
|
|
* |
23 |
pam-fi |
1.1 |
* @param cutName The cut's name.. |
24 |
pam-fi |
1.2 |
* @param bAbsMin The lower threshold value of the geomagnetic field, in gauss. |
25 |
|
|
* @param bAbsMax The upper threshold value of the geomagnetic field, in gauss. |
26 |
pam-fi |
1.1 |
*/ |
27 |
pam-fi |
1.2 |
GeoFieldCut(const char *cutName, Float_t bAbsMin, Float_t bAbsMax = -1.) : |
28 |
|
|
PamCut(cutName), _bAbsMin(bAbsMin), _bAbsMax(bAbsMax) { |
29 |
pam-fi |
1.1 |
} |
30 |
|
|
|
31 |
|
|
/*! @brief Destructor. */ |
32 |
|
|
~GeoFieldCut() { |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
/*! @brief Apply the geomagnetic cut. |
36 |
|
|
* |
37 |
|
|
* This routine rejects the events with |B| < bAbs. |
38 |
|
|
* @param event The event to analyze. |
39 |
|
|
* @return CUTOK if |B| > bAbs, 0 otherwise. |
40 |
|
|
*/ |
41 |
|
|
int Check(PamLevel2 *event); |
42 |
|
|
|
43 |
|
|
private: |
44 |
pam-fi |
1.2 |
float _bAbsMin, _bAbsMax; |
45 |
pam-fi |
1.1 |
|
46 |
|
|
}; |
47 |
|
|
|
48 |
|
|
#endif /* GEOFIELDCUT_H_ */ |