PamCut: TrkCuts/TrkGeomCut/TrkGeomCut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# TrkCuts/TrkGeomCut/TrkGeomCut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * TrkGeomCut.cpp
    00003  *
    00004  *  Created on: 13-mar-2009
    00005  *      Author: Sergio Ricciarini, Nicola Mori
    00006  */
    00007
    00010 #include "TrkGeomCut.h"
    00011
    00012 int TrkGeomCut::Check(PamLevel2 *event) {
    00013
    00014   TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();
    00015
    00016   for (int igf = 0; igf < TrkParams::nGF; igf++) { // loop on GF planes
    00017
    00018     // check done for all 14 planes
    00019     if (!(TrkParams::xGF_min[igf] + _xTol < trkTrack->xGF[igf] && trkTrack->xGF[igf] < TrkParams::xGF_max[igf] - _xTol))
    00020       return 0;
    00021     if (!(TrkParams::yGF_min[igf] + _yTol < trkTrack->yGF[igf] && trkTrack->yGF[igf] < TrkParams::yGF_max[igf] - _yTol))
    00022       return 0;
    00023
    00024   } // end loop on GF planes
    00025
    00026   return CUTOK;
    00027 }