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

Diff of /PamCut/CaloCuts/CaloGeomYSensCut/CaloGeomYSensCut.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Thu May 6 17:08:02 2010 UTC revision 1.2 by pam-fi, Thu Jul 8 14:00:08 2010 UTC
# Line 0  Line 1 
1    /*
2     * CaloGeomCut.h
3     *
4     *  Created on: 13-apr-2010
5     *      Author: S. Ricciarini
6     */
7    
8    /*! @file CaloGeomYSensCut.h The CaloGeomYSensCut class definition file */
9    
10    #ifndef NO_CALOAXIS
11    
12    #ifndef CALOGEOMYSENSCUT_H_
13    #define CALOGEOMYSENSCUT_H_
14    
15    #include "../../PamCutBase/PamCutBase.h"
16    #include <CaloAxis.h>
17    
18    /*! @brief The geometric cut using the calorimeter track AND checking the TRK crossed sensor along Y.
19     *
20     * This cut checks if the track obtained from the calorimeter (with different methods) is inside the
21     * fiducial acceptance and if the TRK crossed sensor along Y for each of the 6 TRK planes is ySens
22     * (0 or 1, for increasing Y).
23     * The current implementation uses the CaloAxis objects; to save computing time, the class
24     * assumes that the track is externally computed for each event and stored in
25     * CaloAxis objects; pointers to these objects are passed as arguments to the constructor.
26     * The Check method will then ignore the PamLevel2 *event and assume that the
27     * current content of the CaloAxis objects are relative to the current event.
28     * It is an user's task to ensure that these assumptions are fulfilled every time
29     * Check or ApplyCut are called.
30     *
31     * CUT DEPENDENCIES: CaloTrackCut for the existence of the track (it can also provide the CaloAxis objects).
32     */
33    
34    class CaloGeomYSensCut: public PamCut {
35    
36    public:
37      /*! @brief Constructor.
38       *
39       * The CaloAxis arguments are pointers to objects which contain the calorimeter
40       * track information for current event.
41       *
42       * @param cutName The cut's name.
43       * @param xCaloAxis The pointer to the CaloAxis object for X axis.
44       * @param yCaloAxis The pointer to the CaloAxis object for Y axis.
45       * @param iMethod index of the method used to track: 0 means straight line;
46       *                1 means curved line (taking into account magnetic field and beta
47       *                from TOF stand-alone [assuming proton mass] with 3 parameters specified
48       *                below) starting from the top of the calorimeter and going backward
49       *                (straight line inside the calorimeter).
50       * Various combinations of TOF beta quality parameters are possible: default, low-quality beta (used for beta[12]): 10.,10.,20.; medium-quality beta: 5.,15.,4; high-quality beta: 3.,20.,3.
51       * @param ySens The TRK sensor identifier along Y (0 or 1 for increasing Y).
52       * @param xTolCaloTrack The tolerance for X view which defines the fiducial acceptance.
53       * @param yTolCaloTrack The tolerance for Y view which defines the fiducial acceptance.
54       * @param mass The particle's mass (used only when iMethod = 1). Default is #H_MASS.
55       * @param resMax Default: 10. (equivalent to beta[12])
56       * @param qualCut Default: 10. (equivalent to beta[12])
57       * @param chi2Cut Default: 20. (equivalent to beta[12])
58       */
59      CaloGeomYSensCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, UInt_t iMethod, UInt_t ySens,
60          Float_t xTolCaloTrack = 0.7, Float_t yTolCaloTrack = 0.7, Float_t mass = H_MASS, Float_t resMax = 10.,
61          Float_t qualCut = 10., Float_t chi2Cut = 20.) :
62        PamCut(cutName), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _iMethod(iMethod), _ySens(ySens), _xTolCaloTrack(
63            xTolCaloTrack), _yTolCaloTrack(yTolCaloTrack), _mass(mass), _resMax(resMax), _qualCut(qualCut), _chi2Cut(
64            chi2Cut) {
65      }
66      /*! @brief Destructor. */
67      ~CaloGeomYSensCut() {
68      }
69    
70      /*! @brief The geometry check using the calorimeter's track.
71       *
72       * @param event The event to analyze.
73       * @return CUTOK if CALO track is inside fiducial acceptance and crosses the same Y sensor on each TRK plane.
74       */
75      int Check(PamLevel2 *event);
76    
77    private:
78      CaloAxis *_xCaloAxis, *_yCaloAxis;
79      UInt_t _iMethod;
80      UInt_t _ySens;
81      Float_t _xTolCaloTrack, _yTolCaloTrack;
82      Float_t _mass;
83      Float_t _resMax, _qualCut, _chi2Cut;
84    };
85    
86    #endif /* CALOGEOMYSENSCUT_H_ */
87    #endif /* NO_CALOAXIS */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23