/[PAMELA software]/PamCut/TofCuts/TofQualCut/TofQualCut.cpp
ViewVC logotype

Contents of /PamCut/TofCuts/TofQualCut/TofQualCut.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, MAIN
CVS Tags: v0r00, Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
First import

1 /*
2 * TofQualCut.cpp
3 *
4 * Created on: 13-mar-2009
5 * Author: Sergio Ricciarini, Nicola Mori
6 */
7
8 /*! @file TofQualCut.cpp The TofQualCut class implementation file */
9
10 #include "TofQualCut.h"
11
12 int TofQualCut::Check(PamLevel2 *event) {
13
14 // Array initialization
15 for (int ipair = 0; ipair < 3; ipair++) {
16 _nHitPadPair[ipair] = 0;
17 }
18
19 // Compute the number of hit paddles on each pair of layers
20 for (int il = 0; il < 6; il++) {
21 int ipair=il/2; // division between integers
22 _nHitPadPair[ipair]+=event->GetToFLevel2()->GetNHitPaddles(il);
23 }
24
25 // CUT
26 for (int ipair = 0; ipair < 3; ipair++) {
27 if (!(_nHitPadPair[ipair] >= 1))
28 return 0;
29 }
30
31 return CUTOK;
32 }

  ViewVC Help
Powered by ViewVC 1.1.23