/[PAMELA software]/PamCut/CaloCuts/CaloTrackChi2Cut/CaloTrackChi2Cut.cpp
ViewVC logotype

Contents of /PamCut/CaloCuts/CaloTrackChi2Cut/CaloTrackChi2Cut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 27 13:30:09 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: DEV
CVS Tags: v0r00, Root_V8, BeforeMergingFromV8_1
Branch point for: V8
Changes since 1.1: +0 -0 lines
First import

1 /*
2 * CaloTrackChi2Cut.cpp
3 *
4 * Created on: 18-mar-2009
5 * Author: Sergio Ricciarini, Nicola Mori
6 */
7
8 /*! @file CaloTrackChi2Cut.cpp The CaloTrackChi2Cut class implementation file */
9
10 #include "CaloTrackChi2Cut.h"
11
12 int CaloTrackChi2Cut::Check(PamLevel2 *event) {
13
14 float xChi2 = _xCaloAxis->GetChi2();
15 float yChi2 = _yCaloAxis->GetChi2();
16
17 if (!(_minChi2 < xChi2 && xChi2 < _maxChi2 && _minChi2 < yChi2 && yChi2 < _maxChi2)) {
18 return 0;
19 }
20
21 return CUTOK;
22
23 }

  ViewVC Help
Powered by ViewVC 1.1.23