Parent Directory | Revision Log
Added the possibility to cut also on upper values of the geomagnetic field.
1 | pam-fi | 1.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 | pam-fi | 1.2 | int GeoFieldCut::Check(PamLevel2 *event) { |
13 | pam-fi | 1.1 | |
14 | pam-fi | 1.2 | Float_t bAbs = event->GetOrbitalInfo()->Babs; |
15 | if (bAbs < _bAbsMin) // Babs = absolute value of geomagnetic field (Gauss) | ||
16 | pam-fi | 1.1 | return 0; |
17 | pam-fi | 1.2 | if (_bAbsMax > _bAbsMin && bAbs > _bAbsMax) |
18 | return 0; | ||
19 | |||
20 | //cout << bAbs << endl; | ||
21 | return CUTOK; | ||
22 | pam-fi | 1.1 | } |
ViewVC Help | |
Powered by ViewVC 1.1.23 |