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

Contents of /PamCut/CaloCuts/CaloTrackCut/CaloTrackCut.h

Parent Directory Parent Directory | Revision Log Revision Log


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

1 /*
2 * CaloTrackCut.h
3 *
4 * Created on: 17-mar-2009
5 * Author: Nicola Mori
6 */
7
8 /*! @file CaloTrackCut.h The CaloTrackCut class definition file */
9
10 #ifndef NO_CALOAXIS
11
12 #ifndef CALOTRACKCUT_H_
13 #define CALOTRACKCUT_H_
14
15 #include "../../PamCutBase/PamCutBase.h"
16 #include <CaloAxis.h>
17
18 /*! @brief The calorimeter track cut.
19 * Checks for the existence of a track in the calorimeter, using the CaloAxis routine.
20 * WARNING: Check() assumes that level 1 data for the calorimeter exists.
21 */
22
23 class CaloTrackCut: public PamCut {
24
25 public:
26 /*! @brief Constructor.
27 *
28 * @param cutName The cut's name.
29 * @param showerFit If false, a single-track fits (FitAxis) is performed; if true, a shower fit (FitShower) is performed
30 *
31 */
32 CaloTrackCut(const char *cutName, Bool_t showerFit=false) :
33 PamCut(cutName), _showerFit(showerFit) {
34 }
35 /*! @brief Destructor. */
36 ~CaloTrackCut() {
37 }
38
39 /*! @brief The calorimeter track check.
40 *
41 * @param event The event to analyze.
42 * @return #CUTOK if it is possible to identify a meaningful (chi2 > 0) track in the calorimeter.
43 * @return 0 otherwise.
44 */
45 int Check(PamLevel2 *event);
46
47 /*!@{*/
48 /*! @brief The CaloAxis objects for the last track.
49 * These objects stores information about the track of the last examined event.
50 */
51 CaloAxis xCaloAxis;
52 CaloAxis yCaloAxis;
53 /*!@}*/
54
55 private:
56
57 Bool_t _showerFit;
58
59 };
60
61 #endif /* CALOTRACKCUT_H_ */
62 #endif /* NO_CALOAXIS */

  ViewVC Help
Powered by ViewVC 1.1.23