/[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.1.1.1.2.1 - (show annotations) (download) (vendor branch)
Wed Nov 30 17:04:53 2011 UTC (13 years ago) by pam-fi
Branch: V8
CVS Tags: nuclei_reproc
Changes since 1.1.1.1: +10 -3 lines
Add possibility to select whether to discard events above or below the given rigidity.

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