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

Annotation of /PamCut/TrkCuts/TrkHitQualCut/TrkHitQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed May 27 13:30:08 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: MAIN
Branch point for: DEV
Initial revision

1 pam-fi 1.1 /*
2     * TrkHitQualCut.cpp
3     *
4     * Created on: 13-mar-2009
5     * Author: Sergio Ricciarini, Nicola Mori
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     return 0;
20    
21     return CUTOK;
22    
23     }

  ViewVC Help
Powered by ViewVC 1.1.23