PamCut: TrkCuts/TrkCalQualCut/TrkCalQualCut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# TrkCuts/TrkCalQualCut/TrkCalQualCut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * TrkCalQualCut.cpp
    00003  *
    00004  *  Created on: 10-mar-2009
    00005  *      Author: Sergio Ricciarini, Nicola Mori
    00006  */
    00007
    00010 #include "TrkCalQualCut.h"
    00011
    00012 int TrkCalQualCut::Check(PamLevel2 *event) {
    00013
    00014     if ((event->GetRunInfo()->TRK_CALIB_USED == 1 || event->GetRunInfo()->TRK_CALIB_USED == 2 ) &&
    00015         (event->GetRunInfo()->VALIDATION == 1)){
    00016       _calibration = TRKCAL_ONLINE;
    00017       return CUTOK; // VALIDATED on-line calibration
    00018     }
    00019     else if (event->GetRunInfo()->TRK_CALIB_USED == 104){
    00020       _calibration = TRKCAL_DEFAULT;
    00021       return CUTOK; // default calibration
    00022     }
    00023     _calibration = TRKCAL_BAD;
    00024     return TRKCAL_BAD;
    00025 }
    00026
    00027 inline int TrkCalQualCut::GetCalibration(){
    00028   return _calibration;
    00029 }