CMS 3D CMS Logo

Functions
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(), algorithm(), CentralityDQM::analyze(), EcalCosmicsHists::analyze(), BeamHaloAnalyzer::analyze(), angle(), EcalHaloAlgo::Calculate(), CSCPairResidualsConstraint::calculatePhi(), ThirdHitPrediction::calculateRangesBarrel(), ThirdHitPrediction::calculateRangesForward(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), RPCRecHitStandardAlgo::compute(), LaserAlignment::ConvertAngle(), RPCStripsRing::createRefConnections(), MuonAlignmentInputXML::do_rotateglobalaxis(), MuonAlignmentInputXML::do_rotatelocal(), CSCPairResidualsConstraint::dphidzFromTrack(), EcalHitMaker::ecalCellLine(), DDHCalXtalAlgo::execute(), DDTECOptoHybAlgo::execute(), AlCaHOCalibProducer::fillHOStore(), SiStripFineDelayTLA::findtrackangle(), GlobalTrajectoryBuilderBase::fixTEC(), PFMETBenchmark::getDeltaTCSET(), IsolatedPixelTrackCandidateProducer::getDistInCM(), IsolatedPixelTrackCandidateL1TProducer::getDistInCM(), IsoTrig::getDistInCM(), FlatTrd::getTransform(), FlatHexagon::getTransform(), TruncatedPyramid::getTransform(), CaloCellGeometry::getTransform(), cms::hash(), l1t::MicroGMTCaloIndexSelectionLUT::hashInput(), MultiHitGeneratorFromChi2::hitSets(), PixelTripletLargeTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), Utils::mpi_pi(), PFMETBenchmark::mpi_pi(), TrackerDpgAnalysis::onTrackAngles(), reco::tau::disc::OpeningAngle3D(), Angle< math::XYZVector, math::XYZPoint >::operator()(), DDLRotationByAxis::processElement(), reco::BeamHaloSummaryProducer::produce(), HIPAlignmentAlgorithm::run(), DTLocalTriggerTask::runTMAnalysis(), FillInfo::setCrossingAngle(), RPCRecHitStandardAlgo::setES(), DTParametrizedDriftAlgo::setES(), unsafe_atan2f_impl(), unsafe_atan2i_impl(), unsafe_atan2s_impl(), GflashG4Watcher::update(), DTSegmentUpdator::updateHits(), TrajectoryManager::updateWithDaughters(), reco::EcalHaloData::~EcalHaloData(), l1t::MicroGMTCaloIndexSelectionLUT::~MicroGMTCaloIndexSelectionLUT(), l1t::MicroGMTExtrapolationLUT::~MicroGMTExtrapolationLUT(), RPCRecHitBaseAlgo::~RPCRecHitBaseAlgo(), and RPCStripsRing::~RPCStripsRing().

11  {
12  return std::acos((x1*x2 + y1*y2 + z1*z2)/std::sqrt((x1*x1 + y1*y1 + z1*z1)*(x2*x2 + y2*y2 + z2*z2)));
13 }
T sqrt(T t)
Definition: SSEVec.h:18
template<typename T1 , typename T2 >
double angle ( const T1 &  t1,
const T2 &  t2 
)

Definition at line 16 of file angle.h.

References angle().

16  {
17  return angle( t1.x(), t1.y(), t1.z(), t2.x(), t2.y(), t2.z() );
18 }
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11