/[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.3 - (hide annotations) (download)
Wed Mar 25 17:38:09 2015 UTC (9 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +4 -1 lines
Port to 10th reduction.

Some cuts have been modified to use the extended track objects introduced with 10th reduction software. Some others have still to be ported.
Git ref: 4bd0c70baf73c56bddc08dca365cbff243ad8bc8
(Nicola)

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

  ViewVC Help
Powered by ViewVC 1.1.23