PamCut: TrkCuts/TrkRigRangeCut/TrkRigRangeCut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# TrkCuts/TrkRigRangeCut/TrkRigRangeCut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * TrkRigRangeCut.cpp
    00003  *
    00004  *  Created on: 24-apr-2009
    00005  *      Author: S. Ricciarini
    00006  */
    00007
    00010 #include "TrkRigRangeCut.h"
    00011
    00012 int TrkRigRangeCut::Check(PamLevel2 *event) {
    00013
    00014   TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();
    00015
    00016   float rig=1/(trkTrack->GetDeflection());
    00017
    00018   if (rig < _minRigidity || rig > _maxRigidity) {
    00019     return 0;
    00020   }
    00021
    00022   return CUTOK;
    00023 }