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

Contents of /PamCut/TrkCuts/TrkRigCut/TrkRigCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 27 12:44:45 2011 UTC (13 years, 6 months ago) by pam-fi
Branch: MAIN
CVS Tags: V9, HEAD
Changes since 1.1: +10 -3 lines
Error occurred while calculating annotation data.
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