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

Annotation of /PamCut/NDCuts/NDnTrigCut/NDnTrigCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Mar 9 18:01:08 2010 UTC (14 years, 8 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
Added to repository.

1 pam-fi 1.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