/[PAMELA software]/PamCut/NDCuts/NDnTrigCut/NDnTrigCut.h
ViewVC logotype

Contents of /PamCut/NDCuts/NDnTrigCut/NDnTrigCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 23 17:27:32 2010 UTC (14 years, 8 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
Changes since 1.1: +1 -1 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
Documentation updated.

1 /*
2 * NDnTrigCut.h
3 *
4 * Created on: 25-feb-2010
5 * Author: S. Ricciarini
6 */
7
8 /*! @file NDnTrigCut.h The NDnTrigCut class definition file */
9
10 #ifndef NDNTRIGCUT_H_
11 #define NDNTRIGCUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 /*! @brief The cut on ND number of neutrons (during trigger). */
16 class NDnTrigCut: public PamCut {
17 public:
18
19 /*! @brief Constructor.
20 *
21 * @param cutName The cut's name.
22 * @param nMin The lower threshold on allowed number of neutrons (default: 0).
23 * @param nMax The upper threshold on allowed number of neutrons (default: 1000000000. i.e. any value).
24 */
25 NDnTrigCut(const char *cutName, Float_t nMin = 0., Float_t nMax = 1000000000.) :
26 PamCut(cutName), _nMin(nMin), _nMax(nMax) {
27 }
28
29 /*! @brief Destructor. */
30 ~NDnTrigCut() {
31 }
32
33 /*! @brief Apply the neutron count cut.
34 *
35 * This routine accepts only events for which the number of neutrons n (during trigger) is such that nMin <= n <= nMax
36 * @param event The event to analyze.
37 * @return CUTOK if nMin <= n <= nMax, 0 otherwise.
38 */
39 int Check(PamLevel2 *event);
40
41 private:
42 float _nMin, _nMax;
43
44 };
45
46 #endif /* NDNTRIGCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23