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

Contents of /PamCut/CaloCuts/CaloAngleCut/CaloAngleCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jan 18 15:55:09 2010 UTC (14 years, 10 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, BeforeMergingFromV8_1
Branch point for: V8
File MIME type: text/plain
Added to repository.

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

  ViewVC Help
Powered by ViewVC 1.1.23