Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AnalysisUtilities.hh File Reference
#include "G4Exception.hh"
#include "globals.hh"
#include <vector>
#include <memory>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  G4Analysis
 

Enumerations

enum class  G4AnalysisOutput {
  kCsv , kHdf5 , kRoot , kXml ,
  kNone
}
 

Functions

void G4Analysis::Warn (const G4String &message, const std::string_view inClass, const std::string_view inFunction)
 
G4double G4Analysis::GetUnitValue (const G4String &unit)
 
void G4Analysis::Tokenize (const G4String &line, std::vector< G4String > &tokens)
 
G4AnalysisOutput G4Analysis::GetOutput (const G4String &outputName, G4bool warn=true)
 
size_t G4Analysis::GetOutputId (const G4String &outputName, G4bool warn=true)
 
G4String G4Analysis::GetOutputName (G4AnalysisOutput outputType)
 
template<typename HT >
G4String G4Analysis::GetHnType ()
 
template<typename HT >
G4bool G4Analysis::IsProfile ()
 
template<typename T >
std::string G4Analysis::ToString (const T &value)
 
template<>
std::string G4Analysis::ToString< std::string > (const std::string &value)
 
G4String G4Analysis::GetBaseName (const G4String &fileName)
 
G4String G4Analysis::GetExtension (const G4String &fileName, const G4String &defaultExtension="")
 
G4String G4Analysis::GetHnFileName (const G4String &fileName, const G4String &fileType, const G4String &hnType, const G4String &hnName)
 
G4String G4Analysis::GetHnFileName (const G4String &fileName, const G4String &fileType, G4int cycle=0)
 
G4String G4Analysis::GetNtupleFileName (const G4String &fileName, const G4String &fileType, const G4String &ntupleName, G4int cycle=0)
 
G4String G4Analysis::GetNtupleFileName (const G4String &fileName, const G4String &fileType, G4int ntupleFileNumber, G4int cycle=0)
 
G4String G4Analysis::GetTnFileName (const G4String &fileName, const G4String &fileType, G4int cycle=0)
 
G4String G4Analysis::GetPlotFileName (const G4String &fileName)
 

Variables

constexpr G4int G4Analysis::kX { 0 }
 
constexpr G4int G4Analysis::kY { 1 }
 
constexpr G4int G4Analysis::kZ { 2 }
 
constexpr G4int G4Analysis::kInvalidId { -1 }
 
constexpr G4int G4Analysis::kVL0 { 0 }
 
constexpr G4int G4Analysis::kVL1 { 1 }
 
constexpr G4int G4Analysis::kVL2 { 2 }
 
constexpr G4int G4Analysis::kVL3 { 3 }
 
constexpr G4int G4Analysis::kVL4 { 4 }
 
constexpr unsigned int G4Analysis::kDefaultBasketSize = 32000
 
constexpr unsigned int G4Analysis::kDefaultBasketEntries = 4000
 
constexpr std::string_view G4Analysis::kNamespaceName { "G4Analysis" }
 

Enumeration Type Documentation

◆ G4AnalysisOutput

enum class G4AnalysisOutput
strong
Enumerator
kCsv 
kHdf5 
kRoot 
kXml 
kNone 

Definition at line 41 of file G4AnalysisUtilities.hh.