/[PAMELA software]/PamCut/CaloCuts/CaloAngleCut/CaloAngleCut.h
ViewVC logotype

Annotation of /PamCut/CaloCuts/CaloAngleCut/CaloAngleCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Jul 8 14:00:25 2010 UTC (14 years, 4 months ago) by pam-fi
Branch: MAIN
CVS Tags: MergedFromV8_1, V9, HEAD
Changes since 1.1: +4 -1 lines
File MIME type: text/plain
Merged from branch V8 (tag MergedToHEAD_1). Tag before the merge: BeforeMergingFromV8_1.

1 pam-fi 1.1 /*
2     * CaloAngleCut.h
3     *
4     * Created on: 11-jan-2010
5     * Author: S. Ricciarini
6     */
7    
8     /*! @file CaloAngleCut.h The CaloAngleCut class definition file */
9    
10 pam-fi 1.2 #ifndef NO_CALOAXIS
11    
12 pam-fi 1.1 #ifndef CALOANGLECUT_H_
13     #define CALOANGLECUT_H_
14    
15     #include "../../PamCutBase/PamCutBase.h"
16 pam-fi 1.2 #include <CaloAxis.h>
17 pam-fi 1.1
18     /*! @brief Cut on vertical angle, using the calorimeter track.
19     *
20     * This cut checks if the track obtained from the calorimeter is inside the vertical angle range.
21     * The current implementation uses the CaloAxis objects; to save computing time, the class
22     * assumes that the track is externally computed for each event and stored in
23     * CaloAxis objects; pointers to these objects are passed as arguments to the constructor.
24     * The Check method will then ignore the PamLevel2 *event and assume that the
25     * current content of the CaloAxis objects are relative to the current event.
26     * It is an user's task to ensure that these assumptions are fulfilled every time
27     * Check or ApplyCut are called.
28     *
29     * CUT DEPENDENCIES: CaloTrackCut for the existence of the track (it can also provide the CaloAxis objects).
30     */
31    
32     class CaloAngleCut: public PamCut {
33    
34     public:
35     /*! @brief Constructor.
36     *
37     * The CaloAxis arguments are pointers to objects which contain the calorimeter
38     * track information for current event.
39     *
40     * @param cutName The cut's name.
41     * @param xCaloAxis The pointer to the CaloAxis object for X axis.
42     * @param yCaloAxis The pointer to the CaloAxis object for Y axis.
43     * @param minXAngle minimum vertical angle defining the range
44     * @param maxXAngle maximum vertical angle defining the range
45     */
46     CaloAngleCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, Double_t minXAngle, Double_t maxXAngle) :
47     PamCut(cutName), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _minXAngle(minXAngle), _maxXAngle(maxXAngle) {
48     }
49     /*! @brief Destructor. */
50     ~CaloAngleCut() {
51     }
52    
53     /*! @brief The check of vertical angle using the calorimeter's track.
54     *
55     * @param event The event to analyze.
56     * @return #CUTOK if charge released in plane 22 is greater than 0 (from CaloAxis) for both X and Y
57     * @return 0 otherwise
58     */
59     int Check(PamLevel2 *event);
60    
61     private:
62     CaloAxis *_xCaloAxis, *_yCaloAxis;
63     Double_t _minXAngle, _maxXAngle;
64     };
65    
66     #endif /* CALOANGLECUT_H_ */
67 pam-fi 1.2 #endif /* NO_CALOAXIS */

  ViewVC Help
Powered by ViewVC 1.1.23