/[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.1.2.1 by pam-fi, Thu May 6 17:08:02 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 CALOGEOMYSENSCUT_H_
11    #define CALOGEOMYSENSCUT_H_
12    
13    #include "../../PamCutBase/PamCutBase.h"
14    #include "../../CaloAxis2.h"
15    
16    /*! @brief The geometric cut using the calorimeter track AND checking the TRK crossed sensor along Y.
17     *
18     * This cut checks if the track obtained from the calorimeter (with different methods) is inside the
19     * fiducial acceptance and if the TRK crossed sensor along Y for each of the 6 TRK planes is ySens
20     * (0 or 1, for increasing Y).
21     * The current 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 CaloGeomYSensCut: 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's 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       * @param iMethod index of the method used to track: 0 means straight line;
44       *                1 means curved line (taking into account magnetic field and beta
45       *                from TOF stand-alone [assuming proton mass] with 3 parameters specified
46       *                below) starting from the top of the calorimeter and going backward
47       *                (straight line inside the calorimeter).
48       * 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.
49       * @param ySens The TRK sensor identifier along Y (0 or 1 for increasing Y).
50       * @param xTolCaloTrack The tolerance for X view which defines the fiducial acceptance.
51       * @param yTolCaloTrack The tolerance for Y view which defines the fiducial acceptance.
52       * @param mass The particle's mass (used only when iMethod = 1). Default is #H_MASS.
53       * @param resMax Default: 10. (equivalent to beta[12])
54       * @param qualCut Default: 10. (equivalent to beta[12])
55       * @param chi2Cut Default: 20. (equivalent to beta[12])
56       */
57      CaloGeomYSensCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, UInt_t iMethod, UInt_t ySens,
58          Float_t xTolCaloTrack = 0.7, Float_t yTolCaloTrack = 0.7, Float_t mass = H_MASS, Float_t resMax = 10.,
59          Float_t qualCut = 10., Float_t chi2Cut = 20.) :
60        PamCut(cutName), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _iMethod(iMethod), _ySens(ySens), _xTolCaloTrack(
61            xTolCaloTrack), _yTolCaloTrack(yTolCaloTrack), _mass(mass), _resMax(resMax), _qualCut(qualCut), _chi2Cut(
62            chi2Cut) {
63      }
64      /*! @brief Destructor. */
65      ~CaloGeomYSensCut() {
66      }
67    
68      /*! @brief The geometry check using the calorimeter's track.
69       *
70       * @param event The event to analyze.
71       */
72      int Check(PamLevel2 *event);
73    
74    private:
75      CaloAxis *_xCaloAxis, *_yCaloAxis;
76      UInt_t _iMethod;
77      UInt_t _ySens;
78      Float_t _xTolCaloTrack, _yTolCaloTrack;
79      Float_t _mass;
80      Float_t _resMax, _qualCut, _chi2Cut;
81    };
82    
83    #endif /* CALOGEOMYSENSCUT_H_ */

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

  ViewVC Help
Powered by ViewVC 1.1.23