/[PAMELA software]/PamCut/TrkCuts/TrkCalQualCut/TrkCalQualCut.cpp
ViewVC logotype

Contents of /PamCut/TrkCuts/TrkCalQualCut/TrkCalQualCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed May 27 13:30:08 2009 UTC (15 years, 6 months ago) by pam-fi
Branch point for: DEV, MAIN
Initial revision

1 /*
2 * TrkCalQualCut.cpp
3 *
4 * Created on: 10-mar-2009
5 * Author: Sergio Ricciarini, Nicola Mori
6 */
7
8 /*! @file TrkCalQualCut.cpp The TrkCalQualCut class implementation file */
9
10 #include "TrkCalQualCut.h"
11
12 int TrkCalQualCut::Check(PamLevel2 *event) {
13
14 if ((event->GetRunInfo()->TRK_CALIB_USED == 1 || event->GetRunInfo()->TRK_CALIB_USED == 2 ) &&
15 (event->GetRunInfo()->VALIDATION == 1)){
16 _calibration = TRKCAL_ONLINE;
17 return CUTOK; // VALIDATED on-line calibration
18 }
19 else if (event->GetRunInfo()->TRK_CALIB_USED == 104){
20 _calibration = TRKCAL_DEFAULT;
21 return CUTOK; // default calibration
22 }
23 _calibration = TRKCAL_BAD;
24 return TRKCAL_BAD;
25 }
26
27 inline int TrkCalQualCut::GetCalibration(){
28 return _calibration;
29 }

  ViewVC Help
Powered by ViewVC 1.1.23