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

Annotation of /PamCut/CaloCuts/CaloNHitCut/CaloNHitCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed May 27 13:30:09 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: MAIN
Branch point for: DEV
Initial revision

1 pam-fi 1.1 /*
2     * CaloNHitCut.cpp
3     *
4     * Created on: 18-mar-2009
5     * Author: Sergio Ricciarini, Nicola Mori
6     */
7    
8     /*! @file CaloNHitCut.cpp The CaloNHitCut class implementation file */
9    
10     #include "CaloNHitCut.h"
11    
12     int CaloNHitCut::Check(PamLevel2 *event) {
13    
14     int nHit;
15    
16     // Check X
17    
18     nHit=0;
19     for (unsigned int ipl=0; ipl<22; ipl++) {
20     if (_xCaloAxis->GetQ(ipl) > 0) {
21     nHit++;
22     }
23     }
24    
25     if (nHit < _nMinHit) {
26     return 0;
27     }
28    
29     // Check Y
30     nHit = 0;
31     for (unsigned int ipl=0; ipl<22; ipl++) {
32     if (_yCaloAxis->GetQ(ipl) > 0) {
33     nHit++;
34     }
35     }
36    
37     if (nHit < _nMinHit) {
38     return 0;
39     }
40    
41     return CUTOK;
42    
43     }

  ViewVC Help
Powered by ViewVC 1.1.23