Go to the source code of this file.
Classes | |
struct | vector3 |
struct | polar |
Functions | |
vector3 | InitV (float x, float y, float z) |
vector3 | InitV1 (float phi, float cosTheta, float magnitude) |
float | Mag (vector3 v) |
float | Mag2 (vector3 v) |
float | Dot (vector3 v1, vector3 v2) |
vector3 | Cross (vector3 v1, vector3 v2) |
vector3 | Unit (vector3 v) |
vector3 | Intersection (float z0, vector3 vec, vector3 pos) |
vector3 | TimesA (float a, vector3 v) |
vector3 | AddV (vector3 v1, vector3 v2) |
vector3 | SubV (vector3 v1, vector3 v2) |
vector3 | TransformFrom (vector3 v, vector3 ux, vector3 uy, vector3 uz) |
vector3 | TransformTo (vector3 v, vector3 ux, vector3 uy, vector3 uz) |
polar | XYZ2Polar (vector3 v) |
Variables | |
const float | pi = 3.1415926536 |
const float | rad = 57.29578 |
Definition at line 93 of file vector3.h.
References v, vector3::x, vector3::y, and vector3::z.
Referenced by TransformFrom().
00094 { 00095 vector3 v; 00096 v.x = v1.x + v2.x; 00097 v.y = v1.y + v2.y; 00098 v.z = v1.z + v2.z; 00099 return v; 00100 }
vector3 InitV | ( | float | x, | |
float | y, | |||
float | z | |||
) |
vector3 InitV1 | ( | float | phi, | |
float | cosTheta, | |||
float | magnitude | |||
) |
float Mag | ( | vector3 | v | ) |
float Mag2 | ( | vector3 | v | ) |
Definition at line 83 of file vector3.h.
References v, vector3::x, vector3::y, and vector3::z.
Referenced by TransformFrom().
00084 { 00085 vector3 vv; 00086 vv.x = a*v.x; 00087 vv.y = a*v.y; 00088 vv.z = a*v.z; 00089 return vv; 00090 }
Definition at line 142 of file vector3.h.
00143 { 00144 polar s; 00145 float rxy; 00146 00147 s.r = sqrt(v.x*v.x+v.y*v.y+v.z*v.z); 00148 if(s.r==0.0){ 00149 s.theta = 0.0; 00150 } 00151 else{ 00152 s.theta = acos(v.z/s.r); 00153 } 00154 00155 rxy = sqrt(v.x*v.x+v.y*v.y); 00156 if(rxy==0.0){ 00157 s.phi = 0.0; 00158 } 00159 else{ 00160 if(v.y>=0.0) s.phi = acos(v.x/rxy); 00161 else{ 00162 s.phi = 2.0*pi-acos(v.x/rxy); 00163 } 00164 } 00165 00166 return s; 00167 }
const float pi = 3.1415926536 |
Definition at line 133 of file vector3.h.
Referenced by DTagTool::angleShowerwithTrack(), Dalitz::Babar_sakurai(), EmcRecCrystal::BarrelCheckout(), EvtConExc::baryon_sampling(), MdcBbEmcEff::bbEmcMdcTrackingEff(), BesMdcWire::BesMdcWire(), G4HepMCInterface::Boost(), PreXtCalib::calib(), MdcUtilitySvc::cellTrackPassed(), BesMdcConstruction::Construct(), BesSCM::Construct(), BesEvent::ConstructMdcTrackFromRec(), BesEvent::ConstructMucTrackFromRec(), TMDCTsf::createTsf(), EvtCalHelAmp::decay(), EvtConExc::difgamXs(), BesTofDigitizerBrV2::DirectPh(), THelixFitter::drift(), BesMdcGeoParameter::Dump(), EmcRecCrystal::EndCapCheckout(), EvtEulerAngles::EulerAngles(), FarmMonitorAlg::execute(), TofRec::execute(), SD0Tag::execute(), EmcRec::execute(), EventPreSelect::execute(), CalibEventSelect::execute(), BhabhaPreSelect::execute(), EvtSelExample::execute(), DQASelHadron::execute(), DQASelDimu::execute(), DQASelBhabha::execute(), DQARhopi::execute(), DQAJpsi2PPbarAlg::execute(), DQADtag::execute(), Rhopi::execute(), PipiJpsi::execute(), AbsCor::execute(), Ppjrhopi::execute(), Gam4pikp::execute(), TSegment::expandSeg(), MdcCalRecTrk::fgNoiseRatio(), MagneticFieldSvc::fieldVector(), TofCheckDigi::FillCol(), TrkReco::FillTuple(), EvtConExc::findMaxXS(), EmcSelBhaEvent::findPhiDiff(), EvtCalHelAmp::firstder(), TRungeFitter::fit(), TPiFormFactor::GS(), HTrackParameter::HTrackParameter(), BesMdcGeoParameter::InitFromFile(), BesMdcGeoParameter::InitFromSvc(), DimuPreSelect::IsDimu(), UserPi0Cut::isGoodPhoton(), TTrackManager::makeTds(), EvtConExc::meson_sampling(), HTrackParameter::minDistanceTwoHelix(), K0kpi::MTotal(), TMDCWire::neighbor(), LocalPhotonSelector::operator()(), ParticleIDBase::pdfCalculate(), BesMdcWire::Phi(), MdcNavigation::poca(), EmcRecShowerPosLogShMax::Position(), EmcRecShowerPosLoglin::Position(), EmcRecShowerPosLog::Position(), EmcRecShowerPosLinShMax::Position(), EmcRecShowerPosLin::Position(), BesMdcSD::ProcessHits(), EvtConExc::Rad1(), EvtConExc::Rad2(), MdcGeomSvc::ReadFilePar(), EvtConExc::Ros_xs(), Dalitz::sakurai(), SingleParticleGun::SingleParticleGun(), EvtConExc::SoftPhoton_xs(), BesTofDigitizerBrV2::TofPmtRspns(), update(), PreXtMdcCalib::updateConst(), Pi0EtaToGGRecAlg::validPhoton(), EvtConExc::VP_sampling(), EventPreSelect::WhetherSector(), CalibEventSelect::WhetherSector(), BhabhaPreSelect::WhetherSector(), EvtXsection::Xsection_c(), XYZ2Polar(), MdcSegInfoSterO::zPosition(), and HoughValidUpdate::zPosition().
const float rad = 57.29578 |
Definition at line 134 of file vector3.h.
Referenced by HTrackParameter::center(), BesMdcConstruction::Construct(), BesTofConstruction::ConstructEcTof_mrpc(), TrkLineRep::helix(), TrkCircleRep::helix(), PartProduce::lg_container(), TrkCircleTraj::paramFunc(), HelixTraj::paramFunc(), and BesHeader::SetCornerRadius().