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

Annotation of /PamCut/CaloCuts/CaloAngleCut/CaloAngleCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Mar 23 17:27:29 2010 UTC (14 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, BeforeMergingFromV8_1
Branch point for: V8
Changes since 1.1: +2 -2 lines
Documentation updated.

1 pam-fi 1.1 /*
2     * CaloAngleCut.cpp
3     *
4     * Created on: 11-jan-2010
5     * Author: S. Ricciarini
6     */
7    
8     /*! @file CaloAngleCut.cpp */
9    
10     #include "CaloAngleCut.h"
11    
12     int CaloAngleCut::Check(PamLevel2 *event) {
13    
14 pam-fi 1.2 static const double pi = 3.14159265;
15 pam-fi 1.1 Double_t xAngle;
16    
17 pam-fi 1.2 xAngle = atan(_xCaloAxis->par[1])*180/pi; // par[1]=tg(theta) . xAngle expressed in degrees
18 pam-fi 1.1 if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) {
19     return 0;
20     }
21    
22     return CUTOK;
23     }

  ViewVC Help
Powered by ViewVC 1.1.23