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

Annotation of /PamCut/TrkCuts/TrkDeflCut/TrkDeflCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (hide annotations) (download)
Wed Nov 30 17:03:59 2011 UTC (13 years ago) by pam-fi
Branch: V8
CVS Tags: nuclei_reproc
Changes since 1.1: +52 -0 lines
File MIME type: text/plain
Added to repository.

1 pam-fi 1.1.2.1 /*
2     * TrkDeflCut.h
3     *
4     * Created on: 14-sep-2010
5     * Author: Nicola Mori
6     */
7    
8     /*! @file TrkDeflCut.h The TrkDeflCut class definition file */
9    
10     #ifndef TRKDEFLCUT_H_
11     #define TRKDEFLCUT_H_
12    
13     #include "../../PamCutBase/PamCutBase.h"
14    
15     /*! @brief The deflection cut.
16     * This cut discards all the events whose deflection is above or below a threshold value.
17     * Here deflection is defined as Z/p (1/GV) where Z is the particle charge (WITH SIGN) and p the momentum modulus:
18     * therefore deflection can be positive or negative.
19     *
20     */
21     class TrkDeflCut: public PamCut {
22    
23     public:
24     /*! @brief Constructor.
25     *
26     * @param cutName The cut's name.
27     * @param minDeflection The threshold p/Z (in GV); can be positive or negative.
28     * @param discardBelow If true, events below the threshold will be discarded;
29     * otherwise, events above the threshold will be discarded.
30     */
31     TrkDeflCut(const char *cutName, float thrDeflection, bool discardBelow = true ) :
32     PamCut(cutName), _thrDeflection(thrDeflection), _discardBelow(discardBelow) {
33     }
34     /*! @brief Destructor. */
35     ~TrkDeflCut() {
36     }
37    
38     /*! @brief The check.
39     *
40     * @param event The event to analyze.
41     * @return #CUTOK if the deflection is greater (lower) than the threshold and discardBelow is true (false).
42     * @return 0 otherwise.
43     */
44     int Check(PamLevel2 *event);
45    
46     private:
47    
48     float _thrDeflection;
49     bool _discardBelow;
50    
51     };
52     #endif /* TRKDEFLCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23