Geant4-11
|
#include <G4AnalysisMessengerHelper.hh>
Data Structures | |
struct | BinData |
struct | ValueData |
Public Member Functions | |
std::unique_ptr< G4UIcommand > | CreateGetCommand (G4UImessenger *messenger) const |
std::unique_ptr< G4UIdirectory > | CreateHnDirectory () const |
std::unique_ptr< G4UIcommand > | CreateSetAxisCommand (const G4String &axis, G4UImessenger *messenger) const |
std::unique_ptr< G4UIcommand > | CreateSetAxisLogCommand (const G4String &axis, G4UImessenger *messenger) const |
std::unique_ptr< G4UIcommand > | CreateSetBinsCommand (const G4String &axis, G4UImessenger *messenger) const |
std::unique_ptr< G4UIcommand > | CreateSetTitleCommand (G4UImessenger *messenger) const |
std::unique_ptr< G4UIcommand > | CreateSetValuesCommand (const G4String &axis, G4UImessenger *messenger) const |
G4AnalysisMessengerHelper ()=delete | |
G4AnalysisMessengerHelper (const G4String &hnType) | |
void | GetBinData (BinData &data, std::vector< G4String > ¶meters, G4int &counter) const |
void | GetValueData (ValueData &data, std::vector< G4String > ¶meters, G4int &counter) const |
void | SetHnType (const G4String &hnType) |
void | WarnAboutParameters (G4UIcommand *command, G4int nofParameters) const |
void | WarnAboutSetCommands () const |
~G4AnalysisMessengerHelper ()=default | |
Private Member Functions | |
G4String | Update (const G4String &str, const G4String &axis="") const |
Private Attributes | |
G4String | fHnType |
Static Private Attributes | |
static constexpr std::string_view | fkClass { "G4AnalysisMessengerHelper" } |
Friends | |
class | G4HnMessenger |
Definition at line 45 of file G4AnalysisMessengerHelper.hh.
|
explicit |
Definition at line 78 of file G4AnalysisMessengerHelper.cc.
|
delete |
|
default |
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateGetCommand | ( | G4UImessenger * | messenger | ) | const |
Definition at line 135 of file G4AnalysisMessengerHelper.cc.
References G4State_EventProc, G4State_GeomClosed, G4State_Idle, and Update().
Referenced by G4ToolsAnalysisMessenger::G4ToolsAnalysisMessenger().
std::unique_ptr< G4UIdirectory > G4AnalysisMessengerHelper::CreateHnDirectory | ( | ) | const |
Definition at line 126 of file G4AnalysisMessengerHelper.cc.
References Update().
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateSetAxisCommand | ( | const G4String & | axis, |
G4UImessenger * | messenger | ||
) | const |
Definition at line 274 of file G4AnalysisMessengerHelper.cc.
References G4State_Idle, G4State_PreInit, and Update().
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateSetAxisLogCommand | ( | const G4String & | axis, |
G4UImessenger * | messenger | ||
) | const |
Definition at line 296 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 175 of file G4AnalysisMessengerHelper.cc.
References G4State_Idle, G4State_PreInit, and Update().
std::unique_ptr< G4UIcommand > G4AnalysisMessengerHelper::CreateSetTitleCommand | ( | G4UImessenger * | messenger | ) | const |
Definition at line 152 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 232 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 318 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 331 of file G4AnalysisMessengerHelper.cc.
References G4UIcommand::ConvertToDouble(), G4AnalysisMessengerHelper::ValueData::fSfcn, G4AnalysisMessengerHelper::ValueData::fSunit, G4AnalysisMessengerHelper::ValueData::fVmax, and G4AnalysisMessengerHelper::ValueData::fVmin.
|
inline |
Definition at line 119 of file G4AnalysisMessengerHelper.hh.
References fHnType.
Referenced by G4ToolsAnalysisMessenger::G4ToolsAnalysisMessenger().
|
private |
Definition at line 87 of file G4AnalysisMessengerHelper.cc.
References fHnType, anonymous_namespace{G4AnalysisMessengerHelper.cc}::ObjectType(), anonymous_namespace{G4AnalysisMessengerHelper.cc}::Replace(), second, G4StrUtil::to_lower_copy(), and G4StrUtil::to_upper_copy().
Referenced by CreateGetCommand(), CreateHnDirectory(), CreateSetAxisCommand(), CreateSetAxisLogCommand(), CreateSetBinsCommand(), CreateSetTitleCommand(), and CreateSetValuesCommand().
void G4AnalysisMessengerHelper::WarnAboutParameters | ( | G4UIcommand * | command, |
G4int | nofParameters | ||
) | const |
Definition at line 342 of file G4AnalysisMessengerHelper.cc.
References fkClass, G4UIcommand::GetCommandName(), G4UIcommand::GetParameterEntries(), and G4Analysis::Warn().
void G4AnalysisMessengerHelper::WarnAboutSetCommands | ( | ) | const |
Definition at line 353 of file G4AnalysisMessengerHelper.cc.
References fkClass, and G4Analysis::Warn().
|
friend |
Definition at line 69 of file G4AnalysisMessengerHelper.hh.
|
private |
Definition at line 114 of file G4AnalysisMessengerHelper.hh.
Referenced by SetHnType(), and Update().
|
staticconstexprprivate |
Definition at line 111 of file G4AnalysisMessengerHelper.hh.
Referenced by WarnAboutParameters(), and WarnAboutSetCommands().