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

Annotation of /PamCut/CaloCuts/CaloTrackChi2Cut/CaloTrackChi2Cut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1.2.1 - (hide annotations) (download) (vendor branch)
Thu Jul 8 10:43:14 2010 UTC (14 years, 5 months ago) by pam-fi
Branch: V8
CVS Tags: MergedToHEAD_1, nuclei_reproc
Changes since 1.1.1.1: +4 -0 lines
Support for external CaloAxis library added.

1 pam-fi 1.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 pam-fi 1.1.1.1.2.1 #ifndef NO_CALOAXIS
11    
12 pam-fi 1.1 #include "CaloTrackChi2Cut.h"
13    
14     int CaloTrackChi2Cut::Check(PamLevel2 *event) {
15    
16     float xChi2 = _xCaloAxis->GetChi2();
17     float yChi2 = _yCaloAxis->GetChi2();
18    
19     if (!(_minChi2 < xChi2 && xChi2 < _maxChi2 && _minChi2 < yChi2 && yChi2 < _maxChi2)) {
20     return 0;
21     }
22    
23     return CUTOK;
24    
25     }
26 pam-fi 1.1.1.1.2.1
27     #endif /* NO_CALOAXIS */

  ViewVC Help
Powered by ViewVC 1.1.23