- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/digits_hits/utils/src/G4ScoreQuantityMessengerQCmd.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ScoreQuantityMessengerQCmd.cc,v 1.6 2007/11/07 04:12:07 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 // 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. 30 33 // --------------------------------------------------------------------- 31 34 … … 86 89 qTouchCmd->SetParameterName("qname",false); 87 90 // 88 qeDepCmd = new G4UIcmdWithAString("/score/quantity/energyDeposit",this); 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); 89 100 qeDepCmd->SetGuidance("Energy deposit scorer."); 90 qeDepCmd->SetParameterName("qname",false); 91 // 92 qCellChgCmd = new G4UIcmdWithAString("/score/quantity/cellCharge",this); 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); 93 112 qCellChgCmd->SetGuidance("Cell charge scorer."); 94 qCellChgCmd->SetParameterName("qname",false); 95 // 96 qCellFluxCmd = new G4UIcmdWithAString("/score/quantity/cellFlux",this); 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); 97 124 qCellFluxCmd->SetGuidance("Cell flux scorer."); 98 qCellFluxCmd->SetParameterName("qname",false); 99 // 100 qPassCellFluxCmd = new G4UIcmdWithAString("/score/quantity/passageCellFlux",this); 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); 101 136 qPassCellFluxCmd->SetGuidance("Passage cell flux scorer"); 102 qPassCellFluxCmd->SetParameterName("qname",false); 103 // 104 qdoseDepCmd = new G4UIcmdWithAString("/score/quantity/doseDeposit",this); 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); 105 148 qdoseDepCmd->SetGuidance("Dose deposit scorer."); 106 qdoseDepCmd->SetParameterName("qname",false); 107 // 108 qnOfStepCmd = new G4UIcmdWithAString("/score/quantity/nOfStep",this); 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); 109 160 qnOfStepCmd->SetGuidance("Number of step scorer."); 110 qnOfStepCmd->SetParameterName("qname",false); 111 // 112 qnOfSecondaryCmd = new G4UIcmdWithAString("/score/quantity/nOfSecondary",this); 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); 113 168 qnOfSecondaryCmd->SetGuidance("Number of secondary scorer."); 114 qnOfSecondaryCmd->SetParameterName("qname",false); 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); 115 174 // 116 175 qTrackLengthCmd = new G4UIcommand("/score/quantity/trackLength",this); 117 176 qTrackLengthCmd->SetGuidance("Track length scorer."); 118 177 qTrackLengthCmd-> 119 SetGuidance("[usage] /score/quantiy/trackLength qname wflag kflag vflag");178 SetGuidance("[usage] /score/quantiy/trackLength qname wflag kflag vflag unit"); 120 179 qTrackLengthCmd->SetGuidance(" qname :(String) scorer name"); 121 180 qTrackLengthCmd->SetGuidance(" wflag :(Bool) weighted"); 122 181 qTrackLengthCmd->SetGuidance(" kflag :(Bool) multiply kinetic energy"); 123 182 qTrackLengthCmd->SetGuidance(" vflag :(Bool) divide by velocity"); 183 qTrackLengthCmd->SetGuidance(" unit :(String) unit"); 124 184 param = new G4UIparameter("qname",'s',false); 125 185 qTrackLengthCmd->SetParameter(param); … … 132 192 param = new G4UIparameter("vflag",'b',true); 133 193 param->SetDefaultValue("false"); 194 qTrackLengthCmd->SetParameter(param); 195 param = new G4UIparameter("unit",'s',true); 196 param->SetDefaultValue("mm"); 134 197 qTrackLengthCmd->SetParameter(param); 135 198 // … … 137 200 qPassCellCurrCmd->SetGuidance("Passage cell current scorer."); 138 201 qPassCellCurrCmd-> 139 SetGuidance("[usage] /score/quantiy/passageCellCurrent qname wflag"); 202 SetGuidance("[usage] /score/quantiy/passageCellCurrent qname wflag"); 203 //SetGuidance("[usage] /score/quantiy/passageCellCurrent qname wflag unit"); 140 204 qPassCellCurrCmd->SetGuidance(" qname :(String) scorer name"); 141 205 qPassCellCurrCmd->SetGuidance(" wflag :(Bool) weighted"); 206 //qPassCellCurrCmd->SetGuidance(" unit :(Bool) unit"); 142 207 param = new G4UIparameter("qname",'s',false); 143 208 qPassCellCurrCmd->SetParameter(param); … … 145 210 param->SetDefaultValue("true"); 146 211 qPassCellCurrCmd->SetParameter(param); 212 //param = new G4UIparameter("unit",'s',true); 213 //param->SetDefaultValue("parcm2"); 214 //qPassCellCurrCmd->SetParameter(param); 147 215 // 148 216 qPassTrackLengthCmd = new G4UIcommand("/score/quantity/passageTrackLength",this); 149 217 qPassTrackLengthCmd->SetGuidance("Passage track length scorer."); 150 218 qPassTrackLengthCmd-> 151 SetGuidance("[usage] /score/quantiy/passageTrackLength qname wflag");219 SetGuidance("[usage] /score/quantiy/passageTrackLength qname wflag unit"); 152 220 qPassTrackLengthCmd->SetGuidance(" qname :(String) scorer name"); 153 221 qPassTrackLengthCmd->SetGuidance(" wflag :(Bool) weighted"); 222 qPassTrackLengthCmd->SetGuidance(" unit :(Bool) unit"); 154 223 param = new G4UIparameter("qname",'s',false); 155 224 qPassTrackLengthCmd->SetParameter(param); 156 225 param = new G4UIparameter("wflag",'b',true); 157 226 param->SetDefaultValue("true"); 227 qPassTrackLengthCmd->SetParameter(param); 228 param = new G4UIparameter("unit",'s',true); 229 param->SetDefaultValue("mm"); 158 230 qPassTrackLengthCmd->SetParameter(param); 159 231 // … … 161 233 qFlatSurfCurrCmd->SetGuidance("Flat surface current Scorer."); 162 234 qFlatSurfCurrCmd-> 163 SetGuidance("[usage] /score/quantiy/flatSurfaceCurrent qname dflag wflag aflag");235 SetGuidance("[usage] /score/quantiy/flatSurfaceCurrent qname dflag wflag aflag unit"); 164 236 qFlatSurfCurrCmd->SetGuidance(" qname :(String) scorer name"); 165 237 qFlatSurfCurrCmd->SetGuidance(" dflag :(Int) direction flag"); … … 169 241 qFlatSurfCurrCmd->SetGuidance(" wflag :(Bool) weighted"); 170 242 qFlatSurfCurrCmd->SetGuidance(" aflag :(Bool) divide by area"); 243 qFlatSurfCurrCmd->SetGuidance(" unit :(Bool) unit"); 171 244 param = new G4UIparameter("qname",'s',false); 172 245 qFlatSurfCurrCmd->SetParameter(param); … … 180 253 param->SetDefaultValue("true"); 181 254 qFlatSurfCurrCmd->SetParameter(param); 255 param = new G4UIparameter("unit",'s',true); 256 param->SetDefaultValue("percm2"); 257 qFlatSurfCurrCmd->SetParameter(param); 182 258 // 183 259 qFlatSurfFluxCmd = new G4UIcommand("/score/quantity/flatSurfaceFlux",this); 184 260 qFlatSurfFluxCmd->SetGuidance("Flat surface flux scorer."); 185 261 qFlatSurfFluxCmd-> 186 SetGuidance("[usage] /score/quantiy/flatSurfaceFlux qname dflag");262 SetGuidance("[usage] /score/quantiy/flatSurfaceFlux qname dflag unit"); 187 263 qFlatSurfFluxCmd->SetGuidance(" qname :(String) scorer name"); 188 264 qFlatSurfFluxCmd->SetGuidance(" dflag :(Int) direction flag"); … … 190 266 qFlatSurfFluxCmd->SetGuidance(" : 1 = In only"); 191 267 qFlatSurfFluxCmd->SetGuidance(" : 2 = Out only"); 268 qFlatSurfFluxCmd->SetGuidance(" unit :(String) unit"); 192 269 param = new G4UIparameter("qname",'s',false); 193 270 qFlatSurfFluxCmd->SetParameter(param); … … 195 272 param->SetDefaultValue("0"); 196 273 qFlatSurfFluxCmd->SetParameter(param); 274 param = new G4UIparameter("unit",'s',true); 275 param->SetDefaultValue("percm2"); 276 qFlatSurfFluxCmd->SetParameter(param); 197 277 // 198 278 // qSphereSurfCurrCmd = new G4UIcommand("/score/quantity/sphereSurfaceCurrent",this); 199 279 // qSphereSurfCurrCmd->SetGuidance("Sphere surface current Scorer."); 200 280 // qSphereSurfCurrCmd-> 201 // SetGuidance("[usage] /score/quantiy/sphereSurfaceCurrent qname dflag wflag aflag ");281 // SetGuidance("[usage] /score/quantiy/sphereSurfaceCurrent qname dflag wflag aflag unit"); 202 282 // qSphereSurfCurrCmd->SetGuidance(" qname :(String) scorer name"); 203 283 // qSphereSurfCurrCmd->SetGuidance(" dflag :(Int) direction flag"); … … 207 287 // qSphereSurfCurrCmd->SetGuidance(" wflag :(Bool) Weighted"); 208 288 // qSphereSurfCurrCmd->SetGuidance(" aflag :(Bool) DivideByArea"); 289 // qSphereSurfCurrCmd->SetGuidance(" unit :(String) unit"); 209 290 // param = new G4UIparameter("qname",'s',false); 210 291 // qSphereSurfCurrCmd->SetParameter(param); … … 218 299 // param->SetDefaultValue("true"); 219 300 // qSphereSurfCurrCmd->SetParameter(param); 301 // param = new G4UIparameter("unit",'s',true); 302 // param->SetDefaultValue("percm2"); 303 // qSphereSurfCurrCmd->SetParameter(param); 220 304 221 305 // … … 223 307 // qSphereSurfFluxCmd->SetGuidance("Sphere surface Flux Scorer."); 224 308 // qSphereSurfFluxCmd-> 225 // SetGuidance("[usage] /score/quantiy/sphereSurfaceFlux qname dflag");309 // SetGuidance("[usage] /score/quantiy/sphereSurfaceFlux qname dflag unit"); 226 310 // qSphereSurfFluxCmd->SetGuidance(" qname :(String) scorer name"); 227 311 // qSphereSurfFluxCmd->SetGuidance(" dflag :(Int) direction flag"); … … 229 313 // qSphereSurfFluxCmd->SetGuidance(" : 1 = In only"); 230 314 // qSphereSurfFluxCmd->SetGuidance(" : 2 = Out only"); 315 // qSphereSurfFluxCmd->SetGuidance(" unit :(String) unit"); 231 316 // param = new G4UIparameter("qname",'s',false); 232 317 // qSphereSurfFluxCmd->SetParameter(param); … … 234 319 // param->SetDefaultValue("0"); 235 320 // qSphereSurfFluxCmd->SetParameter(param); 321 // param = new G4UIparameter("unit",'s',true); 322 // param->SetDefaultValue("percm2"); 323 // qSphereSurfFluxCmd->SetParameter(param); 236 324 237 325 // … … 239 327 // qCylSurfCurrCmd->SetGuidance("Cylinder surface current Scorer."); 240 328 // qCylSurfCurrCmd-> 241 // SetGuidance("[usage] /score/quantiy/cylinderSurfaceCurrent qname dflag wflag aflag");329 // SetGuidance("[usage] /score/quantiy/cylinderSurfaceCurrent qname dflag wflag aflag unit"); 242 330 // qCylSurfCurrCmd->SetGuidance(" qname :(String) scorer name"); 243 331 // qCylSurfCurrCmd->SetGuidance(" dflag :(Int) direction flag"); … … 247 335 // qCylSurfCurrCmd->SetGuidance(" wflag :(Bool) Weighted"); 248 336 // qCylSurfCurrCmd->SetGuidance(" aflag :(Bool) DivideByArea"); 337 // qCylSurfCurrCmd->SetGuidance(" unit :(String) unit"); 249 338 // param = new G4UIparameter("qname",'s',false); 250 339 // qCylSurfCurrCmd->SetParameter(param); … … 258 347 // param->SetDefaultValue("true"); 259 348 // qCylSurfCurrCmd->SetParameter(param); 349 // param = new G4UIparameter("unit",'s',true); 350 // param->SetDefaultValue("percm2"); 351 // qCylSurfCurrCmd->SetParameter(param); 260 352 // 261 353 // qCylSurfFluxCmd = new G4UIcommand("/score/quantity/cylinderSurfaceFlux",this); 262 354 // qCylSurfFluxCmd->SetGuidance("Cylinder surface Flux Scorer."); 263 355 // qCylSurfFluxCmd-> 264 // SetGuidance("[usage] /score/quantiy/cylinderSurfaceFlux qname dflag");356 // SetGuidance("[usage] /score/quantiy/cylinderSurfaceFlux qname dflag unit"); 265 357 // qCylSurfFluxCmd->SetGuidance(" qname :(String) scorer name"); 266 358 // qCylSurfFluxCmd->SetGuidance(" dflag :(Int) direction flag"); … … 268 360 // qCylSurfFluxCmd->SetGuidance(" : 1 = In only"); 269 361 // qCylSurfFluxCmd->SetGuidance(" : 2 = Out only"); 362 // qCylSurfFluxCmd->SetGuidance(" unit :(String) unit"); 270 363 // param = new G4UIparameter("qname",'s',false); 271 364 // qCylSurfFluxCmd->SetParameter(param); … … 273 366 // param->SetDefaultValue("0"); 274 367 // qCylSurfFluxCmd->SetParameter(param); 368 // param = new G4UIparameter("unit",'s',true); 369 // param->SetDefaultValue("percm2"); 370 // qCylSurfFluxCmd->SetParameter(param); 371 // 275 372 // 276 373 qNofCollisionCmd = new G4UIcommand("/score/quantity/nOfCollision",this); 277 374 qNofCollisionCmd->SetGuidance("Number of collision scorer."); 278 375 qNofCollisionCmd-> 279 376 SetGuidance("[usage] /score/quantiy/nOfCollision qname wflag"); 280 377 qNofCollisionCmd->SetGuidance(" qname :(String) scorer name"); 281 qNofCollisionCmd->SetGuidance(" wflag :(Bool) weighted");282 378 param = new G4UIparameter("qname",'s',false); 283 379 qNofCollisionCmd->SetParameter(param); … … 289 385 qPopulationCmd->SetGuidance("Population scorer."); 290 386 qPopulationCmd-> 291 387 SetGuidance("[usage] /score/quantiy/population qname wflag"); 292 388 qPopulationCmd->SetGuidance(" qname :(String) scorer name"); 293 389 qPopulationCmd->SetGuidance(" wflag :(Bool) weighted"); … … 302 398 qTrackCountCmd->SetGuidance("Number of track scorer."); 303 399 qTrackCountCmd-> 304 400 SetGuidance("[usage] /score/quantiy/nOfTrack qname dflag wflag"); 305 401 qTrackCountCmd->SetGuidance(" qname :(String) scorer name"); 306 402 qTrackCountCmd->SetGuidance(" dflag :(Int) direction"); … … 330 426 param->SetDefaultValue("false"); 331 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); 332 437 } 333 438
Note: See TracChangeset
for help on using the changeset viewer.