CMS 3D CMS Logo

angle.h File Reference

#include <cmath>

Go to the source code of this file.

Functions

template<typename T1, typename T2>
double angle (const T1 &t1, const T2 &t2)
template<class T>
angle (T x1, T y1, T z1, T x2, T y2, T z2)


Function Documentation

template<typename T1, typename T2>
double angle ( const T1 &  t1,
const T2 &  t2 
) [inline]

Definition at line 16 of file angle.h.

References angle().

00016                                              {
00017   return angle( t1.x(), t1.y(), t1.z(), t2.x(), t2.y(), t2.z() );
00018 } 

template<class T>
T angle ( x1,
y1,
z1,
x2,
y2,
z2 
) [inline]

Definition at line 11 of file angle.h.

References funct::sqrt().

Referenced by VisEventSetupService::addDescription(), VisDTDigiTwig::addDescription(), VisEventSetupService::addWafer(), VisTrackingGeometry::addWafer(), VisDTDigiTwig::addWire(), VisDTRecHitsTwig::addWire(), RPCMonitorEfficiency::analyze(), angle(), ThirdHitPrediction::calculateRangesBarrel(), ThirdHitPrediction::calculateRangesForward(), DTParametrizedDriftAlgo::compute(), RPCStripsRing::createRefConnections(), MuonAlignmentInputXML::do_rotatelocal(), EcalHitMaker::ecalCellLine(), DDHCalXtalAlgo::execute(), SiStripFineDelayTLA::findtrackangle(), HLTMuonRate::getAngle(), TauVariables::makeVariables(), IgSoSplineTrack::midpoint(), Angle< math::XYZTLorentzVectorD >::operator()(), DDLRotationByAxis::processElement(), AlCaHOCalibProducer::produce(), IgSoRectColHist::projectPoint(), IgSoIdealTrack::refresh(), global_simpleAngular_2::rotation(), global_simpleAngular_1::rotation(), global_simpleAngular_0::rotation(), global_angular_0::rotation(), DTLocalTriggerTask::runDCCAnalysis(), Ig2DViewPropertiesCategory::setCuttingPlane(), IgSoIdealTrack::timeToXY(), global_angular_0::translation(), VisCSCStripDigiTwig::update(), VisCSCComparatorDigiTwig::update(), VisCSCCorrelatedLCTDigiTwig::update(), VisRPCDigiTwig::update(), VisCSCCLCTDigiTwig::update(), VisCSCWireDigiTwig::update(), GflashG4Watcher::update(), DTSegmentUpdator::updateHits(), Ig2DBrowser::viewPlaneX(), Ig2DBrowser::viewPlaneY(), and Ig2DBrowser::viewPlaneZ().

00011                                              {
00012   return acos((x1*x2 + y1*y2 + z1*z2)/sqrt((x1*x1 + y1*y1 + z1*z1)*(x2*x2 + y2*y2 + z2*z2)));
00013 }


Generated on Tue Jun 9 17:52:13 2009 for CMSSW by  doxygen 1.5.4