Geant4
10.02.p02
|
#include <G4AnalysisMessengerHelper.hh>
Classes | |
struct | BinData |
struct | ValueData |
Public Member Functions | |
G4AnalysisMessengerHelper (const G4String &hnType) | |
~G4AnalysisMessengerHelper () | |
std::unique_ptr< G4UIdirectory > | CreateHnDirectory () const |
std::unique_ptr< G4UIcommand > | CreateSetTitleCommand (G4UImessenger *messenger) const |
std::unique_ptr< G4UIcommand > | CreateSetBinsCommand (const G4String &axis, G4UImessenger *messenger) const |
std::unique_ptr< G4UIcommand > | CreateSetValuesCommand (const G4String &axis, G4UImessenger *messenger) const |
std::unique_ptr< G4UIcommand > | CreateSetAxisCommand (const G4String &axis, G4UImessenger *messenger) const |
void | GetBinData (BinData &data, std::vector< G4String > ¶meters, G4int &counter) const |
void | GetValueData (ValueData &data, std::vector< G4String > ¶meters, G4int &counter) const |
void | WarnAboutParameters (G4UIcommand *command, G4int nofParameters) const |
void | WarnAboutSetCommands () const |
Private Member Functions | |
G4String | Update (const G4String &str, const G4String &axis="") const |
Private Attributes | |
G4String | fHnType |
Friends | |
class | G4HnMessenger |
Definition at line 45 of file G4AnalysisMessengerHelper.hh.
|
explicit |
Definition at line 79 of file G4AnalysisMessengerHelper.cc.
G4AnalysisMessengerHelper::~G4AnalysisMessengerHelper | ( | ) |
Definition at line 84 of file G4AnalysisMessengerHelper.cc.
std::unique_ptr< G4UIdirectory > G4AnalysisMessengerHelper::CreateHnDirectory | ( | ) | const |
Definition at line 134 of file G4AnalysisMessengerHelper.cc.
References Update().
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateSetAxisCommand | ( | const G4String & | axis, |
G4UImessenger * | messenger | ||
) | const |
Definition at line 259 of file G4AnalysisMessengerHelper.cc.
References G4State_Idle, G4State_PreInit, and Update().
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateSetBinsCommand | ( | const G4String & | axis, |
G4UImessenger * | messenger | ||
) | const |
Definition at line 166 of file G4AnalysisMessengerHelper.cc.
References G4State_Idle, G4State_PreInit, and Update().
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateSetTitleCommand | ( | G4UImessenger * | messenger | ) | const |
Definition at line 143 of file G4AnalysisMessengerHelper.cc.
References G4State_Idle, G4State_PreInit, and Update().
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateSetValuesCommand | ( | const G4String & | axis, |
G4UImessenger * | messenger | ||
) | const |
Definition at line 222 of file G4AnalysisMessengerHelper.cc.
References G4State_Idle, G4State_PreInit, and Update().
void G4AnalysisMessengerHelper::GetBinData | ( | BinData & | data, |
std::vector< G4String > & | parameters, | ||
G4int & | counter | ||
) | const |
Definition at line 281 of file G4AnalysisMessengerHelper.cc.
References G4UIcommand::ConvertToDouble(), G4UIcommand::ConvertToInt(), G4AnalysisMessengerHelper::BinData::fNbins, G4AnalysisMessengerHelper::BinData::fSbinScheme, G4AnalysisMessengerHelper::BinData::fSfcn, G4AnalysisMessengerHelper::BinData::fSunit, G4AnalysisMessengerHelper::BinData::fVmax, and G4AnalysisMessengerHelper::BinData::fVmin.
void G4AnalysisMessengerHelper::GetValueData | ( | ValueData & | data, |
std::vector< G4String > & | parameters, | ||
G4int & | counter | ||
) | const |
Definition at line 294 of file G4AnalysisMessengerHelper.cc.
References G4UIcommand::ConvertToDouble(), G4AnalysisMessengerHelper::ValueData::fSfcn, G4AnalysisMessengerHelper::ValueData::fSunit, G4AnalysisMessengerHelper::ValueData::fVmax, and G4AnalysisMessengerHelper::ValueData::fVmin.
|
private |
Definition at line 92 of file G4AnalysisMessengerHelper.cc.
References fHnType, second, G4String::toLower(), and G4String::toUpper().
Referenced by CreateHnDirectory(), CreateSetAxisCommand(), CreateSetBinsCommand(), CreateSetTitleCommand(), CreateSetValuesCommand(), WarnAboutParameters(), and WarnAboutSetCommands().
void G4AnalysisMessengerHelper::WarnAboutParameters | ( | G4UIcommand * | command, |
G4int | nofParameters | ||
) | const |
Definition at line 305 of file G4AnalysisMessengerHelper.cc.
References G4endl, G4Exception(), G4UIcommand::GetCommandName(), G4UIcommand::GetParameterEntries(), JustWarning, and Update().
void G4AnalysisMessengerHelper::WarnAboutSetCommands | ( | ) | const |
Definition at line 320 of file G4AnalysisMessengerHelper.cc.
References G4endl, G4Exception(), JustWarning, and Update().
|
friend |
Definition at line 79 of file G4AnalysisMessengerHelper.hh.
|
private |
Definition at line 112 of file G4AnalysisMessengerHelper.hh.
Referenced by Update().