ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nf_stringToDoubles.cc File Reference
#include <stdlib.h>
#include <cmath>
#include "nf_utilities.h"
+ Include dependency graph for nf_stringToDoubles.cc:

Go to the source code of this file.

Macros

#define isfinite   std::isfinite
 
#define numberOfStaticDoubles   ( 100 * 1000 )
 

Functions

static nfu_status nfu_stringToListOfDoubles2 (char const *str, int64_t *numberConverted, double **doublePtr, char **endCharacter)
 
nfu_status nfu_stringToListOfDoubles (char const *str, int64_t *numberConverted, double **doublePtr, char **endCharacter)
 
char * nf_floatToShortestString (double value, int significantDigits, int favorEFormBy, int flags)
 

Macro Definition Documentation

#define isfinite   std::isfinite

Definition at line 15 of file nf_stringToDoubles.cc.

View newest version in sPHENIX GitHub at line 15 of file nf_stringToDoubles.cc

Referenced by kdfinder::TVector< T >::bad(), kdfinder::Helix< T >::bad(), CEMC_Towers(), GPUTPCTrackParam::CheckNumericalQuality(), kdfinder::CircleFit< T >::CircleFitByHyper(), kdfinder::CircleFit< T >::CircleFitByPratt(), ALICEKF::CircleFitByTaubin(), PHTpcClusterMover::CircleFitByTaubin(), PHTruthTrackSeeding::circleFitByTaubin(), PHActsSiliconSeeding::circleFitByTaubin(), kdfinder::CircleFit< T >::CircleFitByTaubin(), nlohmann::detail::dtoa_impl::compute_boundaries(), PHG4InnerHcalDetector::ConstructHcalScintillatorAssembly(), PHG4OuterHcalDetector::ConstructHcalScintillatorAssembly(), PHG4OuterHcalDetector::ConstructHcalSingleScintillators(), PHG4CylinderDetector::ConstructMe(), PHG4BlockDetector::ConstructMe(), PHG4CylinderStripDetector::ConstructMe(), PHG4TpcDetector::ConstructMe(), nlohmann::detail::serializer< BasicJsonType >::dump_float(), PHField3DCartesian::GetFieldValue(), nlohmann::detail::dtoa_impl::grisu2(), HcalRawTowerBuilder::InitRun(), PHG4SimpleEventGenerator::InitRun(), PHG4TrackFastSim::InitRun(), B0TrackFastSim::InitRun(), PHG4CylinderSubsystem::InitRunSubsystem(), PHG4BlockSubsystem::InitRunSubsystem(), PHG4ConeSubsystem::InitRunSubsystem(), kdfinder::Circle< T >::is_good(), kdfinder::Line< T >::is_good(), G4RootRawTower::isValid(), MagnetFieldInit(), nf_exponentialIntegral(), nf_floatToShortestString(), nf_gammaFunction(), nf_incompleteGammaFunction(), nf_incompleteGammaFunctionComplementary(), nf_logGammaFunction(), PHFieldCleo::PHFieldCleo(), PHG4TpcSteppingAction::PHG4TpcSteppingAction(), PHG4InputFilter::process_event(), PHG4HcalCellReco::process_event(), PHG4BlockCellReco::process_event(), PHG4CylinderCellReco::process_event(), G4CellNtuple::process_event(), G4TowerNtuple::process_event(), DumpPHG4CylinderCellContainer::process_Node(), nlohmann::detail::parser< BasicJsonType >::sax_parse_internal(), PHG4CylinderDisplayAction::SetColor(), PHG4BlockDisplayAction::SetColor(), PHG4ConeDisplayAction::SetColor(), G4EicDircDisplayAction::SetColor(), PHG4OuterHcalDetector::SetTiltViaNcross(), PHG4InnerHcalDetector::SetTiltViaNcross(), nlohmann::detail::to_chars(), PHG4TpcSteppingAction::UserSteppingAction(), G4JLeicDIRCSteppingAction::UserSteppingAction(), G4JLeicBeamLineMagnetSteppingAction::UserSteppingAction(), G4JLeicVTXSteppingAction::UserSteppingAction(), G4LBLVtxSteppingAction::UserSteppingAction(), PHG4PSTOFSteppingAction::UserSteppingAction(), PHG4InnerHcalSteppingAction::UserSteppingAction(), AllSiliconTrackerSteppingAction::UserSteppingAction(), PHG4BlockSteppingAction::UserSteppingAction(), EicFRichSteppingAction::UserSteppingAction(), PHG4CylinderStripSteppingAction::UserSteppingAction(), PHG4OuterHcalSteppingAction::UserSteppingAction(), BeastMagnetSteppingAction::UserSteppingAction(), AllSi_Al_support_SteppingAction::UserSteppingAction(), EICG4ZDCSteppingAction::UserSteppingAction(), BeamLineMagnetSteppingAction::UserSteppingAction(), PHG4BbcSteppingAction::UserSteppingAction(), EICG4dRICHSteppingAction::UserSteppingAction(), PHG4TpcEndCapSteppingAction::UserSteppingAction(), PHG4mRICHSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), EICG4RPSteppingAction::UserSteppingAction(), G4EicDircSteppingAction::UserSteppingAction(), EICG4B0SteppingAction::UserSteppingAction(), EICG4BwdSteppingAction::UserSteppingAction(), PHG4MicromegasSteppingAction::UserSteppingAction(), EICG4B0ECALSteppingAction::UserSteppingAction(), PHG4SpacalSteppingAction::UserSteppingAction(), EICG4LumiSteppingAction::UserSteppingAction(), and PHG4SteppingAction::ValidCorrection().

#define numberOfStaticDoubles   ( 100 * 1000 )

Definition at line 23 of file nf_stringToDoubles.cc.

View newest version in sPHENIX GitHub at line 23 of file nf_stringToDoubles.cc

Referenced by nfu_stringToListOfDoubles2().

Function Documentation

char* nf_floatToShortestString ( double  value,
int  significantDigits,
int  favorEFormBy,
int  flags 
)

Definition at line 66 of file nf_stringToDoubles.cc.

View newest version in sPHENIX GitHub at line 66 of file nf_stringToDoubles.cc

References e1, e2, e3, int(), isfinite, n1, nf_floatToShortestString_includeSign, nf_floatToShortestString_keepPeriod, nf_floatToShortestString_trimZeros, and sign().

+ Here is the call graph for this function:

nfu_status nfu_stringToListOfDoubles ( char const *  str,
int64_t *  numberConverted,
double **  doublePtr,
char **  endCharacter 
)

Definition at line 29 of file nf_stringToDoubles.cc.

View newest version in sPHENIX GitHub at line 29 of file nf_stringToDoubles.cc

References nfu_stringToListOfDoubles2().

Referenced by ptwX_fromString(), and ptwXY_fromString().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static nfu_status nfu_stringToListOfDoubles2 ( char const *  str,
int64_t *  numberConverted,
double **  doublePtr,
char **  endCharacter 
)
static

Definition at line 38 of file nf_stringToDoubles.cc.

View newest version in sPHENIX GitHub at line 38 of file nf_stringToDoubles.cc

References nfu_malloc(), nfu_mallocError, nfu_Okay, and numberOfStaticDoubles.

Referenced by nfu_stringToListOfDoubles().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: