CMS 3D CMS Logo

List of all members | Public Member Functions
CmsMTDLevelBuilder::ExtractPhiModuleMirror Struct Reference

#include <CmsMTDLevelBuilder.h>

Inheritance diagram for CmsMTDLevelBuilder::ExtractPhiModuleMirror:

Public Member Functions

double operator() (const GeometricTimingDet *a) const
 

Detailed Description

Definition at line 164 of file CmsMTDLevelBuilder.h.

Member Function Documentation

double CmsMTDLevelBuilder::ExtractPhiModuleMirror::operator() ( const GeometricTimingDet a) const
inline

Definition at line 165 of file CmsMTDLevelBuilder.h.

References a, phi, and pi.

165  {
166  const double pi = 3.141592653592;
167  double phi = ExtractPhiModule()(a); // [0,2pi)
168  phi = ( phi <= pi ? phi : phi-2*pi ); // (-pi,pi]
169  return (pi-phi);
170  }
const Double_t pi
double a
Definition: hdecay.h:121