/[PAMELA software]/PamCut/TrkCuts/TrkMDRCut/TrkMDRCut.h
ViewVC logotype

Contents of /PamCut/TrkCuts/TrkMDRCut/TrkMDRCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Oct 29 09:40:51 2009 UTC (15 years, 1 month 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 * TrkMDRCut.h
3 *
4 * Created on: 28-Jul-2009
5 * Author: S. Ricciarini
6 */
7
8 /*! @file TrkMDRCut.h The TrkMDRCut class definition file */
9
10 #ifndef TRKMDRCUT_H_
11 #define TRKMDRCUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 /*! @brief The cut on TRK MDR.
16 *
17 * This cut discards an event if the MDR (defined as 1./sqrt(coval[4][4]), in GV) is not greater than a minimum threshold value |MDRMin| (GV).
18 *
19 */
20 class TrkMDRCut: public PamCut {
21
22 public:
23 /*! @brief Constructor.
24 *
25 * @param cutName The cut's name.
26 * @param MDRMin The minimum threshold MDR in GV (should be positive; if negative, the absolute value is considered here).
27 */
28 TrkMDRCut(const char *cutName, float MDRMin) :
29 PamCut(cutName), _MDRMin(MDRMin) {
30 }
31
32 /*! @brief Destructor. */
33 ~TrkMDRCut() {
34 }
35
36 /*! @brief The MDR check.
37 *
38 * The event is discarded if its MDR is not greater than |MDRMin|
39 *
40 * @param event The event to analyze.
41 * @return #CUTOK if the MDR condition is satisfied.
42 * @return 0 otherwise.
43 */
44 int Check(PamLevel2 *event);
45
46
47 private:
48
49 float _MDRMin;
50
51 };
52
53 #endif /* TRKMDRCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23