/[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.3 by pam-fi, Thu Jul 8 14:00:25 2010 UTC
# Line 6  Line 6 
6   */   */
7    
8  /*! @file CaloAngleCut.cpp */  /*! @file CaloAngleCut.cpp */
9    #ifndef NO_CALOAXIS
10    
11  #include "CaloAngleCut.h"  #include "CaloAngleCut.h"
 #define PI 3.14159265  
12    
13  int CaloAngleCut::Check(PamLevel2 *event) {  int CaloAngleCut::Check(PamLevel2 *event) {
14    
15      static const double pi = 3.14159265;
16    Double_t xAngle;    Double_t xAngle;
17    
18      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
19      if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) {      if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) {
20        return 0;        return 0;
21      }      }
22    
23    return CUTOK;    return CUTOK;
24  }  }
25    
26    #endif /* NO_CALOAXIS */

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

  ViewVC Help
Powered by ViewVC 1.1.23