CMS 3D CMS Logo

Functions
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 >
T angle (T x1, T y1, T z1, T x2, T y2, T z2)
 

Function Documentation

◆ angle() [1/2]

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

Definition at line 17 of file angle.h.

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

References angle(), RandomServiceHelper::t1, and RandomServiceHelper::t2.

◆ angle() [2/2]

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.

11  {
12  return std::acos((x1 * x2 + y1 * y2 + z1 * z2) /
13  std::sqrt((x1 * x1 + y1 * y1 + z1 * z1) * (x2 * x2 + y2 * y2 + z2 * z2)));
14 }

References mathSSE::sqrt(), testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, testProducerWithPsetDescEmpty_cfi::y2, and testProducerWithPsetDescEmpty_cfi::z2.

Referenced by MuonCSCChamberResidual::addResidual(), algorithm(), CentralityDQM::analyze(), EcalCosmicsHists::analyze(), BeamHaloAnalyzer::analyze(), angle(), Cone::build(), EcalHaloAlgo::Calculate(), CSCPairResidualsConstraint::calculatePhi(), ThirdHitPrediction::calculateRangesBarrel(), ThirdHitPrediction::calculateRangesForward(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), RPCRecHitStandardAlgo::compute(), GEMRecHitStandardAlgo::compute(), DTParametrizedDriftAlgo::compute(), LaserAlignment::ConvertAngle(), RPCStripsRing::createRefConnections(), MuonAlignmentInputXML::do_rotateglobalaxis(), MuonAlignmentInputXML::do_rotatelocal(), CSCPairResidualsConstraint::dphidzFromTrack(), EcalHitMaker::ecalCellLine(), DDTECOptoHybAlgo::execute(), DDHCalXtalAlgo::execute(), AlCaHOCalibProducer::fillHOStore(), MillePedeMonitor::fillResidualHitHists(), SiStripFineDelayTLA::findtrackangle(), GlobalTrajectoryBuilderBase::fixTEC(), IsolatedPixelTrackCandidateProducer::getDistInCM(), IsolatedPixelTrackCandidateL1TProducer::getDistInCM(), IsoTrig::getDistInCM(), HGCSD::getEnergyDeposit(), FlatHexagon::getTransform(), TruncatedPyramid::getTransform(), FlatTrd::getTransform(), CaloCellGeometry::getTransform(), l1t::MicroGMTCaloIndexSelectionLUT::hashInput(), HGCalMouseBite::HGCalMouseBite(), HGCMouseBite::HGCMouseBite(), MultiHitGeneratorFromChi2::hitSets(), PixelTripletLargeTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), l1t::MicroGMTCaloIndexSelectionLUT::lookup(), angle0to2pi::make0To2pi(), cms::makeRotation3D(), PFMETBenchmark::mpi_pi(), Geom::Phi< float >::nearEqual(), reco::EcalHaloData::NumberOfHaloSuperClusters(), TrackerDpgAnalysis::onTrackAngles(), Angle< T1, T2 >::operator()(), RecHitProcessor::process(), DDLRotationByAxis::processElement(), RecHitProcessor::processLook(), DDLRotationByAxis::processOne(), reco::BeamHaloSummaryProducer::produce(), RawParticle::rotate(), gen::PyquenHadronizer::rotateEvtPlane(), DDEcalEndcapTrap::rotateX(), DDEcalEndcapTrap::rotateY(), HIPAlignmentAlgorithm::run(), DTLocalTriggerTask::runTMAnalysis(), FillInfo::setCrossingAngle(), LHCInfo::setCrossingAngle(), CTPPSBeamParameters::setHalfXangleX45(), CTPPSBeamParameters::setHalfXangleX56(), CTPPSBeamParameters::setHalfXangleY45(), CTPPSBeamParameters::setHalfXangleY56(), l1t::MicroGMTCaloIndexSelectionLUT::unHashInput(), unsafe_atan2f_impl(), unsafe_atan2i_impl(), unsafe_atan2s_impl(), GflashG4Watcher::update(), DTSegmentUpdator::updateHits(), and TrajectoryManager::updateWithDaughters().

RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
testProducerWithPsetDescEmpty_cfi.x2
x2
Definition: testProducerWithPsetDescEmpty_cfi.py:28
testProducerWithPsetDescEmpty_cfi.z2
z2
Definition: testProducerWithPsetDescEmpty_cfi.py:41
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
testProducerWithPsetDescEmpty_cfi.y1
y1
Definition: testProducerWithPsetDescEmpty_cfi.py:29
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
testProducerWithPsetDescEmpty_cfi.y2
y2
Definition: testProducerWithPsetDescEmpty_cfi.py:30
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11