29#ifndef G4AnalysisUtilities_h
30#define G4AnalysisUtilities_h 1
63constexpr unsigned int kDim1 { 1 };
64constexpr unsigned int kDim2 { 2 };
65constexpr unsigned int kDim3 { 3 };
74 const std::string_view inClass,
75 const std::string_view inFunction);
96 return hnTypeLong.substr(14, 2);
103 G4String hnTypeLong = HT::s_class();
106 return hnTypeLong[14] ==
'p';
113{
return std::to_string(value); }
127 const G4String& defaultExtension =
"");
163 G4int ntupleFileNumber,
G4String GetExtension(const G4String &fileName, const G4String &defaultExtension="")
constexpr unsigned int kDefaultBasketSize
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
size_t GetOutputId(const G4String &outputName, G4bool warn=true)
std::string ToString(const T &value)
std::string ToString< std::string >(const std::string &value)
G4String GetTnFileName(const G4String &fileName, const G4String &fileType, G4int cycle=0)
G4String GetPlotFileName(const G4String &fileName)
constexpr std::string_view kNamespaceName
G4double GetUnitValue(const G4String &unit)
G4String GetOutputName(G4AnalysisOutput outputType)
constexpr unsigned int kMaxDim
G4AnalysisOutput GetOutput(const G4String &outputName, G4bool warn=true)
G4String GetNtupleFileName(const G4String &fileName, const G4String &fileType, const G4String &ntupleName, G4int cycle=0)
constexpr G4int kInvalidId
constexpr unsigned int kDefaultBasketEntries
G4String GetHnFileName(const G4String &fileName, const G4String &fileType, const G4String &hnType, const G4String &hnName)
G4String GetBaseName(const G4String &fileName)
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)