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

Contents of /PamCut/MiscCuts/LTQualCut/LTQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 27 13:30:09 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: DEV
CVS Tags: v0r00
Changes since 1.1: +0 -0 lines
First import

1 /*
2 * LTQualCut.cpp
3 *
4 * Created on: 10-mar-2009
5 * Authors: Sergio Ricciarini, Nicola Mori
6 */
7
8 /*! @file LTQualCut.cpp The LTQualCut class implementation file */
9
10 #include "LTQualCut.h"
11
12 int LTQualCut::Check(PamLevel2 *event) {
13 // NOTE: run_id is not generally increasing with time.
14
15 if (event->GetRunInfo()->ID != _previousRun) {
16 _previousRun = event->GetRunInfo()->ID;
17 _LT = -1.;
18 return LT_NEWRUN;
19 }
20
21 _LT = 0.16 * (float) (event->GetTrigLevel2()->dltime[0]); // this gives LT in ms
22
23 if (_LT < 0. || _LT >= _timeout) {
24 return LT_INVALID;
25 }
26
27 return CUTOK;
28 }

  ViewVC Help
Powered by ViewVC 1.1.23