Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ProfilerMessenger.cc File Reference
#include "G4ProfilerMessenger.hh"
#include "G4Profiler.hh"
#include "G4UIdirectory.hh"
#include "G4UIcmdWithABool.hh"
#include "G4UIcmdWithAString.hh"
#include "G4TiMemory.hh"

Go to the source code of this file.

Macros

#define CREATE_DIR(IDX, DIR, GUIDANCE)
 
#define SET_ENABLED_CMD(IDX, CMD, CMDLINE, DEFAULT, GUIDANCE)
 
#define SET_COMPONENTS_CMD(IDX, CMD, CMDLINE, DEFAULTS, GUIDANCE)
 
#define SET_OUTPUT_CMD(CMD, CMDLINE, DEFAULT, GUIDANCE)
 

Typedefs

using Type = G4ProfileType
 

Macro Definition Documentation

◆ CREATE_DIR

#define CREATE_DIR (   IDX,
  DIR,
  GUIDANCE 
)
Value:
profileTypeDirs.at(IDX) = new G4UIdirectory(DIR); \
profileTypeDirs.at(IDX)->SetGuidance(GUIDANCE)

◆ SET_COMPONENTS_CMD

#define SET_COMPONENTS_CMD (   IDX,
  CMD,
  CMDLINE,
  DEFAULTS,
  GUIDANCE 
)
Value:
profileCompCmds.at(IDX).second = CMDLINE; \
profileCompCmds.at(IDX).first = new G4UIcmdWithAString(CMD, this); \
profileCompCmds.at(IDX).first->SetDefaultValue(DEFAULTS); \
profileCompCmds.at(IDX).first->SetGuidance(GUIDANCE); \
profileCompCmds.at(IDX).first->AvailableForStates(G4State_PreInit, \
@ G4State_Idle
@ G4State_PreInit

◆ SET_ENABLED_CMD

#define SET_ENABLED_CMD (   IDX,
  CMD,
  CMDLINE,
  DEFAULT,
  GUIDANCE 
)
Value:
profileEnableCmds.at(IDX).second = CMDLINE; \
profileEnableCmds.at(IDX).first = new G4UIcmdWithABool(CMD, this); \
profileEnableCmds.at(IDX).first->SetDefaultValue(DEFAULT); \
profileEnableCmds.at(IDX).first->SetGuidance(GUIDANCE); \
profileEnableCmds.at(IDX).first->AvailableForStates(G4State_PreInit, \

◆ SET_OUTPUT_CMD

#define SET_OUTPUT_CMD (   CMD,
  CMDLINE,
  DEFAULT,
  GUIDANCE 
)
Value:
profileGeneralCmds.push_back({ new G4UIcmdWithABool(CMD, this), CMDLINE }); \
profileGeneralCmds.back().first->SetDefaultValue(DEFAULT); \
profileGeneralCmds.back().first->SetGuidance(GUIDANCE); \
profileGeneralCmds.back().first->AvailableForStates(G4State_PreInit, \

Typedef Documentation

◆ Type

Definition at line 41 of file G4ProfilerMessenger.cc.