47 : myParser(myPars)
48{
49 persistencyDir = new G4UIdirectory("/persistency/");
50 persistencyDir->SetGuidance("UI commands specific to persistency.");
51
52 gdmlDir = new G4UIdirectory("/persistency/gdml/");
53 gdmlDir->SetGuidance("GDML parser and writer.");
54
55 ReaderSchema = new G4UIcmdWithAString("/persistency/gdml/schema", this);
56 ReaderSchema->SetGuidance("Set alternative GDML schema file for import validation.");
57 ReaderSchema->SetParameterName("schema_path_and_filename", false);
59 ReaderSchema->SetToBeBroadcasted(false);
60
61 ReaderCmd = new G4UIcmdWithAString("/persistency/gdml/read", this);
62 ReaderCmd->SetGuidance("Read GDML file.");
63 ReaderCmd->SetParameterName("filename", false);
65 ReaderCmd->SetToBeBroadcasted(false);
66
67 TopVolCmd = new G4UIcmdWithAString("/persistency/gdml/topvol", this);
68 TopVolCmd->SetGuidance("Set the top volume for writing the GDML file.");
69 TopVolCmd->SetParameterName("topvol", false);
70 TopVolCmd->SetToBeBroadcasted(false);
71
72 WriterCmd = new G4UIcmdWithAString("/persistency/gdml/write", this);
73 WriterCmd->SetGuidance("Write GDML file.");
74 WriterCmd->SetParameterName("filename", false);
76 WriterCmd->SetToBeBroadcasted(false);
77
78 StripCmd = new G4UIcmdWithABool("/persistency/gdml/strip_pointers", this);
79 StripCmd->SetGuidance("Enable/disable stripping of pointers on names");
80 StripCmd->SetGuidance("when reading a GDML file.");
81 StripCmd->SetParameterName("strip_pointers", true);
82 StripCmd->SetDefaultValue(true);
84 StripCmd->SetToBeBroadcasted(false);
85
86 AppendCmd = new G4UIcmdWithABool("/persistency/gdml/add_pointers", this);
87 AppendCmd->SetGuidance("Enable/disable appending of pointers to names");
88 AppendCmd->SetGuidance("when writing a GDML file.");
89 AppendCmd->SetParameterName("append_pointers", true);
90 AppendCmd->SetDefaultValue(true);
92 AppendCmd->SetToBeBroadcasted(false);
93
94 RegionCmd = new G4UIcmdWithABool("/persistency/gdml/export_regions", this);
95 RegionCmd->SetGuidance("Enable export of geometrical regions");
96 RegionCmd->SetGuidance("for storing production cuts.");
97 RegionCmd->SetParameterName("export_regions", false);
98 RegionCmd->SetDefaultValue(false);
100 RegionCmd->SetToBeBroadcasted(false);
101
102 EcutsCmd = new G4UIcmdWithABool("/persistency/gdml/export_Ecuts", this);
103 EcutsCmd->SetGuidance("Enable export of energy cuts associated");
104 EcutsCmd->SetGuidance("to logical volumes.");
105 EcutsCmd->SetGuidance("NOTE: may increase considerably the size of the");
106 EcutsCmd->SetGuidance(" GDML file! Information is anyhow not used");
107 EcutsCmd->SetGuidance(" for import.");
108 EcutsCmd->SetParameterName("export_Ecuts", false);
109 EcutsCmd->SetDefaultValue(false);
111 EcutsCmd->SetToBeBroadcasted(false);
112
113 SDCmd = new G4UIcmdWithABool("/persistency/gdml/export_SD", this);
114 SDCmd->SetGuidance("Enable export of SD associated");
115 SDCmd->SetGuidance("to logical volumes.");
116 SDCmd->SetParameterName("export_SD", false);
117 SDCmd->SetDefaultValue(false);
119 SDCmd->SetToBeBroadcasted(false);
120
121 ClearCmd = new G4UIcmdWithoutParameter("/persistency/gdml/clear", this);
122 ClearCmd->SetGuidance("Clear geometry (before reading a new one from GDML).");
124 ClearCmd->SetToBeBroadcasted(false);
125}