PamCut: CaloCuts/CaloTrackChi2Cut/CaloTrackChi2Cut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# CaloCuts/CaloTrackChi2Cut/CaloTrackChi2Cut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * CaloTrackChi2Cut.cpp
    00003  *
    00004  *  Created on: 18-mar-2009
    00005  *      Author: Sergio Ricciarini, Nicola Mori
    00006  */
    00007
    00010 #include "CaloTrackChi2Cut.h"
    00011
    00012 int CaloTrackChi2Cut::Check(PamLevel2 *event) {
    00013
    00014   float xChi2 = _xCaloAxis->GetChi2();
    00015   float yChi2 = _yCaloAxis->GetChi2();
    00016
    00017   if (!(_minChi2 < xChi2 && xChi2 < _maxChi2 && _minChi2 < yChi2 && yChi2 < _maxChi2)) {
    00018     return 0;
    00019   }
    00020
    00021   return CUTOK;
    00022
    00023 }