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 |
} |
} |