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

Contents of /PamCut/CaloCuts/CaloTrackChi2Cut/CaloTrackChi2Cut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 27 13:30:09 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: DEV
CVS Tags: v0r00
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

1 /*
2 * CaloTrackChi2Cut.h
3 *
4 * Created on: 18-mar-2009
5 * Author: mori
6 */
7
8 /*! @file CaloTrackChi2Cut.h The CaloTrackChi2Cut class definition file */
9
10 #ifndef CALOTRACKCHI2CUT_H_
11 #define CALOTRACKCHI2CUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14 #include "../../CaloAxis2.h"
15
16 /*! @brief The calorimeter track chi2 quality cut.
17 *
18 * This cut performs a check on chi2 of the calorimeter track. The current
19 * 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 CaloTrackChi2Cut: 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 name.
39 * @param xCaloAxis Pointer to the CaloAxis object for X axis.
40 * @param yCaloAxis Pointer to the CaloAxis object for Y axis.
41 * @param maxChi2 The maximum allowed Chi2.
42 * @param minChi2 The minimum allowed Chi2.
43 */
44 CaloTrackChi2Cut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float maxChi2=0.03, float minChi2=0.005) :
45 PamCut(cutName), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _maxChi2(maxChi2), _minChi2(minChi2) {
46 }
47 /*! @brief Destructor. */
48 ~CaloTrackChi2Cut() {
49 }
50
51 /*! @brief The calorimeter chi2 quality check.
52 *
53 * @param event The event to analyze.
54 * @return #CUTOK if Chi2 from CaloAxis is strictly greater than minChi2 and strictly lesser than maxChi2.
55 * @return 0 otherwise
56 */
57 int Check(PamLevel2 *event);
58
59 private:
60 CaloAxis *_xCaloAxis, *_yCaloAxis;
61 float _maxChi2, _minChi2;
62 };
63
64 #endif /* CALOTRACKCHI2CUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23