CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/Math/interface/angle.h File Reference

#include <cmath>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 11 of file angle.h.

References mathSSE::sqrt().

Referenced by MuonCSCChamberResidual::addResidual(), BeamHaloAnalyzer::analyze(), EcalCosmicsHists::analyze(), angle(), EcalHaloAlgo::Calculate(), CSCPairResidualsConstraint::calculatePhi(), ThirdHitPrediction::calculateRangesBarrel(), ThirdHitPrediction::calculateRangesForward(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), LaserAlignment::ConvertAngle(), RPCStripsRing::createRefConnections(), MuonAlignmentInputXML::do_rotateglobalaxis(), MuonAlignmentInputXML::do_rotatelocal(), CSCPairResidualsConstraint::dphidzFromTrack(), EcalHitMaker::ecalCellLine(), DDHCalXtalAlgo::execute(), SiStripFineDelayTLA::findtrackangle(), GlobalTrajectoryBuilderBase::fixTEC(), IsolatedPixelTrackCandidateProducer::getDistInCM(), getDistInCM(), TruncatedPyramid::getTransform(), CaloCellGeometry::getTransform(), Utils::mpi_pi(), PFMETBenchmark::mpi_pi(), TrackerDpgAnalysis::onTrackAngles(), reco::tau::disc::OpeningAngle3D(), Angle< math::XYZVector, math::XYZPoint >::operator()(), DDLRotationByAxis::processElement(), AlCaHOCalibProducer::produce(), reco::BeamHaloSummaryProducer::produce(), global_simpleAngular_2::rotation(), global_simpleAngular_1::rotation(), global_simpleAngular_0::rotation(), global_angular_0::rotation(), DTLocalTriggerTask::runDCCAnalysis(), global_angular_0::translation(), GflashG4Watcher::update(), DTSegmentUpdator::updateHits(), and TrajectoryManager::updateWithDaughters().

                                             {
  return acos((x1*x2 + y1*y2 + z1*z2)/sqrt((x1*x1 + y1*y1 + z1*z1)*(x2*x2 + y2*y2 + z2*z2)));
}
template<typename T1 , typename T2 >
double angle ( const T1 &  t1,
const T2 &  t2 
)

Definition at line 16 of file angle.h.

References angle().

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