67 return axis.lower_edge();
75 return axis.upper_edge();
81 G4int nbins = axis.bins();
83 G4String functionName =
"ExG4HbookBaseHnManager::Get";
85 functionName +=
"Width";
87 description <<
" nbins = 0 (for " <<
fHnType <<
").";
92 return ( axis.upper_edge() - axis.lower_edge() )/nbins;
107 if ( title ==
"" )
return false;
109 if ( dimension == 0 ) {
110 baseHisto.add_annotation(tools::hbook::key_axis_x_title(), title);
112 else if ( dimension == 1 ) {
113 baseHisto.add_annotation(tools::hbook::key_axis_y_title(), title);
115 else if ( dimension == 2 ) {
116 baseHisto.add_annotation(tools::hbook::key_axis_z_title(), title);
131 G4int dimension)
const
135 if ( dimension == 0 ) {
136 result = baseHisto.annotation(tools::hbook::key_axis_x_title(), title);
138 else if ( dimension == 1 ) {
139 result = baseHisto.annotation(tools::hbook::key_axis_y_title(), title);
141 else if ( dimension == 2 ) {
142 result = baseHisto.annotation(tools::hbook::key_axis_z_title(), title);
148 G4String functionName =
"ExG4HbookBaseHnManager::Get";
150 functionName += axis;
151 functionName +=
"Title";
153 description <<
" Failed to get " << axis <<
" axis " <<
fHnType <<
" title.";
G4double GetMin(const tools::hbook::axis &axis) const
std::ostringstream G4ExceptionDescription
tools::hbook::base_histo G4HbookBaseHisto
virtual ~ExG4HbookBaseHnManager()
G4String GetAxisTitle(const G4HbookBaseHisto &baseHisto, G4int dimension) const
ExG4HbookBaseHnManager(const G4String &hnType)
G4bool SetAxisTitle(G4HbookBaseHisto &baseHisto, G4int dimension, const G4String &title)
G4double GetWidth(const tools::hbook::axis &axis) const
G4double GetMax(const tools::hbook::axis &axis) const
Definition of the ExG4HbookBaseHnManager class.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4int GetNbins(const tools::hbook::axis &axis) const