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

Annotation of /PamCut/CaloCuts/CaloTrackCut/CaloTrackCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Mar 10 08:44:02 2010 UTC (14 years, 9 months ago) by pam-fi
Branch: MAIN
Changes since 1.1: +9 -2 lines
File MIME type: text/plain
Support for interacting events (through FitShower in CaloAxis) added.

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

  ViewVC Help
Powered by ViewVC 1.1.23