1 |
pam-mep |
1.1 |
/* |
2 |
|
|
* PitchAngleCut.h |
3 |
|
|
* |
4 |
|
|
* Created on: 27-Marth-2010 |
5 |
|
|
* Author: Vitaly Malakhov |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file PitchAngleCut.h The PitchAngleCut class definition file */ |
9 |
|
|
|
10 |
|
|
#ifndef PITCHANGLECUT_H_ |
11 |
|
|
#define PITCHANGLECUT_H_ |
12 |
|
|
|
13 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
|
|
15 |
|
|
/*! @brief The pitch-angle cut. */ |
16 |
|
|
class PitchAngleCut: public PamCut { |
17 |
|
|
public: |
18 |
|
|
|
19 |
|
|
/*! @brief Constructor. |
20 |
|
|
* |
21 |
|
|
* |
22 |
|
|
* @param cutName The cut's name.. |
23 |
|
|
* @param PitchMin The minimum threshold value of the pitch-angle |
24 |
|
|
* @param PitchMax The maximum threshold value of the pitch-angle |
25 |
|
|
*/ |
26 |
|
|
PitchAngleCut(const char *cutName, Float_t pitchMin, Float_t pitchMax) : |
27 |
|
|
PamCut(cutName), _pitchMin(pitchMin), _pitchMax(pitchMax) { |
28 |
|
|
} |
29 |
|
|
|
30 |
|
|
/*! @brief Destructor. */ |
31 |
|
|
~PitchAngleCut() { |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
/*! @brief Apply the geomagnetic cut. |
35 |
|
|
* |
36 |
|
|
* This routine rejects the events with pitch-angle > PitchMax and pitch-angle <= PitchMin. |
37 |
|
|
* @param event The event to analyze. |
38 |
|
|
* @return CUTOK if PitchMin < pitch-angle <= PitchMax , 0 otherwise. |
39 |
|
|
*/ |
40 |
|
|
int Check(PamLevel2 *event); |
41 |
|
|
|
42 |
|
|
private: |
43 |
|
|
float _pitchMin; |
44 |
|
|
float _pitchMax; |
45 |
|
|
|
46 |
|
|
}; |
47 |
|
|
|
48 |
|
|
#endif /* PITCHANGLECUT_H_ */ |