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

Diff of /PamCut/CaloCuts/CaloAngleCut/CaloAngleCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Mon Jan 18 15:55:01 2010 UTC revision 1.2 by pam-fi, Tue Mar 23 17:27:29 2010 UTC
# Line 8  Line 8 
8  /*! @file CaloAngleCut.cpp */  /*! @file CaloAngleCut.cpp */
9    
10  #include "CaloAngleCut.h"  #include "CaloAngleCut.h"
 #define PI 3.14159265  
11    
12  int CaloAngleCut::Check(PamLevel2 *event) {  int CaloAngleCut::Check(PamLevel2 *event) {
13    
14      static const double pi = 3.14159265;
15    Double_t xAngle;    Double_t xAngle;
16    
17      xAngle = atan(_xCaloAxis->par[1])*180/PI; // par[1]=tg(theta) . xAngle expressed in degrees      xAngle = atan(_xCaloAxis->par[1])*180/pi; // par[1]=tg(theta) . xAngle expressed in degrees
18      if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) {      if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) {
19        return 0;        return 0;
20      }      }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23