RootUtils
StringUtils.h
1 #ifndef StringUtils_hh
2 #define StringUtils_hh 1
3 
4 #include <TList.h>
5 #include <TH1.h>
6 
17  Double_t value;
18  TString unit;
19 };
20 
25 namespace StringUtils {
32  TString stripExtension(const char *path);
33 
40  void writeProgress(const char *message, Int_t nTimes);
41 
48  EnergyValueUnit formatEnergy(Double_t value);
49 
58  TString getSafeName(const char* name);
59 }
60 
61 #endif
Definition: RootUtils.cxx:130
TString getSafeName(const char *name)
Get save ROOT object name.
Definition: StringUtils.cpp:72
TString stripExtension(const char *path)
Remove extension from a file path.
Definition: StringUtils.cpp:15
EnergyValueUnit formatEnergy(Double_t value)
Format energy to appropriate unit. Function outputs EnergyValueUnit structure containing energy value...
Definition: StringUtils.cpp:41
void writeProgress(const char *message, Int_t nTimes)
Simple implementation of an ASCII progress bar.
Definition: StringUtils.cpp:27
Struct contains energy value (Double_t) with corresponding unit (TString)
Definition: StringUtils.h:16
TString unit
Definition: StringUtils.h:18
Double_t value
Definition: StringUtils.h:17