/[PAMELA software]/PamCut/MiscCuts/StoermerCut/StoermerCut.h
ViewVC logotype

Contents of /PamCut/MiscCuts/StoermerCut/StoermerCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jun 10 15:17:05 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
File MIME type: text/plain
Added to repository.

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_ */

  ViewVC Help
Powered by ViewVC 1.1.23