/[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 by pam-fi, Wed May 27 13:30:09 2009 UTC revision 1.2 by pam-fi, Mon May 3 14:37:18 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 28  public: Line 30  public:
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     */     */
33    TrkSigmaDeflCut(const char *cutName, std::vector<float> binning) :    TrkSigmaDeflCut(const char *cutName, std::vector<float> binning, float sigmaDeflFactor = 1.) :
34      PamCut(cutName), _binning(binning) {      PamCut(cutName), _binning(binning), _sigmaDeflFactor(sigmaDeflFactor) {
35    }    }
36    
37    /*! @brief Constructor.    /*! @brief Constructor.
# Line 40  public: Line 42  public:
42     *                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
43     *                element and so on).     *                element and so on).
44     */     */
45    TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName);    TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName, float deflFactor = 1.);
46    
47    /*! @brief Destructor. */    /*! @brief Destructor. */
48    ~TrkSigmaDeflCut() {    ~TrkSigmaDeflCut() {
# Line 57  public: Line 59  public:
59     */     */
60    int Check(PamLevel2 *event);    int Check(PamLevel2 *event);
61    
   
62  private:  private:
63    
64    std::vector<float> _binning;    std::vector<float> _binning;
65      float _sigmaDeflFactor;
66    
67  };  };
68    

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

  ViewVC Help
Powered by ViewVC 1.1.23