Parent Directory | Revision Log
Option to discard events above threshold rigidity (instead of below) added.
1 | pam-fi | 1.1 | /* |
2 | * TrkRigCut.cpp | ||
3 | * | ||
4 | * Created on: 13-mar-2009 | ||
5 | * Author: Sergio Ricciarini, Nicola Mori | ||
6 | */ | ||
7 | |||
8 | /*! @file TrkRigCut.cpp The TrkRigCut class implementation file */ | ||
9 | |||
10 | #include "TrkRigCut.h" | ||
11 | |||
12 | int TrkRigCut::Check(PamLevel2 *event) { | ||
13 | |||
14 | pam-fi | 1.2 | float rig = 1. / event->GetTrack(0)->GetTrkTrack()->GetDeflection(); |
15 | pam-fi | 1.1 | |
16 | pam-fi | 1.2 | if (_discardBelow) { |
17 | if (rig < _thrRigidity) { | ||
18 | return 0; | ||
19 | } | ||
20 | } | ||
21 | else { | ||
22 | if (rig > _thrRigidity) { | ||
23 | return 0; | ||
24 | } | ||
25 | pam-fi | 1.1 | } |
26 | |||
27 | return CUTOK; | ||
28 | } |
ViewVC Help | |
Powered by ViewVC 1.1.23 |