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

Annotation of /PamCut/MiscCuts/LTQualCut/LTQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Nov 24 14:49:37 2009 UTC (15 years 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: +5 -5 lines
Now the first events of the runs are not discarded.

1 pam-fi 1.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 pam-fi 1.2 // if (event->GetRunInfo()->ID != _previousRun) {
16     // _previousRun = event->GetRunInfo()->ID;
17     // _LT = -1.;
18     // return LT_NEWRUN;
19     // }
20 pam-fi 1.1
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