Parent Directory | Revision Log | Patch
revision 1.1.1.1 by pam-fi, Wed May 27 13:30:08 2009 UTC | revision 1.2 by pam-fi, Fri May 27 12:44:45 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; |
|
ViewVC Help | |
Powered by ViewVC 1.1.23 |