ATLAS Offline Software
Macros | Functions
TIDARoiParameters.cxx File Reference
#include <cmath>
#include "TrigInDetAnalysis/TIDARoiParameters.h"
Include dependency graph for TIDARoiParameters.cxx:

Go to the source code of this file.

Macros

#define M_PI   3.141592653589793238462643383279502884197
 

Functions

 ClassImp (TIDARoiParameters) static const float M_2PI
 Define M_PI ONLY if it is not already defined in <cmath> More...
 
double _phicheck (double phi)
 

Detailed Description

Author
mark sutton
Date
Wed 4 Mar 2015 16:22:25 CET

Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration

Definition in file TIDARoiParameters.cxx.

Macro Definition Documentation

◆ M_PI

#define M_PI   3.141592653589793238462643383279502884197

Function Documentation

◆ _phicheck()

double _phicheck ( double  phi)

Definition at line 30 of file TIDARoiParameters.cxx.

30  {
31  if ( !(phi > -M_PIF && phi < M_PIF ) ) { // use ! of range rather than range to also catch nan etc
32  if ( phi < -M_PIF ) phi += M_2PI;
33  else phi -= M_2PI;
34  }
35  return phi;
36 }

◆ ClassImp()

ClassImp ( TIDARoiParameters  ) const

Define M_PI ONLY if it is not already defined in <cmath>

phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
M_2PI
#define M_2PI
Definition: CaloGpuGeneral_fnc.cxx:8