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

Diff of /PamCut/TrkCuts/TrkRigCut/TrkRigCut.cpp

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

revision 1.1.1.1 by pam-fi, Wed May 27 13:30:08 2009 UTC revision 1.1.1.1.2.1 by pam-fi, Wed Nov 30 17:04:53 2011 UTC
# Line 11  Line 11 
11    
12  int TrkRigCut::Check(PamLevel2 *event) {  int TrkRigCut::Check(PamLevel2 *event) {
13    
14    TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();    float rig = 1. / event->GetTrack(0)->GetTrkTrack()->GetDeflection();
15    
16    if (!(1 / (trkTrack->GetDeflection()) > _minRigidity)) {    if (_discardBelow) {
17      return 0;      if (rig < _thrRigidity) {
18          return 0;
19        }
20      }
21      else {
22        if (rig > _thrRigidity) {
23          return 0;
24        }
25    }    }
26    
27    return CUTOK;    return CUTOK;

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

  ViewVC Help
Powered by ViewVC 1.1.23