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 ( dimension == 0 ) {
108 baseHisto.add_annotation(tools::hbook::key_axis_x_title(), title);
110 else if ( dimension == 1 ) {
111 baseHisto.add_annotation(tools::hbook::key_axis_y_title(), title);
113 else if ( dimension == 2 ) {
114 baseHisto.add_annotation(tools::hbook::key_axis_z_title(), title);
129 G4int dimension)
const
133 if ( dimension == 0 ) {
134 result = baseHisto.annotation(tools::hbook::key_axis_x_title(), title);
136 else if ( dimension == 1 ) {
137 result = baseHisto.annotation(tools::hbook::key_axis_y_title(), title);
139 else if ( dimension == 2 ) {
140 result = baseHisto.annotation(tools::hbook::key_axis_z_title(), title);
146 G4String functionName =
"ExG4HbookBaseHnManager::Get";
148 functionName += axis;
149 functionName +=
"Title";
151 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