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

Contents of /PamCut/MiscCuts/GeoFieldCut/GeoFieldCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jun 17 13:07:27 2009 UTC (15 years, 5 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
Changes since 1.1: +8 -4 lines
Error occurred while calculating annotation data.
Added the possibility to cut also on upper values of the geomagnetic field.

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 }

  ViewVC Help
Powered by ViewVC 1.1.23