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

◆ angle() [1/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.

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

Referenced by MuonCSCChamberResidual::addResidual(), algorithm(), CentralityDQM::analyze(), EcalCosmicsHists::analyze(), BeamHaloAnalyzer::analyze(), angle(), Cone::build(), PhotonMVABasedHaloTagger::calAngleBetweenEEAndSubDet(), 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(), PhotonMIPHaloTagger::getMipTrailFit(), FlatHexagon::getTransform(), TruncatedPyramid::getTransform(), FlatTrd::getTransform(), CaloCellGeometry::getTransform(), l1t::MicroGMTCaloIndexSelectionLUT::hashInput(), HGCalMouseBite::HGCalMouseBite(), HGCMouseBite::HGCMouseBite(), MultiHitGeneratorFromChi2::hitSets(), PixelTripletHLTGenerator::hitTriplets(), PixelTripletLargeTipGenerator::hitTriplets(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HGCMouseBite::init(), l1t::MicroGMTCaloIndexSelectionLUT::lookup(), angle0to2pi::make0To2pi(), PFMETBenchmark::mpi_pi(), Geom::Phi< float >::nearEqual(), reco::EcalHaloData::NumberOfHaloSuperClusters(), TrackerDpgAnalysis::onTrackAngles(), DDHGCalMixRotatedCassette::positionMix(), DDHGCalMixRotatedFineCassette::positionMix(), DDHGCalMixRotatedLayer::positionMix(), HGCalMixRotatedLayer::positionMix(), HGCalMixRotatedCassette::positionMix(), HGCalMixRotatedFineCassette::positionMix(), DDHGCalSiliconRotatedCassette::positionPassive(), HGCalSiliconRotatedCassette::positionPassive(), DDHGCalSiliconRotatedCassette::positionSensitive(), DDHGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconRotatedModule::positionSensitive(), HGCalSiliconRotatedCassette::positionSensitive(), RecHitProcessor::process(), DDLRotationByAxis::processElement(), RecHitProcessor::processLook(), DDLRotationByAxis::processOne(), reco::BeamHaloSummaryProducer::produce(), RawParticle::rotate(), gen::PyquenHadronizer::rotateEvtPlane(), DDEcalEndcapTrapX::rotateX(), DDEcalEndcapTrap::rotateX(), DDEcalEndcapTrapX::rotateY(), DDEcalEndcapTrap::rotateY(), HIPAlignmentAlgorithm::run(), DTLocalTriggerTask::runTMAnalysis(), FillInfo::setCrossingAngle(), LHCInfo::setCrossingAngle(), LHCInfoPerLS::setCrossingAngleX(), LHCInfoPerLS::setCrossingAngleY(), CTPPSBeamParameters::setHalfXangleX45(), CTPPSBeamParameters::setHalfXangleX56(), CTPPSBeamParameters::setHalfXangleY45(), CTPPSBeamParameters::setHalfXangleY56(), TotemT2Tile::TotemT2Tile(), l1t::MicroGMTCaloIndexSelectionLUT::unHashInput(), unsafe_atan2f_impl(), unsafe_atan2i_impl(), unsafe_atan2s_impl(), GflashG4Watcher::update(), DTSegmentUpdator::updateHits(), and TrajectoryManager::updateWithDaughters().

◆ angle() [2/2]

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

Definition at line 17 of file angle.h.

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

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