/[PAMELA software]/PamCut/TrkCuts/TrkDeflCut/TrkDeflCut.cpp
ViewVC logotype

Diff of /PamCut/TrkCuts/TrkDeflCut/TrkDeflCut.cpp

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

revision 1.1 by pam-fi, Wed Nov 30 17:03:59 2011 UTC revision 1.1.2.1 by pam-fi, Wed Nov 30 17:03:59 2011 UTC
# Line 0  Line 1 
1    /*
2     * TrkDeflCut.cpp
3     *
4     *  Created on: 14-sep-2010
5     *      Author: Nicola Mori
6     */
7    
8    /*! @file TrkDeflCut.cpp The TrkDeflCut class implementation file */
9    
10    #include "TrkDeflCut.h"
11    
12    int TrkDeflCut::Check(PamLevel2 *event) {
13    
14      float defl = event->GetTrack(0)->GetTrkTrack()->GetDeflection();
15    
16      if (_discardBelow) {
17        if (defl < _thrDeflection) {
18          return 0;
19        }
20      }
21      else {
22        if (defl > _thrDeflection) {
23          return 0;
24        }
25      }
26    
27      return CUTOK;
28    }

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

  ViewVC Help
Powered by ViewVC 1.1.23