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

Contents of /PamCut/TrkCuts/TrkDeflCut/TrkDeflCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (show annotations) (download)
Wed Nov 30 17:03:59 2011 UTC (13 years, 3 months ago) by pam-fi
Branch: V8
CVS Tags: nuclei_reproc
Changes since 1.1: +28 -0 lines
Added to repository.

1 /*
2 * TrkDeflCut.cpp
3 *
4 * Created on: 14-sep-2010
5 * Author: Nicola Mori
6 */
7
8 /*! @file TrkDeflCut.cpp The TrkDeflCut class implementation file */
9
10 #include "TrkDeflCut.h"
11
12 int TrkDeflCut::Check(PamLevel2 *event) {
13
14 float defl = event->GetTrack(0)->GetTrkTrack()->GetDeflection();
15
16 if (_discardBelow) {
17 if (defl < _thrDeflection) {
18 return 0;
19 }
20 }
21 else {
22 if (defl > _thrDeflection) {
23 return 0;
24 }
25 }
26
27 return CUTOK;
28 }

  ViewVC Help
Powered by ViewVC 1.1.23