29#ifndef G4AnalysisUtilities_h
30#define G4AnalysisUtilities_h 1
68 const G4String& binSchemeName =
"linear");
83template<
typename T,
typename... Args>
86 return std::unique_ptr<T>(
new T(std::forward<Args>(args)...));
102 return hnTypeLong.substr(14, 2);
112 const G4String& defaultExtension =
"");
139 G4int ntupleFileNumber);
std::unique_ptr< T > make_unique(Args &&... args)
G4String GetExtension(const G4String &fileName, const G4String &defaultExtension="")
G4bool CheckMinMax(G4double xmin, G4double xmax, const G4String &fcnName="none", const G4String &binSchemeName="linear")
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
size_t GetOutputId(const G4String &outputName, G4bool warn=true)
G4String GetTnFileName(const G4String &fileName, const G4String &fileType)
G4bool CheckNbins(G4int nbins)
G4String GetPlotFileName(const G4String &fileName)
G4double GetUnitValue(const G4String &unit)
G4String GetOutputName(G4AnalysisOutput outputType)
G4AnalysisOutput GetOutput(const G4String &outputName, G4bool warn=true)
void UpdateTitle(G4String &title, const G4String &unitName, const G4String &fcnName)
G4bool CheckEdges(const std::vector< G4double > &edges)
G4String GetHnFileName(const G4String &fileName, const G4String &fileType, const G4String &hnType, const G4String &hnName)
G4String GetBaseName(const G4String &fileName)
G4bool CheckName(const G4String &name, const G4String &objectType)
G4String GetNtupleFileName(const G4String &fileName, const G4String &fileType, const G4String &ntupleName)