PamCut: TrkCuts/TrkHitQualCut/TrkHitQualCut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# TrkCuts/TrkHitQualCut/TrkHitQualCut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * TrkHitQualCut.cpp
    00003  *
    00004  *  Created on: 13-mar-2009
    00005  *      Author: Sergio Ricciarini, Nicola Mori
    00006  */
    00007
    00010 #include "TrkHitQualCut.h"
    00011
    00012 int TrkHitQualCut::Check(PamLevel2 *event) {
    00013
    00014   TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();
    00015
    00016   if (trkTrack->GetNX() < _xMinHit || // minimum number of X planes included in the track
    00017       trkTrack->GetNY() < _yMinHit || // minimum number of Y planes included in the track
    00018       trkTrack->GetLeverArmX() < _xLeverArm) // minimum LA for X view
    00019     return 0;
    00020
    00021   return CUTOK;
    00022
    00023 }