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

Annotation of /PamCut/TrkCuts/TrkRigRangeCut/TrkRigRangeCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


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

1 pam-fi 1.1 /*
2     * TrkRigRangeCut.cpp
3     *
4     * Created on: 24-apr-2009
5     * Author: S. Ricciarini
6     */
7    
8     /*! @file TrkRigRangeCut.cpp The TrkRigRangeCut class implementation file */
9    
10     #include "TrkRigRangeCut.h"
11    
12     int TrkRigRangeCut::Check(PamLevel2 *event) {
13    
14     TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();
15    
16     float rig=1/(trkTrack->GetDeflection());
17    
18     if (rig < _minRigidity || rig > _maxRigidity) {
19     return 0;
20     }
21    
22     return CUTOK;
23     }

  ViewVC Help
Powered by ViewVC 1.1.23