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

Contents of /PamCut/CaloCuts/CaloCrossCut/CaloCrossCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jul 8 14:00:13 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 /*
2 * CaloCrossCut.h
3 *
4 * Created on: 19-mar-2009
5 * Author: Nicola Mori
6 */
7
8 /*! @file CaloCrossCut.h The CaloCrossCut class definition file */
9
10 #ifndef NO_CALOAXIS
11
12 #ifndef CALOCROSSCUT_H_
13 #define CALOCROSSCUT_H_
14
15 #include "../../PamCutBase/PamCutBase.h"
16 #include <CaloAxis.h>
17
18 /*! @brief The calorimeter last plane cut.
19 *
20 * Checks if the particle has crossed the last calorimeter plane. The current
21 * 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 CaloCrossCut: 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 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 */
44 CaloCrossCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis) :
45 PamCut(cutName), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis){
46 }
47 /*! @brief Destructor. */
48 ~CaloCrossCut() {
49 }
50
51 /*! @brief The calorimeter last plane check.
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 };
62
63 #endif /* CALOCROSSCUT_H_ */
64 #endif /* NO_CALOAXIS */

  ViewVC Help
Powered by ViewVC 1.1.23