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

Contents of /PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show 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 /*
2 * CaloNotIntCut.cpp
3 * Created on: 17-mar-2009
4 * Author: Sergio Ricciarini, Nicola Mori
5 */
6
7 /*! @file CaloNotIntCut.cpp The CaloNotIntCut class implementation file */
8
9 #include "CaloNotIntCut.h"
10
11 int CaloNotIntCut::Check(PamLevel2 *event) {
12
13 if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_trkTrack) ) { // check that one of the two possible initializations has been correctly done
14 return 0;
15 }
16
17 if (!(_trkTrack)) { // CALO track
18
19 // energy released along the event axis in the calo / total energy release in the calo
20
21 float qratio = ( _xCaloAxis->GetQaxis() + _yCaloAxis->GetQaxis() ) / event->GetCaloLevel2()->qtot;
22
23 if (! (qratio > _qRatioMin) ) {
24 return 1;
25 }
26
27 }
28
29 if (_trkTrack) { // TRK track
30
31 return 2; // temporary
32 // Implement here the check using the tracker track.
33
34 }
35
36 return CUTOK;
37
38 }

  ViewVC Help
Powered by ViewVC 1.1.23