CMS 3D CMS Logo

Defines | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/DetectorDescription/Algorithm/src/global_angular.cc File Reference

#include "DetectorDescription/Base/interface/DDdebug.h"
#include "global_angular.h"
#include <cfloat>
#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include <Math/RotationZ.h>

Go to the source code of this file.

Defines

#define MAX_DOUBLE   DBL_MAX

Functions

DD3Vector fUnitVector (double theta, double phi)

Define Documentation

#define MAX_DOUBLE   DBL_MAX

Definition at line 9 of file global_angular.cc.

Referenced by global_angular_Check::global_angular_Check().


Function Documentation

DD3Vector fUnitVector ( double  theta,
double  phi 
)

Definition at line 33 of file global_angular.cc.

References funct::cos(), and funct::sin().

Referenced by global_angular_0::checkParameters(), and global_angular_0::translation().

{
  return DD3Vector(cos(phi)*sin(theta),
                     sin(phi)*sin(theta),
                     cos(theta));
}