Parent Directory | Revision Log
Merged from branch V8 (tag MergedToHEAD_1). Tag before the merge: BeforeMergingFromV8_1.
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 | pam-fi | 1.3 | #ifndef NO_CALOAXIS |
10 | pam-fi | 1.1 | |
11 | #include "CaloAngleCut.h" | ||
12 | |||
13 | int CaloAngleCut::Check(PamLevel2 *event) { | ||
14 | |||
15 | pam-fi | 1.2 | static const double pi = 3.14159265; |
16 | pam-fi | 1.1 | Double_t xAngle; |
17 | |||
18 | pam-fi | 1.2 | xAngle = atan(_xCaloAxis->par[1])*180/pi; // par[1]=tg(theta) . xAngle expressed in degrees |
19 | pam-fi | 1.1 | if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) { |
20 | return 0; | ||
21 | } | ||
22 | |||
23 | return CUTOK; | ||
24 | } | ||
25 | pam-fi | 1.3 | |
26 | #endif /* NO_CALOAXIS */ |
ViewVC Help | |
Powered by ViewVC 1.1.23 |