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

Diff of /PamCut/TrkCuts/TrkHitQualCut/TrkHitQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by pam-fi, Wed May 27 13:30:08 2009 UTC revision 1.3 by pam-fi, Wed Mar 25 17:38:09 2015 UTC
# Line 2  Line 2 
2   * TrkHitQualCut.cpp   * TrkHitQualCut.cpp
3   *   *
4   *  Created on: 13-mar-2009   *  Created on: 13-mar-2009
5   *      Author: Sergio Ricciarini, Nicola Mori   *      Author: Sergio Ricciarini
6   */   */
7    
8  /*! @file TrkHitQualCut.cpp The TrkHitQualCut class implementation file */  /*! @file TrkHitQualCut.cpp The TrkHitQualCut class implementation file */
# Line 11  Line 11 
11    
12  int TrkHitQualCut::Check(PamLevel2 *event) {  int TrkHitQualCut::Check(PamLevel2 *event) {
13    
14    TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();      if(event->GetNTracks(_trkAlg)==0)return 0;
15        
16    //  TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();
17        ExtTrack *trkTrack = event->GetTrack(0,_trkAlg)->GetExtTrack();
18    
19    if (trkTrack->GetNX() < _xMinHit || // minimum number of X planes included in the track    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        trkTrack->GetNY() < _yMinHit || // minimum number of Y planes included in the track
21        trkTrack->GetLeverArmX() < _xLeverArm) // minimum LA for X view        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      return 0;      return 0;
25    
26    return CUTOK;    return CUTOK;

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23