- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/utils/src/G4EnergyLossMessenger.cc
r961 r991 25 25 // 26 26 // 27 // $Id: G4EnergyLossMessenger.cc,v 1.3 7 2009/02/18 14:43:27vnivanch Exp $28 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // $Id: G4EnergyLossMessenger.cc,v 1.35 2008/10/20 13:27:45 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // ------------------------------------------------------------------- … … 178 178 aplCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 179 179 180 deexCmd = new G4UIcommand("/process/em/deexcitation",this);181 deexCmd->SetGuidance("Set deexcitation flag per process and G4Region.");182 deexCmd->SetGuidance(" procName : process name");183 deexCmd->SetGuidance(" flag : flag");184 deexCmd->SetGuidance(" regName : G4Region name");185 186 G4UIparameter* pName = new G4UIparameter("pName",'s',false);187 deexCmd->SetParameter(pName);188 189 G4UIparameter* flag = new G4UIparameter("flag",'s',false);190 deexCmd->SetParameter(flag);191 192 G4UIparameter* regName = new G4UIparameter("regName",'s',false);193 deexCmd->SetParameter(regName);194 195 180 dedxCmd = new G4UIcmdWithAnInteger("/process/eLoss/binsDEDX",this); 196 181 dedxCmd->SetGuidance("Set number of bins for DEDX tables"); … … 274 259 delete MinSubSecCmd; 275 260 delete StepFuncCmd; 276 delete deexCmd;277 261 delete eLossDirectory; 278 262 delete mscDirectory; … … 336 320 } 337 321 338 if (command == deexCmd) {339 G4String s1 (""), s2(""), s3("");340 G4bool b = false;341 std::istringstream is(newValue);342 is >> s1 >> s2 >> s3;343 if(s2 == "true") b = true;344 opt->ActivateDeexcitation(s1,b,s3);345 }346 347 322 if (command == mscCmd) { 348 323 if(newValue == "Minimal")
Note: See TracChangeset
for help on using the changeset viewer.