69   delete fSetH1TitleCmd;  
 
   70   delete fSetH1XAxisCmd;  
 
   71   delete fSetH1YAxisCmd;  
 
   80 void G4H1Messenger::CreateH1Cmd()
 
   89   h1Nbins0->
SetGuidance(
"Number of bins (default = 100)");
 
   90   h1Nbins0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
 
   94   h1ValMin0->
SetGuidance(
"Minimum value, expressed in unit (default = 0.)");
 
   95   h1ValMin0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
 
   99   h1ValMax0->
SetGuidance(
"Maximum value, expressed in unit (default = 1.)");
 
  100   h1ValMax0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
 
  104   h1ValUnit0->
SetGuidance(
"The unit of valMin0 and valMax0");
 
  108   G4String fcnGuidance = 
"The function applied to filled values (log, log10, exp).\n";
 
  109   fcnGuidance += 
"Note that the unit parameter cannot be omitted in this case,\n";
 
  110   fcnGuidance += 
"but none value should be used insted.";
 
  116   G4String binSchemeGuidance = 
"The binning scheme (linear, log).\n";
 
  119     += 
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
 
  120   binSchemeGuidance += 
"but none value should be used insted.";
 
  124   fCreateH1Cmd = 
new G4UIcommand(
"/analysis/h1/create", 
this);
 
  139 void G4H1Messenger::SetH1Cmd()
 
  149   h1ValMin->
SetGuidance(
"Minimum value, expressed in unit");
 
  152   h1ValMax->
SetGuidance(
"Maximum value, expressed in unit");
 
  155   h1ValUnit->
SetGuidance(
"The unit of valMin and valMax");
 
  160   G4String fcnGuidance = 
"The function applied to filled values (log, log10, exp, none).\n";
 
  161   fcnGuidance += 
"Note that the unit parameter cannot be omitted in this case,\n";
 
  162   fcnGuidance += 
"but none value should be used insted.";
 
  168   G4String binSchemeGuidance = 
"The binning scheme (linear, log).\n";
 
  170     += 
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
 
  171   binSchemeGuidance += 
"but none value should be used insted.";
 
  175   fSetH1Cmd = 
new G4UIcommand(
"/analysis/h1/set", 
this);
 
  176   fSetH1Cmd->
SetGuidance(
"Set parameters for the 1D histogram of #Id :");
 
  177   fSetH1Cmd->
SetGuidance(
"  nbins; valMin; valMax; unit (of vmin and vmax)");
 
  189 void G4H1Messenger::SetH1TitleCmd()
 
  199   fSetH1TitleCmd = 
new G4UIcommand(
"/analysis/h1/setTitle", 
this);
 
  200   fSetH1TitleCmd->
SetGuidance(
"Set title for the 1D histogram of #Id");
 
  207 void G4H1Messenger::SetH1XAxisCmd()
 
  217   fSetH1XAxisCmd = 
new G4UIcommand(
"/analysis/h1/setXaxis", 
this);
 
  218   fSetH1XAxisCmd->
SetGuidance(
"Set x-axis title for the 1D histogram of #Id");
 
  225 void G4H1Messenger::SetH1YAxisCmd()
 
  235   fSetH1YAxisCmd = 
new G4UIcommand(
"/analysis/h1/setYaxis", 
this);
 
  236   fSetH1YAxisCmd->
SetGuidance(
"Set y-axis title for the 1D histogram of #Id");
 
  249   if ( command == fCreateH1Cmd ) { 
 
  256     std::istringstream is(newValues.
data());
 
  257     is >> name >> title >> nbins >> vmin >> vmax >> sunit >> sfcn >> sbinScheme;
 
  258     fManager->
CreateH1(name, title, nbins, vmin, vmax, sunit, sfcn, sbinScheme);     
 
  260   else if ( command == fSetH1Cmd ) {
 
  267     std::istringstream is(newValues.
data());
 
  268     is >> 
id >> nbins >> vmin >> vmax >> sunit >> sfcn >> sbinScheme;
 
  269     fManager->
SetH1(
id, nbins, vmin, vmax, sunit, sfcn, sbinScheme);     
 
  271   else if ( command == fSetH1TitleCmd ) {
 
  274     std::istringstream is(newValues.
data());
 
  279   else if ( command == fSetH1XAxisCmd ) {
 
  282     std::istringstream is(newValues.
data());
 
  287   else if ( command == fSetH1YAxisCmd ) {
 
  290     std::istringstream is(newValues.
data());
 
void SetParameter(G4UIparameter *const newParameter)
G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
void SetParameterRange(const char *theRange)
void SetParameterCandidates(const char *theString)
void SetDefaultValue(const char *theDefaultValue)
void SetGuidance(const char *aGuidance)
G4bool SetH1(G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
void AvailableForStates(G4ApplicationState s1)
G4bool SetH1YAxisTitle(G4int id, const G4String &title)
virtual void SetNewValue(G4UIcommand *command, G4String value)
const char * data() const 
subroutine title(NA, NB, NCA, NCB)
G4H1Messenger(G4VAnalysisManager *manager)
void SetGuidance(const char *theGuidance)
G4bool SetH1Title(G4int id, const G4String &title)
G4bool SetH1XAxisTitle(G4int id, const G4String &title)