source: trunk/source/digits_hits/utils/src/G4ScoreQuantityMessengerQCmd.cc @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 19.9 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4ScoreQuantityMessengerQCmd.cc,v 1.8 2010/11/03 08:29:02 taso Exp $
28// GEANT4 tag $Name:  $
29//
30// ---------------------------------------------------------------------
31// Modifications
32// 08-Oct-2010 T.Aso remove unit of G4PSPassageCellCurrent.
33// ---------------------------------------------------------------------
34
35#include "G4ScoreQuantityMessenger.hh"
36#include "G4ScoringManager.hh"
37#include "G4VScoringMesh.hh"
38
39#include "G4PSCellCharge3D.hh"
40#include "G4PSCellFlux3D.hh"
41#include "G4PSPassageCellFlux3D.hh"
42#include "G4PSEnergyDeposit3D.hh"
43#include "G4PSDoseDeposit3D.hh"
44#include "G4PSNofStep3D.hh"
45#include "G4PSNofSecondary3D.hh"
46//
47#include "G4PSTrackLength3D.hh"
48#include "G4PSPassageCellCurrent3D.hh"
49#include "G4PSPassageTrackLength3D.hh"
50#include "G4PSFlatSurfaceCurrent3D.hh"
51#include "G4PSFlatSurfaceFlux3D.hh"
52#include "G4PSSphereSurfaceCurrent3D.hh"
53#include "G4PSSphereSurfaceFlux3D.hh"
54#include "G4PSCylinderSurfaceCurrent3D.hh"
55#include "G4PSCylinderSurfaceFlux3D.hh"
56#include "G4PSNofCollision3D.hh"
57#include "G4PSPopulation3D.hh"
58#include "G4PSTrackCounter3D.hh"
59#include "G4PSTermination3D.hh"
60
61#include "G4SDChargedFilter.hh"
62#include "G4SDNeutralFilter.hh"
63#include "G4SDKineticEnergyFilter.hh"
64#include "G4SDParticleFilter.hh"
65#include "G4SDParticleWithEnergyFilter.hh"
66
67#include "G4UIdirectory.hh"
68#include "G4UIcmdWithoutParameter.hh"
69#include "G4UIcmdWithAnInteger.hh"
70#include "G4UIcmdWithAString.hh"
71#include "G4UIcmdWithABool.hh"
72#include "G4UIcmdWithADoubleAndUnit.hh"
73#include "G4UIcmdWith3VectorAndUnit.hh"
74#include "G4UIcommand.hh"
75#include "G4Tokenizer.hh"
76#include "G4UnitsTable.hh"
77
78void G4ScoreQuantityMessenger::QuantityCommands()
79{
80  G4UIparameter* param;
81
82  //
83  // Quantity commands
84  quantityDir = new G4UIdirectory("/score/quantity/");
85  quantityDir->SetGuidance("Scoring quantity of the mesh.");
86  //
87  qTouchCmd= new G4UIcmdWithAString("/score/quantity/touch",this);
88  qTouchCmd->SetGuidance("Assign previously defined quantity to the current quantity.");
89  qTouchCmd->SetParameterName("qname",false);
90  //
91  qGetUnitCmd = new G4UIcmdWithoutParameter("/score/quantity/get/unit",this);
92  qGetUnitCmd->SetGuidance("Print output unit of the current quantity.");
93  //
94  qSetUnitCmd = new G4UIcmdWithAString("/score/quantity/set/unit",this);
95  qSetUnitCmd->SetGuidance("Set output unit of the current quantity.");
96  qSetUnitCmd->SetParameterName("unit",false);
97
98  // Primitive Scorers
99  qeDepCmd = new G4UIcommand("/score/quantity/energyDeposit",this);
100  qeDepCmd->SetGuidance("Energy deposit scorer.");
101  qeDepCmd->
102  SetGuidance("[usage] /score/quantiy/energyDeposit qname unit");
103  qeDepCmd->SetGuidance("  qname  :(String) scorer name");
104  qeDepCmd->SetGuidance("  unit   :(String) unit");
105  param = new G4UIparameter("qname",'s',false);
106  qeDepCmd->SetParameter(param);
107  param = new G4UIparameter("unit",'s',true);
108  param->SetDefaultValue("MeV");
109  qeDepCmd->SetParameter(param);
110  //
111  qCellChgCmd  = new G4UIcommand("/score/quantity/cellCharge",this);
112  qCellChgCmd->SetGuidance("Cell charge scorer.");
113  qCellChgCmd->
114  SetGuidance("[usage] /score/quantiy/cellCharge qname unit");
115  qCellChgCmd->SetGuidance("  qname  :(String) scorer name");
116  qCellChgCmd->SetGuidance("  unit   :(String) unit");
117  param = new G4UIparameter("qname",'s',false);
118  qCellChgCmd->SetParameter(param);
119  param = new G4UIparameter("unit",'s',true);
120  param->SetDefaultValue("e+");
121  qCellChgCmd->SetParameter(param);
122  //
123  qCellFluxCmd = new G4UIcommand("/score/quantity/cellFlux",this);
124  qCellFluxCmd->SetGuidance("Cell flux scorer.");
125  qCellFluxCmd->
126  SetGuidance("[usage] /score/quantiy/cellFlux qname unit");
127  qCellFluxCmd->SetGuidance("  qname  :(String) scorer name");
128  qCellFluxCmd->SetGuidance("  unit   :(String) unit");
129  param = new G4UIparameter("qname",'s',false);
130  qCellFluxCmd->SetParameter(param);
131  param = new G4UIparameter("unit",'s',true);
132  param->SetDefaultValue("percm2");
133  qCellFluxCmd->SetParameter(param);
134  //
135  qPassCellFluxCmd = new G4UIcommand("/score/quantity/passageCellFlux",this);
136  qPassCellFluxCmd->SetGuidance("Passage cell flux scorer");
137  qPassCellFluxCmd->
138  SetGuidance("[usage] /score/quantiy/passageCellFlux qname unit");
139  qPassCellFluxCmd->SetGuidance("  qname  :(String) scorer name");
140  qPassCellFluxCmd->SetGuidance("  unit   :(String) unit");
141  param = new G4UIparameter("qname",'s',false);
142  qPassCellFluxCmd->SetParameter(param);
143  param = new G4UIparameter("unit",'s',true);
144  param->SetDefaultValue("percm2");
145  qPassCellFluxCmd->SetParameter(param);
146  //
147  qdoseDepCmd = new G4UIcommand("/score/quantity/doseDeposit",this);
148  qdoseDepCmd->SetGuidance("Dose deposit scorer.");
149  qdoseDepCmd->
150  SetGuidance("[usage] /score/quantiy/doseDeposit qname unit");
151  qdoseDepCmd->SetGuidance("  qname  :(String) scorer name");
152  qdoseDepCmd->SetGuidance("  unit   :(String) unit");
153  param = new G4UIparameter("qname",'s',false);
154  qdoseDepCmd->SetParameter(param);
155  param = new G4UIparameter("unit",'s',true);
156  param->SetDefaultValue("Gy");
157  qdoseDepCmd->SetParameter(param);
158  //
159  qnOfStepCmd = new G4UIcommand("/score/quantity/nOfStep",this);
160  qnOfStepCmd->SetGuidance("Number of step scorer.");
161  qnOfStepCmd->
162  SetGuidance("[usage] /score/quantiy/nOfStep qname");
163  qnOfStepCmd->SetGuidance("  qname  :(String) scorer name");
164  param = new G4UIparameter("qname",'s',false);
165  qnOfStepCmd->SetParameter(param);
166  //
167  qnOfSecondaryCmd = new G4UIcommand("/score/quantity/nOfSecondary",this);
168  qnOfSecondaryCmd->SetGuidance("Number of secondary scorer.");
169  qnOfSecondaryCmd->
170  SetGuidance("[usage] /score/quantiy/nOfSecondary qname");
171  qnOfSecondaryCmd->SetGuidance("  qname  :(String) scorer name");
172  param = new G4UIparameter("qname",'s',false);
173  qnOfSecondaryCmd->SetParameter(param);
174  //
175  qTrackLengthCmd = new G4UIcommand("/score/quantity/trackLength",this);
176  qTrackLengthCmd->SetGuidance("Track length scorer.");
177  qTrackLengthCmd->
178  SetGuidance("[usage] /score/quantiy/trackLength qname wflag kflag vflag unit");
179  qTrackLengthCmd->SetGuidance("  qname  :(String) scorer name");
180  qTrackLengthCmd->SetGuidance("  wflag  :(Bool) weighted");
181  qTrackLengthCmd->SetGuidance("  kflag  :(Bool) multiply kinetic energy");
182  qTrackLengthCmd->SetGuidance("  vflag  :(Bool) divide by velocity");
183  qTrackLengthCmd->SetGuidance("  unit   :(String) unit");
184  param = new G4UIparameter("qname",'s',false);
185  qTrackLengthCmd->SetParameter(param);
186  param = new G4UIparameter("wflag",'b',true);
187  param->SetDefaultValue("false");
188  qTrackLengthCmd->SetParameter(param);
189  param = new G4UIparameter("kflag",'b',true);
190  param->SetDefaultValue("false");
191  qTrackLengthCmd->SetParameter(param);
192  param = new G4UIparameter("vflag",'b',true);
193  param->SetDefaultValue("false");
194  qTrackLengthCmd->SetParameter(param);
195  param = new G4UIparameter("unit",'s',true);
196  param->SetDefaultValue("mm");
197  qTrackLengthCmd->SetParameter(param);
198  //
199  qPassCellCurrCmd = new G4UIcommand("/score/quantity/passageCellCurrent",this);
200  qPassCellCurrCmd->SetGuidance("Passage cell current scorer.");
201  qPassCellCurrCmd->
202    SetGuidance("[usage] /score/quantiy/passageCellCurrent qname wflag");
203    //SetGuidance("[usage] /score/quantiy/passageCellCurrent qname wflag unit");
204  qPassCellCurrCmd->SetGuidance("  qname  :(String) scorer name");
205  qPassCellCurrCmd->SetGuidance("  wflag  :(Bool) weighted");
206  //qPassCellCurrCmd->SetGuidance("  unit  :(Bool) unit");
207  param = new G4UIparameter("qname",'s',false);
208  qPassCellCurrCmd->SetParameter(param);
209  param = new G4UIparameter("wflag",'b',true);
210  param->SetDefaultValue("true");
211  qPassCellCurrCmd->SetParameter(param);
212  //param = new G4UIparameter("unit",'s',true);
213  //param->SetDefaultValue("parcm2");
214  //qPassCellCurrCmd->SetParameter(param);
215  //
216  qPassTrackLengthCmd = new G4UIcommand("/score/quantity/passageTrackLength",this);
217  qPassTrackLengthCmd->SetGuidance("Passage track length scorer.");
218  qPassTrackLengthCmd->
219  SetGuidance("[usage] /score/quantiy/passageTrackLength qname wflag unit");
220  qPassTrackLengthCmd->SetGuidance("  qname  :(String) scorer name");
221  qPassTrackLengthCmd->SetGuidance("  wflag  :(Bool) weighted");
222  qPassTrackLengthCmd->SetGuidance("  unit   :(Bool) unit");
223  param = new G4UIparameter("qname",'s',false);
224  qPassTrackLengthCmd->SetParameter(param);
225  param = new G4UIparameter("wflag",'b',true);
226  param->SetDefaultValue("true");
227  qPassTrackLengthCmd->SetParameter(param);
228  param = new G4UIparameter("unit",'s',true);
229  param->SetDefaultValue("mm");
230  qPassTrackLengthCmd->SetParameter(param);
231  //
232  qFlatSurfCurrCmd = new G4UIcommand("/score/quantity/flatSurfaceCurrent",this);
233  qFlatSurfCurrCmd->SetGuidance("Flat surface current Scorer.");
234  qFlatSurfCurrCmd->
235  SetGuidance("[usage] /score/quantiy/flatSurfaceCurrent qname dflag wflag aflag unit");
236  qFlatSurfCurrCmd->SetGuidance("  qname  :(String) scorer name");
237  qFlatSurfCurrCmd->SetGuidance("  dflag  :(Int) direction flag");
238  qFlatSurfCurrCmd->SetGuidance("         : 0 = Both In and Out");
239  qFlatSurfCurrCmd->SetGuidance("         : 1 = In only");
240  qFlatSurfCurrCmd->SetGuidance("         : 2 = Out only");
241  qFlatSurfCurrCmd->SetGuidance("  wflag  :(Bool) weighted");
242  qFlatSurfCurrCmd->SetGuidance("  aflag  :(Bool) divide by area");
243  qFlatSurfCurrCmd->SetGuidance("  unit   :(Bool) unit");
244  param = new G4UIparameter("qname",'s',false);
245  qFlatSurfCurrCmd->SetParameter(param);
246  param = new G4UIparameter("dflag",'i',true);
247  param->SetDefaultValue("0");
248  qFlatSurfCurrCmd->SetParameter(param);
249  param = new G4UIparameter("wflag",'b',true);
250  param->SetDefaultValue("true");
251  qFlatSurfCurrCmd->SetParameter(param);
252  param = new G4UIparameter("aflag",'b',true);
253  param->SetDefaultValue("true");
254  qFlatSurfCurrCmd->SetParameter(param);
255  param = new G4UIparameter("unit",'s',true);
256  param->SetDefaultValue("percm2");
257  qFlatSurfCurrCmd->SetParameter(param);
258  //
259  qFlatSurfFluxCmd = new G4UIcommand("/score/quantity/flatSurfaceFlux",this);
260  qFlatSurfFluxCmd->SetGuidance("Flat surface flux scorer.");
261  qFlatSurfFluxCmd->
262  SetGuidance("[usage] /score/quantiy/flatSurfaceFlux qname dflag unit");
263  qFlatSurfFluxCmd->SetGuidance("  qname  :(String) scorer name");
264  qFlatSurfFluxCmd->SetGuidance("  dflag  :(Int) direction flag");
265  qFlatSurfFluxCmd->SetGuidance("         : 0 = Both In and Out");
266  qFlatSurfFluxCmd->SetGuidance("         : 1 = In only");
267  qFlatSurfFluxCmd->SetGuidance("         : 2 = Out only");
268  qFlatSurfFluxCmd->SetGuidance("  unit   :(String) unit");
269  param = new G4UIparameter("qname",'s',false);
270  qFlatSurfFluxCmd->SetParameter(param);
271  param = new G4UIparameter("dflag",'i',true);
272  param->SetDefaultValue("0");
273  qFlatSurfFluxCmd->SetParameter(param);
274  param = new G4UIparameter("unit",'s',true);
275  param->SetDefaultValue("percm2");
276  qFlatSurfFluxCmd->SetParameter(param);
277  //
278//  qSphereSurfCurrCmd = new G4UIcommand("/score/quantity/sphereSurfaceCurrent",this);
279//  qSphereSurfCurrCmd->SetGuidance("Sphere surface current Scorer.");
280//  qSphereSurfCurrCmd->
281//      SetGuidance("[usage] /score/quantiy/sphereSurfaceCurrent qname dflag wflag aflag unit");
282//  qSphereSurfCurrCmd->SetGuidance("  qname  :(String) scorer name");
283//  qSphereSurfCurrCmd->SetGuidance("  dflag  :(Int) direction flag");
284//  qSphereSurfCurrCmd->SetGuidance("         : 0 = Both In and Out");
285//  qSphereSurfCurrCmd->SetGuidance("         : 1 = In only");
286//  qSphereSurfCurrCmd->SetGuidance("         : 2 = Out only");
287//  qSphereSurfCurrCmd->SetGuidance("  wflag  :(Bool) Weighted");
288//  qSphereSurfCurrCmd->SetGuidance("  aflag  :(Bool) DivideByArea");
289//  qSphereSurfCurrCmd->SetGuidance("  unit   :(String) unit");
290//  param = new G4UIparameter("qname",'s',false);
291//  qSphereSurfCurrCmd->SetParameter(param);
292//  param = new G4UIparameter("dflag",'i',true);
293//  param->SetDefaultValue("0");
294//  qSphereSurfCurrCmd->SetParameter(param);
295//  param = new G4UIparameter("wflag",'b',true);
296//  param->SetDefaultValue("true");
297//  qSphereSurfCurrCmd->SetParameter(param);
298//  param = new G4UIparameter("aflag",'b',true);
299//  param->SetDefaultValue("true");
300//  qSphereSurfCurrCmd->SetParameter(param);
301//  param = new G4UIparameter("unit",'s',true);
302//  param->SetDefaultValue("percm2");
303//  qSphereSurfCurrCmd->SetParameter(param);
304
305  //
306//  qSphereSurfFluxCmd = new G4UIcommand("/score/quantity/sphereSurfaceFlux",this);
307//  qSphereSurfFluxCmd->SetGuidance("Sphere surface Flux Scorer.");
308//  qSphereSurfFluxCmd->
309//  SetGuidance("[usage] /score/quantiy/sphereSurfaceFlux qname dflag unit");
310//  qSphereSurfFluxCmd->SetGuidance("  qname  :(String) scorer name");
311//  qSphereSurfFluxCmd->SetGuidance("  dflag  :(Int) direction flag");
312//  qSphereSurfFluxCmd->SetGuidance("         : 0 = Both In and Out");
313//  qSphereSurfFluxCmd->SetGuidance("         : 1 = In only");
314//  qSphereSurfFluxCmd->SetGuidance("         : 2 = Out only");
315//  qSphereSurfFluxCmd->SetGuidance("  unit   :(String) unit");
316//  param = new G4UIparameter("qname",'s',false);
317//  qSphereSurfFluxCmd->SetParameter(param);
318//  param = new G4UIparameter("dflag",'i',true);
319//  param->SetDefaultValue("0");
320//  qSphereSurfFluxCmd->SetParameter(param);
321//  param = new G4UIparameter("unit",'s',true);
322//  param->SetDefaultValue("percm2");
323//  qSphereSurfFluxCmd->SetParameter(param);
324
325  //
326//  qCylSurfCurrCmd = new G4UIcommand("/score/quantity/cylinderSurfaceCurrent",this);
327//  qCylSurfCurrCmd->SetGuidance("Cylinder surface current Scorer.");
328//  qCylSurfCurrCmd->
329//  SetGuidance("[usage] /score/quantiy/cylinderSurfaceCurrent qname dflag wflag aflag unit");
330//  qCylSurfCurrCmd->SetGuidance("  qname  :(String) scorer name");
331//  qCylSurfCurrCmd->SetGuidance("  dflag  :(Int) direction flag");
332//  qCylSurfCurrCmd->SetGuidance("         : 0 = Both In and Out");
333//  qCylSurfCurrCmd->SetGuidance("         : 1 = In only");
334//  qCylSurfCurrCmd->SetGuidance("         : 2 = Out only");
335//  qCylSurfCurrCmd->SetGuidance("  wflag  :(Bool) Weighted");
336//  qCylSurfCurrCmd->SetGuidance("  aflag  :(Bool) DivideByArea");
337//  qCylSurfCurrCmd->SetGuidance("  unit   :(String) unit");
338//  param = new G4UIparameter("qname",'s',false);
339//  qCylSurfCurrCmd->SetParameter(param);
340//  param = new G4UIparameter("dflag",'i',true);
341//  param->SetDefaultValue("0");
342//  qCylSurfCurrCmd->SetParameter(param);
343//  param = new G4UIparameter("wflag",'b',true);
344//  param->SetDefaultValue("true");
345//  qCylSurfCurrCmd->SetParameter(param);
346//  param = new G4UIparameter("aflag",'b',true);
347//  param->SetDefaultValue("true");
348//  qCylSurfCurrCmd->SetParameter(param);
349//  param = new G4UIparameter("unit",'s',true);
350//  param->SetDefaultValue("percm2");
351//  qCylSurfCurrCmd->SetParameter(param);
352  //
353//  qCylSurfFluxCmd = new G4UIcommand("/score/quantity/cylinderSurfaceFlux",this);
354//  qCylSurfFluxCmd->SetGuidance("Cylinder surface Flux Scorer.");
355//  qCylSurfFluxCmd->
356//  SetGuidance("[usage] /score/quantiy/cylinderSurfaceFlux qname dflag unit");
357//  qCylSurfFluxCmd->SetGuidance("  qname  :(String) scorer name");
358//  qCylSurfFluxCmd->SetGuidance("  dflag  :(Int) direction flag");
359//  qCylSurfFluxCmd->SetGuidance("         : 0 = Both In and Out");
360//  qCylSurfFluxCmd->SetGuidance("         : 1 = In only");
361//  qCylSurfFluxCmd->SetGuidance("         : 2 = Out only");
362//  qCylSurfFluxCmd->SetGuidance("  unit   :(String) unit");
363//  param = new G4UIparameter("qname",'s',false);
364//  qCylSurfFluxCmd->SetParameter(param);
365//  param = new G4UIparameter("dflag",'i',true);
366//  param->SetDefaultValue("0");
367//  qCylSurfFluxCmd->SetParameter(param);
368//  param = new G4UIparameter("unit",'s',true);
369//  param->SetDefaultValue("percm2");
370//  qCylSurfFluxCmd->SetParameter(param);
371//
372  //
373  qNofCollisionCmd = new G4UIcommand("/score/quantity/nOfCollision",this);
374  qNofCollisionCmd->SetGuidance("Number of collision scorer.");
375  qNofCollisionCmd->
376  SetGuidance("[usage] /score/quantiy/nOfCollision qname wflag");
377  qNofCollisionCmd->SetGuidance("  qname  :(String) scorer name");
378  param = new G4UIparameter("qname",'s',false);
379  qNofCollisionCmd->SetParameter(param);
380  param = new G4UIparameter("wflag",'b',true);
381  param->SetDefaultValue("false");
382  qNofCollisionCmd->SetParameter(param);
383  //
384  qPopulationCmd = new G4UIcommand("/score/quantity/population",this);
385  qPopulationCmd->SetGuidance("Population scorer.");
386  qPopulationCmd->
387   SetGuidance("[usage] /score/quantiy/population qname wflag");
388  qPopulationCmd->SetGuidance("  qname  :(String) scorer name");
389  qPopulationCmd->SetGuidance("  wflag  :(Bool) weighted");
390  param = new G4UIparameter("qname",'s',false);
391  qPopulationCmd->SetParameter(param);
392  param = new G4UIparameter("wflag",'b',true);
393  param->SetDefaultValue("false");
394  qPopulationCmd->SetParameter(param);
395
396  //
397  qTrackCountCmd = new G4UIcommand("/score/quantity/nOfTrack",this);
398  qTrackCountCmd->SetGuidance("Number of track scorer.");
399  qTrackCountCmd->
400  SetGuidance("[usage] /score/quantiy/nOfTrack qname dflag wflag");
401  qTrackCountCmd->SetGuidance("  qname  :(String) scorer name");
402  qTrackCountCmd->SetGuidance("  dflag  :(Int) direction");
403  qTrackCountCmd->SetGuidance("         : 0 = Both In and Out");
404  qTrackCountCmd->SetGuidance("         : 1 = In only");
405  qTrackCountCmd->SetGuidance("         : 2 = Out only");
406  qTrackCountCmd->SetGuidance("  wflag  :(Bool) weighted");
407  param = new G4UIparameter("qname",'s',false);
408  qTrackCountCmd->SetParameter(param);
409  param = new G4UIparameter("dflag",'i',true);
410  param->SetDefaultValue("0");
411  qTrackCountCmd->SetParameter(param);
412  param = new G4UIparameter("wflag",'b',true);
413  param->SetDefaultValue("false");
414  qTrackCountCmd->SetParameter(param);
415
416  //
417  qTerminationCmd = new G4UIcommand("/score/quantity/nOfTerminatedTrack",this);
418  qTerminationCmd->SetGuidance("Number of terminated tracks scorer.");
419  qTerminationCmd->
420      SetGuidance("[usage] /score/quantiy/nOfTerminatedTrack qname wflag");
421  qTerminationCmd->SetGuidance("  qname  :(String) scorer name");
422  qTerminationCmd->SetGuidance("  wflag  :(Bool) weighted");
423  param = new G4UIparameter("qname",'s',false);
424  qTerminationCmd->SetParameter(param);
425  param = new G4UIparameter("wflag",'b',true);
426  param->SetDefaultValue("false");
427  qTerminationCmd->SetParameter(param);
428
429  //
430  qMinKinEAtGeneCmd = new G4UIcommand("/score/quantity/minKinEAtGeneration",this);
431  qMinKinEAtGeneCmd->SetGuidance("Min Kinetic Energy at Generation");
432  qMinKinEAtGeneCmd->
433  SetGuidance("[usage] /score/quantiy/minKinEAtGeneration qname");
434  qMinKinEAtGeneCmd->SetGuidance("  qname  :(String) scorer name");
435  param = new G4UIparameter("qname",'s',false);
436  qMinKinEAtGeneCmd->SetParameter(param);
437}
438
Note: See TracBrowser for help on using the repository browser.