19#include <G4UIcmdWithABool.hh>
20#include <G4UIcmdWithAString.hh>
21#include <G4UIcmdWithoutParameter.hh>
22#include <G4UIdirectory.hh>
27 fSDConstruction(sdConstruction),
28 fAddSDSelectionCmd(0),
29 fSetSDSelectionFromTGeoCmd(0),
32 fSetExclusiveSDScoringCmd(0),
38 G4String guidance =
"Selects volumes which will be make sensitive \n";
40 "(When any selection is applied MCApllication::Stepping() is called only ";
41 guidance +=
"from the selected volumes.)";
47 new G4UIcmdWithABool(
"/mcDet/setSDSelectionFromTGeo",
this);
48 guidance =
"Get sensitive volumes selection from TGeo geometry. \n";
50 "(When any selection is applied MCApllication::Stepping() is called only ";
51 guidance +=
"from the selected volumes.)";
56 fSetSVLabelCmd =
new G4UIcmdWithAString(
"/mcDet/setSVLabel",
this);
57 guidance =
"Set the string which is used in TGeoVolume::SetOption \n";
58 guidance +=
"(to label sensitive volumes (default is \"";
65 fSetGflashCmd =
new G4UIcmdWithABool(
"/mcDet/setGflash",
this);
66 guidance =
"Activate creating sensitive detectors adapted for GFlash.";
72 new G4UIcmdWithABool(
"/mcDet/setExclusiveSDScoring",
this);
73 guidance =
"Activate scoring by user sensitive detectors only.\n";
74 guidance +=
"The MC Application::Stepping() will be not called.";
Definition of the TG4SDConstruction class.
Definition of the TG4SDMessenger class.
Definition of the TG4SDServices class.
Sensitive detector construction.
static const G4String & GetDefaultSVLabel()
void SetIsGflash(G4bool isGflash)
void SetSelectionFromTGeo(G4bool value)
void SetExclusiveSDScoring(G4bool value)
void SetSensitiveVolumeLabel(const G4String &label)
void AddSelection(const G4String &selection)
G4UIcmdWithABool * fSetGflashCmd
setGflash command
G4UIcmdWithAString * fSetSVLabelCmd
setSVLabel command
TG4SDConstruction * fSDConstruction
associated class
G4UIcmdWithABool * fSetExclusiveSDScoringCmd
setExclusiveSDScoring command
G4UIcmdWithABool * fSetSDSelectionFromTGeoCmd
getSDSelectionFromTGeo command
G4UIcmdWithAString * fAddSDSelectionCmd
addSDSelection command
virtual void SetNewValue(G4UIcommand *command, G4String string)
G4UIcmdWithoutParameter * fPrintUserSDsCmd
command: printVolumes
TG4SDMessenger()
Not implemented.
virtual ~TG4SDMessenger()
void PrintUserSensitiveDetectors() const
static TG4SDServices * Instance()