Value:{ \
const
size_t pos =
s.find(#
x"="); \
if(pos == std::string::npos){
\ std::cerr <<
"PIDExtraVars::FromString(): couldn't find "#
x \
abort(); \
} \
const
size_t startpos =
s.find(
"=", pos)+1; \
const
size_t endpos =
s.find(
"\n", startpos); \
if(endpos == std::string::npos){
\ std::cerr <<
"PIDExtraVars::FromString(): couldn't find " \
abort(); \
} \
\
errno = 0; \
ret.f##
x = strtod(
s.substr(startpos, endpos-startpos).c_str(), 0);\
std::cerr <<
"PIDExtraVars::FromString(): failed to parse " \
abort(); \
} \
}
Referenced by stan::math::add(), genie::HadronizationModelBase::ApplyRijk(), CalcFiberLoopCorr(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), stan::math::cholesky_block::chain(), stan::math::check_vector(), stan::math::columns_dot_self(), ConvertToGTracker(), genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::NuclearData::DeuteriumSuppressionFactor(), genie::QPMDISPXSec::DISRESJoinSuppressionFactor(), genie::utils::intranuke::Dist2Exit(), genie::utils::intranuke2018::Dist2Exit(), genie::utils::intranuke::Dist2ExitMFP(), genie::utils::intranuke2018::Dist2ExitMFP(), stan::math::divide(), genie::QPMDMDISPXSec::DMDISRESJoinSuppressionFactor(), genie::mueloss::gsl::KokoulinPetrukhinIntegrand::DoEval(), genie::masterclass::MCTruthDisplay::DrawDiagram(), stan::math::elt_divide(), stan::math::elt_multiply(), extract_hadnucleus_xsec(), stan::math::factor_cov_matrix(), ana::FillWithDimColor(), FillWithDimmerColor(), trk::KalmanTrack::FilterOnly(), trk::KalmanTrack::FilterTracker(), lem::PIDExtraVars::FromString(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), stan::math::gaussian_dlm_obs_lpdf(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayedNucleonPosition(), genie::GMCJDriver::GenerateEvent1Try(), genie::NNBarOscPrimaryVtxGenerator::GenerateOscillatingNeutronPosition(), genie::VertexGenerator::GenerateVertex(), genie::GMCJDriver::GeomAnalyzerPtr(), tdslicer::TDSlicer::GetDist(), GetTunedMECWeight(), hA_basic_analysis(), genie::SmithMonizUtils::kFQES_SM_lim(), genie::KPhaseSpace::Limits(), ana::make_simple_res_plot(), stan::math::multiply_lower_tri_self_transpose(), slicer::PointManager::NeighborScore(), genie::utils::nuclear::NuclQELXSecSuppression(), rsim::FPGA_MatchedFiltering::PerfectASICCurve(), genie::FKR::Print(), genie::FGMBodekRitchie::ProbDistro(), genie::utils::intranuke::ProbSurvival(), genie::utils::intranuke2018::ProbSurvival(), genie::SmithMonizUtils::Q2QES_SM_lim(), stan::math::qr_R(), stan::math::qr_thin_R(), genie::utils::phys::R99118(), genie::FKR::Reset(), stan::math::rows_dot_self(), genie::utils::nuclear::RQEFG_generic(), genie::utils::phys::RWhitlow(), genie::KNOPythiaHadronization::SelectHadronizer(), genie::PhysInteractionSelector::SelectInteraction(), genie::flux::GCylindTH1Flux::SelectNeutrino(), genie::flux::GAtmoFlux::SelectNeutrino(), genie::RSPPResonanceSelector::SelectResonance(), genie::DISHadronicSystemGenerator::SimulateFormationZone(), stan::math::squared_distance(), stan::math::subtract(), TEST(), stan::math::to_array_2d(), stan::math::to_fvar(), stan::math::to_vector(), stan::math::unit_vector_constrain(), stan::math::value_of(), genie::SmithMonizUtils::vQES_SM_lim(), genie::AhrensNCELPXSec::XSec(), genie::RosenbluthPXSec::XSec(), genie::QPMDISPXSec::XSec(), genie::AhrensDMELPXSec::XSec(), genie::BergerSehgalFMCOHPiPXSec2015::XSec(), genie::LwlynSmithQELCCPXSec::XSec(), genie::QPMDMDISPXSec::XSec(), genie::BergerSehgalCOHPiPXSec2015::XSec(), and genie::ReinSehgalCOHPiPXSec::XSec().