Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/digits_hits/utils/src/G4ScoreQuantityMessengerQCmd.cc

    r1337 r1340  
    2525//
    2626//
    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.
    3033// ---------------------------------------------------------------------
    3134
     
    8689  qTouchCmd->SetParameterName("qname",false);
    8790  //
    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);
    89100  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);
    93112  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);
    97124  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);
    101136  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);
    105148  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);
    109160  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);
    113168  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);
    115174  //
    116175  qTrackLengthCmd = new G4UIcommand("/score/quantity/trackLength",this);
    117176  qTrackLengthCmd->SetGuidance("Track length scorer.");
    118177  qTrackLengthCmd->
    119       SetGuidance("[usage] /score/quantiy/trackLength qname wflag kflag vflag ");
     178  SetGuidance("[usage] /score/quantiy/trackLength qname wflag kflag vflag unit");
    120179  qTrackLengthCmd->SetGuidance("  qname  :(String) scorer name");
    121180  qTrackLengthCmd->SetGuidance("  wflag  :(Bool) weighted");
    122181  qTrackLengthCmd->SetGuidance("  kflag  :(Bool) multiply kinetic energy");
    123182  qTrackLengthCmd->SetGuidance("  vflag  :(Bool) divide by velocity");
     183  qTrackLengthCmd->SetGuidance("  unit   :(String) unit");
    124184  param = new G4UIparameter("qname",'s',false);
    125185  qTrackLengthCmd->SetParameter(param);
     
    132192  param = new G4UIparameter("vflag",'b',true);
    133193  param->SetDefaultValue("false");
     194  qTrackLengthCmd->SetParameter(param);
     195  param = new G4UIparameter("unit",'s',true);
     196  param->SetDefaultValue("mm");
    134197  qTrackLengthCmd->SetParameter(param);
    135198  //
     
    137200  qPassCellCurrCmd->SetGuidance("Passage cell current scorer.");
    138201  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");
    140204  qPassCellCurrCmd->SetGuidance("  qname  :(String) scorer name");
    141205  qPassCellCurrCmd->SetGuidance("  wflag  :(Bool) weighted");
     206  //qPassCellCurrCmd->SetGuidance("  unit  :(Bool) unit");
    142207  param = new G4UIparameter("qname",'s',false);
    143208  qPassCellCurrCmd->SetParameter(param);
     
    145210  param->SetDefaultValue("true");
    146211  qPassCellCurrCmd->SetParameter(param);
     212  //param = new G4UIparameter("unit",'s',true);
     213  //param->SetDefaultValue("parcm2");
     214  //qPassCellCurrCmd->SetParameter(param);
    147215  //
    148216  qPassTrackLengthCmd = new G4UIcommand("/score/quantity/passageTrackLength",this);
    149217  qPassTrackLengthCmd->SetGuidance("Passage track length scorer.");
    150218  qPassTrackLengthCmd->
    151       SetGuidance("[usage] /score/quantiy/passageTrackLength qname wflag");
     219  SetGuidance("[usage] /score/quantiy/passageTrackLength qname wflag unit");
    152220  qPassTrackLengthCmd->SetGuidance("  qname  :(String) scorer name");
    153221  qPassTrackLengthCmd->SetGuidance("  wflag  :(Bool) weighted");
     222  qPassTrackLengthCmd->SetGuidance("  unit   :(Bool) unit");
    154223  param = new G4UIparameter("qname",'s',false);
    155224  qPassTrackLengthCmd->SetParameter(param);
    156225  param = new G4UIparameter("wflag",'b',true);
    157226  param->SetDefaultValue("true");
     227  qPassTrackLengthCmd->SetParameter(param);
     228  param = new G4UIparameter("unit",'s',true);
     229  param->SetDefaultValue("mm");
    158230  qPassTrackLengthCmd->SetParameter(param);
    159231  //
     
    161233  qFlatSurfCurrCmd->SetGuidance("Flat surface current Scorer.");
    162234  qFlatSurfCurrCmd->
    163       SetGuidance("[usage] /score/quantiy/flatSurfaceCurrent qname dflag wflag aflag");
     235  SetGuidance("[usage] /score/quantiy/flatSurfaceCurrent qname dflag wflag aflag unit");
    164236  qFlatSurfCurrCmd->SetGuidance("  qname  :(String) scorer name");
    165237  qFlatSurfCurrCmd->SetGuidance("  dflag  :(Int) direction flag");
     
    169241  qFlatSurfCurrCmd->SetGuidance("  wflag  :(Bool) weighted");
    170242  qFlatSurfCurrCmd->SetGuidance("  aflag  :(Bool) divide by area");
     243  qFlatSurfCurrCmd->SetGuidance("  unit   :(Bool) unit");
    171244  param = new G4UIparameter("qname",'s',false);
    172245  qFlatSurfCurrCmd->SetParameter(param);
     
    180253  param->SetDefaultValue("true");
    181254  qFlatSurfCurrCmd->SetParameter(param);
     255  param = new G4UIparameter("unit",'s',true);
     256  param->SetDefaultValue("percm2");
     257  qFlatSurfCurrCmd->SetParameter(param);
    182258  //
    183259  qFlatSurfFluxCmd = new G4UIcommand("/score/quantity/flatSurfaceFlux",this);
    184260  qFlatSurfFluxCmd->SetGuidance("Flat surface flux scorer.");
    185261  qFlatSurfFluxCmd->
    186       SetGuidance("[usage] /score/quantiy/flatSurfaceFlux qname dflag");
     262  SetGuidance("[usage] /score/quantiy/flatSurfaceFlux qname dflag unit");
    187263  qFlatSurfFluxCmd->SetGuidance("  qname  :(String) scorer name");
    188264  qFlatSurfFluxCmd->SetGuidance("  dflag  :(Int) direction flag");
     
    190266  qFlatSurfFluxCmd->SetGuidance("         : 1 = In only");
    191267  qFlatSurfFluxCmd->SetGuidance("         : 2 = Out only");
     268  qFlatSurfFluxCmd->SetGuidance("  unit   :(String) unit");
    192269  param = new G4UIparameter("qname",'s',false);
    193270  qFlatSurfFluxCmd->SetParameter(param);
     
    195272  param->SetDefaultValue("0");
    196273  qFlatSurfFluxCmd->SetParameter(param);
     274  param = new G4UIparameter("unit",'s',true);
     275  param->SetDefaultValue("percm2");
     276  qFlatSurfFluxCmd->SetParameter(param);
    197277  //
    198278//  qSphereSurfCurrCmd = new G4UIcommand("/score/quantity/sphereSurfaceCurrent",this);
    199279//  qSphereSurfCurrCmd->SetGuidance("Sphere surface current Scorer.");
    200280//  qSphereSurfCurrCmd->
    201 //      SetGuidance("[usage] /score/quantiy/sphereSurfaceCurrent qname dflag wflag aflag");
     281//      SetGuidance("[usage] /score/quantiy/sphereSurfaceCurrent qname dflag wflag aflag unit");
    202282//  qSphereSurfCurrCmd->SetGuidance("  qname  :(String) scorer name");
    203283//  qSphereSurfCurrCmd->SetGuidance("  dflag  :(Int) direction flag");
     
    207287//  qSphereSurfCurrCmd->SetGuidance("  wflag  :(Bool) Weighted");
    208288//  qSphereSurfCurrCmd->SetGuidance("  aflag  :(Bool) DivideByArea");
     289//  qSphereSurfCurrCmd->SetGuidance("  unit   :(String) unit");
    209290//  param = new G4UIparameter("qname",'s',false);
    210291//  qSphereSurfCurrCmd->SetParameter(param);
     
    218299//  param->SetDefaultValue("true");
    219300//  qSphereSurfCurrCmd->SetParameter(param);
     301//  param = new G4UIparameter("unit",'s',true);
     302//  param->SetDefaultValue("percm2");
     303//  qSphereSurfCurrCmd->SetParameter(param);
    220304
    221305  //
     
    223307//  qSphereSurfFluxCmd->SetGuidance("Sphere surface Flux Scorer.");
    224308//  qSphereSurfFluxCmd->
    225 //      SetGuidance("[usage] /score/quantiy/sphereSurfaceFlux qname dflag");
     309//  SetGuidance("[usage] /score/quantiy/sphereSurfaceFlux qname dflag unit");
    226310//  qSphereSurfFluxCmd->SetGuidance("  qname  :(String) scorer name");
    227311//  qSphereSurfFluxCmd->SetGuidance("  dflag  :(Int) direction flag");
     
    229313//  qSphereSurfFluxCmd->SetGuidance("         : 1 = In only");
    230314//  qSphereSurfFluxCmd->SetGuidance("         : 2 = Out only");
     315//  qSphereSurfFluxCmd->SetGuidance("  unit   :(String) unit");
    231316//  param = new G4UIparameter("qname",'s',false);
    232317//  qSphereSurfFluxCmd->SetParameter(param);
     
    234319//  param->SetDefaultValue("0");
    235320//  qSphereSurfFluxCmd->SetParameter(param);
     321//  param = new G4UIparameter("unit",'s',true);
     322//  param->SetDefaultValue("percm2");
     323//  qSphereSurfFluxCmd->SetParameter(param);
    236324
    237325  //
     
    239327//  qCylSurfCurrCmd->SetGuidance("Cylinder surface current Scorer.");
    240328//  qCylSurfCurrCmd->
    241 //      SetGuidance("[usage] /score/quantiy/cylinderSurfaceCurrent qname dflag wflag aflag");
     329//  SetGuidance("[usage] /score/quantiy/cylinderSurfaceCurrent qname dflag wflag aflag unit");
    242330//  qCylSurfCurrCmd->SetGuidance("  qname  :(String) scorer name");
    243331//  qCylSurfCurrCmd->SetGuidance("  dflag  :(Int) direction flag");
     
    247335//  qCylSurfCurrCmd->SetGuidance("  wflag  :(Bool) Weighted");
    248336//  qCylSurfCurrCmd->SetGuidance("  aflag  :(Bool) DivideByArea");
     337//  qCylSurfCurrCmd->SetGuidance("  unit   :(String) unit");
    249338//  param = new G4UIparameter("qname",'s',false);
    250339//  qCylSurfCurrCmd->SetParameter(param);
     
    258347//  param->SetDefaultValue("true");
    259348//  qCylSurfCurrCmd->SetParameter(param);
     349//  param = new G4UIparameter("unit",'s',true);
     350//  param->SetDefaultValue("percm2");
     351//  qCylSurfCurrCmd->SetParameter(param);
    260352  //
    261353//  qCylSurfFluxCmd = new G4UIcommand("/score/quantity/cylinderSurfaceFlux",this);
    262354//  qCylSurfFluxCmd->SetGuidance("Cylinder surface Flux Scorer.");
    263355//  qCylSurfFluxCmd->
    264 //      SetGuidance("[usage] /score/quantiy/cylinderSurfaceFlux qname dflag");
     356//  SetGuidance("[usage] /score/quantiy/cylinderSurfaceFlux qname dflag unit");
    265357//  qCylSurfFluxCmd->SetGuidance("  qname  :(String) scorer name");
    266358//  qCylSurfFluxCmd->SetGuidance("  dflag  :(Int) direction flag");
     
    268360//  qCylSurfFluxCmd->SetGuidance("         : 1 = In only");
    269361//  qCylSurfFluxCmd->SetGuidance("         : 2 = Out only");
     362//  qCylSurfFluxCmd->SetGuidance("  unit   :(String) unit");
    270363//  param = new G4UIparameter("qname",'s',false);
    271364//  qCylSurfFluxCmd->SetParameter(param);
     
    273366//  param->SetDefaultValue("0");
    274367//  qCylSurfFluxCmd->SetParameter(param);
     368//  param = new G4UIparameter("unit",'s',true);
     369//  param->SetDefaultValue("percm2");
     370//  qCylSurfFluxCmd->SetParameter(param);
     371//
    275372  //
    276373  qNofCollisionCmd = new G4UIcommand("/score/quantity/nOfCollision",this);
    277374  qNofCollisionCmd->SetGuidance("Number of collision scorer.");
    278375  qNofCollisionCmd->
    279       SetGuidance("[usage] /score/quantiy/nOfCollision qname wflag");
     376  SetGuidance("[usage] /score/quantiy/nOfCollision qname wflag");
    280377  qNofCollisionCmd->SetGuidance("  qname  :(String) scorer name");
    281   qNofCollisionCmd->SetGuidance("  wflag  :(Bool) weighted");
    282378  param = new G4UIparameter("qname",'s',false);
    283379  qNofCollisionCmd->SetParameter(param);
     
    289385  qPopulationCmd->SetGuidance("Population scorer.");
    290386  qPopulationCmd->
    291       SetGuidance("[usage] /score/quantiy/population qname wflag");
     387   SetGuidance("[usage] /score/quantiy/population qname wflag");
    292388  qPopulationCmd->SetGuidance("  qname  :(String) scorer name");
    293389  qPopulationCmd->SetGuidance("  wflag  :(Bool) weighted");
     
    302398  qTrackCountCmd->SetGuidance("Number of track scorer.");
    303399  qTrackCountCmd->
    304       SetGuidance("[usage] /score/quantiy/nOfTrack qname dflag wflag");
     400  SetGuidance("[usage] /score/quantiy/nOfTrack qname dflag wflag");
    305401  qTrackCountCmd->SetGuidance("  qname  :(String) scorer name");
    306402  qTrackCountCmd->SetGuidance("  dflag  :(Int) direction");
     
    330426  param->SetDefaultValue("false");
    331427  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);
    332437}
    333438
Note: See TracChangeset for help on using the changeset viewer.