/[PAMELA software]/PamCut/TrkCuts/TrkSigmaDeflCut/TrkSigmaDeflCut.h
ViewVC logotype

Diff of /PamCut/TrkCuts/TrkSigmaDeflCut/TrkSigmaDeflCut.h

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

revision 1.1.1.1 by pam-fi, Wed May 27 13:30:09 2009 UTC revision 1.3 by pam-fi, Thu Jul 8 14:00:10 2010 UTC
# Line 14  Line 14 
14    
15  /*! @brief The cut on TRK sigma_deflection.  /*! @brief The cut on TRK sigma_deflection.
16   *   *
17   * This cut discards an event if its sigma_deflection (defined as sqrt(coval[4][4]), in GV^-1) is not less than the minimum deflection for the bin which contains the event deflection modulus (deflection of the first TRK track).   * This cut discards an event if its sigma_deflection (defined as sqrt(coval[4][4]), in GV^-1)
18     * multiplied by a constant parameter is not less than the minimum deflection for the bin which
19     * contains the event deflection modulus (deflection of the first TRK track).
20   *   *
21   */   */
22  class TrkSigmaDeflCut: public PamCut {  class TrkSigmaDeflCut: public PamCut {
# Line 27  public: Line 29  public:
29     *                Note that it must contain both the upper and lower limits, and     *                Note that it must contain both the upper and lower limits, and
30     *                that the elements must be ordered (ie., lowest rigidity value in the first     *                that the elements must be ordered (ie., lowest rigidity value in the first
31     *                element and so on).     *                element and so on).
32       * @param sigmaDeflFactor The factor to multiply sigma_deflection by before comparing it to the deflection.
33     */     */
34    TrkSigmaDeflCut(const char *cutName, std::vector<float> binning) :    TrkSigmaDeflCut(const char *cutName, std::vector<float> binning, float sigmaDeflFactor = 1.) :
35      PamCut(cutName), _binning(binning) {      PamCut(cutName), _binning(binning), _sigmaDeflFactor(sigmaDeflFactor) {
36    }    }
37    
38    /*! @brief Constructor.    /*! @brief Constructor.
# Line 39  public: Line 42  public:
42     *                Note that it must contain both the upper and lower limits, and     *                Note that it must contain both the upper and lower limits, and
43     *                that the elements must be ordered (ie., lowest rigidity value in the first     *                that the elements must be ordered (ie., lowest rigidity value in the first
44     *                element and so on).     *                element and so on).
45       * @param deflFactor The factor to multiply sigma_deflection by before comparing it to the deflection.
46     */     */
47    TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName);    TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName, float deflFactor = 1.);
48    
49    /*! @brief Destructor. */    /*! @brief Destructor. */
50    ~TrkSigmaDeflCut() {    ~TrkSigmaDeflCut() {
# Line 57  public: Line 61  public:
61     */     */
62    int Check(PamLevel2 *event);    int Check(PamLevel2 *event);
63    
   
64  private:  private:
65    
66    std::vector<float> _binning;    std::vector<float> _binning;
67      float _sigmaDeflFactor;
68    
69  };  };
70    

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

  ViewVC Help
Powered by ViewVC 1.1.23