Parent Directory | Revision Log
Option to discard events above threshold rigidity (instead of below) added.
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 | float rig = 1. / event->GetTrack(0)->GetTrkTrack()->GetDeflection(); |
15 | |
16 | if (_discardBelow) { |
17 | if (rig < _thrRigidity) { |
18 | return 0; |
19 | } |
20 | } |
21 | else { |
22 | if (rig > _thrRigidity) { |
23 | return 0; |
24 | } |
25 | } |
26 | |
27 | return CUTOK; |
28 | } |
ViewVC Help | |
Powered by ViewVC 1.1.23 |