GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
genie::pathsegutils Namespace Reference

Functions

string Vec3AsString (const TVector3 *vec)
 

Function Documentation

string genie::pathsegutils::Vec3AsString ( const TVector3 *  vec)

Definition at line 63 of file PathSegmentList.cxx.

Referenced by genie::COHHadronicSystemGenerator::CalculateHadronicSystem_ReinSehgal(), genie::geometry::ROOTGeomAnalyzer::GenBoxRay(), genie::VertexGenerator::GenerateVertex(), genie::geometry::ROOTGeomAnalyzer::GenerateVertex(), genie::Intranuke::GenerateVertex(), genie::Intranuke2018::GenerateVertex(), genie::hnl::FluxCreator::GetAngDeviation(), genie::HadronicSystemGenerator::HCM2LAB(), genie::geometry::ROOTGeomAnalyzer::Local2SI(), main(), genie::hnl::FluxCreator::MakeTupleFluxEntry(), genie::geometry::ROOTGeomAnalyzer::Master2Top(), genie::geometry::ROOTGeomAnalyzer::Master2TopDir(), genie::hnl::operator<<(), genie::hnl::FluxCreator::PointToRandomPointInBBox(), genie::geometry::PathSegment::Print(), genie::geometry::PathSegmentList::Print(), genie::flux::GNuMIFlux::PrintConfig(), genie::flux::GPowerLawFlux::SetRayOrigin(), genie::flux::GMonoEnergeticFlux::SetRayOrigin(), genie::geometry::ROOTGeomAnalyzer::SI2Local(), genie::utils::intranuke::StepParticle(), genie::utils::intranuke2018::StepParticle(), genie::geometry::ROOTGeomAnalyzer::Top2Master(), and genie::geometry::ROOTGeomAnalyzer::Top2MasterDir().

64  {
65  int w=17, p=10; // precision setting only affects ostringstream
66  std::ostringstream fmt;
67  fmt << "(" << std::setw(w) << std::setprecision(p) << vec->x()
68  << "," << std::setw(w) << std::setprecision(p) << vec->y()
69  << "," << std::setw(w+1) << std::setprecision(p) << vec->z() << ")";
70  return fmt.str();
71  }