1 |
/* |
2 |
* StoermerCut.h |
3 |
* |
4 |
* Created on: 10-jun-2009 |
5 |
* Author: Nicola Mori |
6 |
*/ |
7 |
|
8 |
/*! @file StoermerCut.h The StoermerCut class definition file */ |
9 |
|
10 |
#ifndef STOERMERCUT_H_ |
11 |
#define STOERMERCUT_H_ |
12 |
|
13 |
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
15 |
/*! @brief The Stoermer cutoff cut. |
16 |
* |
17 |
* This cut discards all events whose Stormer cutoff is outside the desired interval. |
18 |
* |
19 |
*/ |
20 |
class StoermerCut: public PamCut { |
21 |
public: |
22 |
|
23 |
/*! @brief Constructor. |
24 |
* |
25 |
* @param cutName The cut's name. |
26 |
* @param minR The lower threshold value of the Stoermer cutoff, in GV. |
27 |
* @param maxR The upper threshold value of the Stoermer cutoff, in GV. |
28 |
*/ |
29 |
StoermerCut(const char *cutName, Float_t minR, Float_t maxR) : |
30 |
PamCut(cutName), _minR(minR), _maxR(maxR) { |
31 |
} |
32 |
|
33 |
/*! @brief Destructor. */ |
34 |
~StoermerCut() { |
35 |
} |
36 |
|
37 |
/*! @brief Apply the Stoermer cutoff cut. |
38 |
* |
39 |
* @param event The event to analyze. |
40 |
* @return CUTOK if minB < Stoermer cutoff < maxR. |
41 |
* @return 0 otherwise. |
42 |
*/ |
43 |
int Check(PamLevel2 *event); |
44 |
|
45 |
private: |
46 |
float _minR, _maxR; |
47 |
|
48 |
}; |
49 |
|
50 |
#endif /* STOERMERCUT_H_ */ |