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

Diff of /PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.h

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

revision 1.3 by pam-fi, Tue Nov 3 16:07:20 2009 UTC revision 1.4 by pam-fi, Thu Jul 8 14:00:29 2010 UTC
# Line 11  Line 11 
11  #define CALONOTINTCUT_H_  #define CALONOTINTCUT_H_
12    
13  #include "../../PamCutBase/PamCutBase.h"  #include "../../PamCutBase/PamCutBase.h"
14  #include "../../CaloAxis2.h"  #ifndef NO_CALOAXIS
15    #include <CaloAxis.h>
16    #endif /* NO_CALOAXIS */
17    
18  /*! @brief The non-interacting track cut.  /*! @brief The non-interacting track cut.
19   * This check discards all the events who interacts in the calorimeter. It is possible to choose the track to use for   * This check discards all the events who interacts in the calorimeter. It is possible to choose the track to use for
# Line 35  public: Line 37  public:
37     * @param pamTrack Pointer to the Pamela track object.     * @param pamTrack Pointer to the Pamela track object.
38     * @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO.     * @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO.
39     */     */
40    CaloNotIntCut(const char *cutName, PamTrack **pamTrack, float qRatioMin=0.8) :  
41      PamCut(cutName), _pamTrack(pamTrack), _xCaloAxis(NULL), _yCaloAxis(NULL), _qRatioMin(qRatioMin) {    CaloNotIntCut(const char *cutName, PamTrack **pamTrack, float qRatioMin = 0.8) :
42        PamCut(cutName), _pamTrack(pamTrack), _qRatioMin(qRatioMin) {
43    #ifndef NO_CALOAXIS
44        _xCaloAxis = _yCaloAxis = NULL;
45    #endif /* NO_CALOAXIS */
46    }    }
47    
48    /*! @brief Constructor for calorimeter track.    /*! @brief Constructor for calorimeter track.
# Line 49  public: Line 55  public:
55     * @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO.     * @param qRatioMin The minimum threshold for the ratio between track charge and total charge in CALO.
56     * @return     * @return
57     */     */
58    CaloNotIntCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float qRatioMin=0.8) :  #ifndef NO_CALOAXIS
59      CaloNotIntCut(const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, float qRatioMin = 0.8) :
60      PamCut(cutName), _pamTrack(NULL), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _qRatioMin(qRatioMin) {      PamCut(cutName), _pamTrack(NULL), _xCaloAxis(xCaloAxis), _yCaloAxis(yCaloAxis), _qRatioMin(qRatioMin) {
61    }    }
62    #endif /* NO_CALOAXIS */
63    //TODO: aggiungere il costruttore per il TOF.    //TODO: aggiungere il costruttore per il TOF.
64    
65    /*! @brief Destructor. */    /*! @brief Destructor. */
# Line 71  public: Line 78  public:
78  private:  private:
79    
80    PamTrack **_pamTrack;    PamTrack **_pamTrack;
81    #ifndef NO_CALOAXIS
82    CaloAxis *_xCaloAxis, *_yCaloAxis;    CaloAxis *_xCaloAxis, *_yCaloAxis;
83    #endif /* NO_CALOAXIS */
84    float _qRatioMin;    float _qRatioMin;
85    
86  };  };

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23