1 |
/* |
2 |
* GeoFieldCut.cpp |
3 |
* |
4 |
* Created on: 10-mar-2009 |
5 |
* Author: Sergio Ricciarini, Nicola Mori |
6 |
*/ |
7 |
|
8 |
/*! @file GeoFieldCut.cpp The GeoFieldCut class implementation file */ |
9 |
|
10 |
#include "GeoFieldCut.h" |
11 |
|
12 |
int GeoFieldCut::Check(PamLevel2 *event) { |
13 |
|
14 |
Float_t bAbs = event->GetOrbitalInfo()->Babs; |
15 |
if (bAbs < _bAbsMin) // Babs = absolute value of geomagnetic field (Gauss) |
16 |
return 0; |
17 |
if (_bAbsMax > _bAbsMin && bAbs > _bAbsMax) |
18 |
return 0; |
19 |
|
20 |
//cout << bAbs << endl; |
21 |
return CUTOK; |
22 |
} |