/[PAMELA software]/PamCut/MiscCuts/GeoFieldCut/GeoFieldCut.cpp
ViewVC logotype

Diff of /PamCut/MiscCuts/GeoFieldCut/GeoFieldCut.cpp

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

revision 1.1 by pam-fi, Wed May 27 13:30:09 2009 UTC revision 1.2 by pam-fi, Wed Jun 17 13:07:27 2009 UTC
# Line 9  Line 9 
9    
10  #include "GeoFieldCut.h"  #include "GeoFieldCut.h"
11    
12  int GeoFieldCut::Check(PamLevel2 * event) {  int GeoFieldCut::Check(PamLevel2 *event) {
13    
14    if (event->GetOrbitalInfo()->Babs > _bAbs) // Babs = absolute value of geomagnetic field (Gauss)    Float_t bAbs = event->GetOrbitalInfo()->Babs;
15      return CUTOK;    if (bAbs < _bAbsMin) // Babs = absolute value of geomagnetic field (Gauss)
   else  
16      return 0;      return 0;
17      if (_bAbsMax > _bAbsMin && bAbs > _bAbsMax)
18        return 0;
19    
20      //cout << bAbs << endl;
21      return CUTOK;
22  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23