/* * CaloAngleCut.cpp * * Created on: 11-jan-2010 * Author: S. Ricciarini */ /*! @file CaloAngleCut.cpp */ #include "CaloAngleCut.h" #define PI 3.14159265 int CaloAngleCut::Check(PamLevel2 *event) { Double_t xAngle; xAngle = atan(_xCaloAxis->par[1])*180/PI; // par[1]=tg(theta) . xAngle expressed in degrees if (! (_minXAngle < xAngle && xAngle < _maxXAngle) ) { return 0; } return CUTOK; }