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 |
|
|
* @param cutName The cut's name.. |
22 |
pam-fi |
1.1.1.1.2.1 |
* @param pitchMin The minimum threshold value of the pitch-angle |
23 |
|
|
* @param pitchMax The maximum threshold value of the pitch-angle |
24 |
pam-mep |
1.1 |
*/ |
25 |
|
|
PitchAngleCut(const char *cutName, Float_t pitchMin, Float_t pitchMax) : |
26 |
|
|
PamCut(cutName), _pitchMin(pitchMin), _pitchMax(pitchMax) { |
27 |
|
|
} |
28 |
|
|
|
29 |
|
|
/*! @brief Destructor. */ |
30 |
|
|
~PitchAngleCut() { |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
/*! @brief Apply the geomagnetic cut. |
34 |
|
|
* |
35 |
|
|
* This routine rejects the events with pitch-angle > PitchMax and pitch-angle <= PitchMin. |
36 |
|
|
* @param event The event to analyze. |
37 |
|
|
* @return CUTOK if PitchMin < pitch-angle <= PitchMax , 0 otherwise. |
38 |
|
|
*/ |
39 |
|
|
int Check(PamLevel2 *event); |
40 |
|
|
|
41 |
|
|
private: |
42 |
|
|
float _pitchMin; |
43 |
|
|
float _pitchMax; |
44 |
|
|
|
45 |
|
|
}; |
46 |
|
|
|
47 |
|
|
#endif /* PITCHANGLECUT_H_ */ |