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

Contents of /PamCut/TrkCuts/TrkHitQualCut/TrkHitQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 18 16:34:52 2010 UTC (14 years, 10 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9
Branch point for: V8
Changes since 1.1: +4 -2 lines
Optional check on impact angle added.

1 /*
2 * TrkHitQualCut.cpp
3 *
4 * Created on: 13-mar-2009
5 * Author: Sergio Ricciarini
6 */
7
8 /*! @file TrkHitQualCut.cpp The TrkHitQualCut class implementation file */
9
10 #include "TrkHitQualCut.h"
11
12 int TrkHitQualCut::Check(PamLevel2 *event) {
13
14 TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();
15
16 if (trkTrack->GetNX() < _xMinHit || // minimum number of X planes included in the track
17 trkTrack->GetNY() < _yMinHit || // minimum number of Y planes included in the track
18 trkTrack->GetLeverArmX() < _xLeverArm || // minimum LA for X view
19 trkTrack->axv[0]<_xAngMin || // minimum XZ angle
20 trkTrack->axv[0]>_xAngMax) // maximum XZ angle
21 return 0;
22
23 return CUTOK;
24
25 }

  ViewVC Help
Powered by ViewVC 1.1.23