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

Contents of /PamCut/CaloCuts/CaloNHitCut/CaloNHitCut.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
Error occurred while calculating annotation data.
First import

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