Changeset 1196 for trunk/source/event/src
- Timestamp:
- Nov 25, 2009, 5:13:58 PM (16 years ago)
- Location:
- trunk/source/event/src
- Files:
-
- 22 edited
-
G4CellScorer.cc (modified) (1 diff)
-
G4CellScorerStore.cc (modified) (1 diff)
-
G4EvManMessenger.cc (modified) (1 diff)
-
G4Event.cc (modified) (1 diff)
-
G4EventManager.cc (modified) (3 diffs)
-
G4GeneralParticleSourceMessenger.cc (modified) (47 diffs)
-
G4HEPEvtInterface.cc (modified) (1 diff)
-
G4HEPEvtParticle.cc (modified) (1 diff)
-
G4ParticleGun.cc (modified) (1 diff)
-
G4ParticleGunMessenger.cc (modified) (1 diff)
-
G4PrimaryTransformer.cc (modified) (1 diff)
-
G4RayShooter.cc (modified) (1 diff)
-
G4SPSEneDistribution.cc (modified) (1 diff)
-
G4StackChecker.cc (modified) (1 diff)
-
G4StackManager.cc (modified) (14 diffs)
-
G4StackedTrack.cc (modified) (1 diff)
-
G4StackingMessenger.cc (modified) (4 diffs)
-
G4TrackStack.cc (modified) (3 diffs)
-
G4TrajectoryContainer.cc (modified) (1 diff)
-
G4UserEventAction.cc (modified) (1 diff)
-
G4UserStackingAction.cc (modified) (1 diff)
-
G4VPrimaryGenerator.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/event/src/G4CellScorer.cc
r964 r1196 26 26 // 27 27 // $Id: G4CellScorer.cc,v 1.4 2006/06/29 18:09:31 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // ---------------------------------------------------------------------- -
trunk/source/event/src/G4CellScorerStore.cc
r964 r1196 26 26 // 27 27 // $Id: G4CellScorerStore.cc,v 1.4 2006/06/29 18:09:33 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // ---------------------------------------------------------------------- -
trunk/source/event/src/G4EvManMessenger.cc
r964 r1196 26 26 // 27 27 // $Id: G4EvManMessenger.cc,v 1.6 2006/11/03 03:11:13 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -------------------------------------------------------------------- -
trunk/source/event/src/G4Event.cc
r964 r1196 26 26 // 27 27 // $Id: G4Event.cc,v 1.14 2007/03/07 02:44:16 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4EventManager.cc
r1058 r1196 26 26 // 27 27 // $Id: G4EventManager.cc,v 1.30 2007/03/08 23:56:12 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 98 98 void G4EventManager::DoProcessing(G4Event* anEvent) 99 99 { 100 printf("G4EventManager::DoProcessing vvvvvvvvvvvvvvvvvvvvvvv\n");101 100 G4StateManager* stateManager = G4StateManager::GetStateManager(); 102 101 G4ApplicationState currentState = stateManager->GetCurrentState(); … … 267 266 currentEvent = 0; 268 267 abortRequested = false; 269 printf("G4EventManager::DoProcessing ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");270 268 } 271 269 -
trunk/source/event/src/G4GeneralParticleSourceMessenger.cc
r816 r1196 240 240 centreCmd1->SetParameterName("X","Y","Z",true,true); 241 241 centreCmd1->SetDefaultUnit("cm"); 242 centreCmd1->SetUnitCandidates("micron mm cm m km");242 // centreCmd1->SetUnitCandidates("micron mm cm m km"); 243 243 244 244 posrot1Cmd1 = new G4UIcmdWith3Vector("/gps/pos/rot1",this); … … 258 258 halfxCmd1->SetParameterName("Halfx",true,true); 259 259 halfxCmd1->SetDefaultUnit("cm"); 260 halfxCmd1->SetUnitCandidates("micron mm cm m km");260 // halfxCmd1->SetUnitCandidates("micron mm cm m km"); 261 261 262 262 halfyCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/halfy",this); … … 264 264 halfyCmd1->SetParameterName("Halfy",true,true); 265 265 halfyCmd1->SetDefaultUnit("cm"); 266 halfyCmd1->SetUnitCandidates("micron mm cm m km");266 // halfyCmd1->SetUnitCandidates("micron mm cm m km"); 267 267 268 268 halfzCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/halfz",this); … … 270 270 halfzCmd1->SetParameterName("Halfz",true,true); 271 271 halfzCmd1->SetDefaultUnit("cm"); 272 halfzCmd1->SetUnitCandidates("micron mm cm m km");272 // halfzCmd1->SetUnitCandidates("micron mm cm m km"); 273 273 274 274 radiusCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/radius",this); … … 276 276 radiusCmd1->SetParameterName("Radius",true,true); 277 277 radiusCmd1->SetDefaultUnit("cm"); 278 radiusCmd1->SetUnitCandidates("micron mm cm m km");278 // radiusCmd1->SetUnitCandidates("micron mm cm m km"); 279 279 280 280 radius0Cmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/inner_radius",this); … … 282 282 radius0Cmd1->SetParameterName("Radius0",true,true); 283 283 radius0Cmd1->SetDefaultUnit("cm"); 284 radius0Cmd1->SetUnitCandidates("micron mm cm m km");284 // radius0Cmd1->SetUnitCandidates("micron mm cm m km"); 285 285 286 286 possigmarCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/sigma_r",this); … … 289 289 possigmarCmd1->SetParameterName("Sigmar",true,true); 290 290 possigmarCmd1->SetDefaultUnit("cm"); 291 possigmarCmd1->SetUnitCandidates("micron mm cm m km");291 // possigmarCmd1->SetUnitCandidates("micron mm cm m km"); 292 292 293 293 possigmaxCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/sigma_x",this); … … 296 296 possigmaxCmd1->SetParameterName("Sigmax",true,true); 297 297 possigmaxCmd1->SetDefaultUnit("cm"); 298 possigmaxCmd1->SetUnitCandidates("micron mm cm m km");298 // possigmaxCmd1->SetUnitCandidates("micron mm cm m km"); 299 299 300 300 possigmayCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/sigma_y",this); … … 303 303 possigmayCmd1->SetParameterName("Sigmay",true,true); 304 304 possigmayCmd1->SetDefaultUnit("cm"); 305 possigmayCmd1->SetUnitCandidates("micron mm cm m km");305 // possigmayCmd1->SetUnitCandidates("micron mm cm m km"); 306 306 307 307 paralpCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/paralp",this); … … 309 309 paralpCmd1->SetParameterName("paralp",true,true); 310 310 paralpCmd1->SetDefaultUnit("rad"); 311 paralpCmd1->SetUnitCandidates("rad deg");311 // paralpCmd1->SetUnitCandidates("rad deg"); 312 312 313 313 partheCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/parthe",this); … … 315 315 partheCmd1->SetParameterName("parthe",true,true); 316 316 partheCmd1->SetDefaultUnit("rad"); 317 partheCmd1->SetUnitCandidates("rad deg");317 // partheCmd1->SetUnitCandidates("rad deg"); 318 318 319 319 parphiCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/pos/parphi",this); … … 321 321 parphiCmd1->SetParameterName("parphi",true,true); 322 322 parphiCmd1->SetDefaultUnit("rad"); 323 parphiCmd1->SetUnitCandidates("rad deg");323 // parphiCmd1->SetUnitCandidates("rad deg"); 324 324 325 325 confineCmd1 = new G4UIcmdWithAString("/gps/pos/confine",this); … … 347 347 centreCmd->SetParameterName("X","Y","Z",true,true); 348 348 centreCmd->SetDefaultUnit("cm"); 349 centreCmd->SetUnitCandidates("micron mm cm m km");349 // centreCmd->SetUnitCandidates("micron mm cm m km"); 350 350 351 351 posrot1Cmd = new G4UIcmdWith3Vector("/gps/posrot1",this); … … 365 365 halfxCmd->SetParameterName("Halfx",true,true); 366 366 halfxCmd->SetDefaultUnit("cm"); 367 halfxCmd->SetUnitCandidates("micron mm cm m km");367 // halfxCmd->SetUnitCandidates("micron mm cm m km"); 368 368 369 369 halfyCmd = new G4UIcmdWithADoubleAndUnit("/gps/halfy",this); … … 371 371 halfyCmd->SetParameterName("Halfy",true,true); 372 372 halfyCmd->SetDefaultUnit("cm"); 373 halfyCmd->SetUnitCandidates("micron mm cm m km");373 // halfyCmd->SetUnitCandidates("micron mm cm m km"); 374 374 375 375 halfzCmd = new G4UIcmdWithADoubleAndUnit("/gps/halfz",this); … … 377 377 halfzCmd->SetParameterName("Halfz",true,true); 378 378 halfzCmd->SetDefaultUnit("cm"); 379 halfzCmd->SetUnitCandidates("micron mm cm m km");379 // halfzCmd->SetUnitCandidates("micron mm cm m km"); 380 380 381 381 radiusCmd = new G4UIcmdWithADoubleAndUnit("/gps/radius",this); … … 383 383 radiusCmd->SetParameterName("Radius",true,true); 384 384 radiusCmd->SetDefaultUnit("cm"); 385 radiusCmd->SetUnitCandidates("micron mm cm m km");385 // radiusCmd->SetUnitCandidates("micron mm cm m km"); 386 386 387 387 radius0Cmd = new G4UIcmdWithADoubleAndUnit("/gps/radius0",this); … … 389 389 radius0Cmd->SetParameterName("Radius0",true,true); 390 390 radius0Cmd->SetDefaultUnit("cm"); 391 radius0Cmd->SetUnitCandidates("micron mm cm m km");391 // radius0Cmd->SetUnitCandidates("micron mm cm m km"); 392 392 393 393 possigmarCmd = new G4UIcmdWithADoubleAndUnit("/gps/sigmaposr",this); … … 395 395 possigmarCmd->SetParameterName("Sigmar",true,true); 396 396 possigmarCmd->SetDefaultUnit("cm"); 397 possigmarCmd->SetUnitCandidates("micron mm cm m km");397 // possigmarCmd->SetUnitCandidates("micron mm cm m km"); 398 398 399 399 possigmaxCmd = new G4UIcmdWithADoubleAndUnit("/gps/sigmaposx",this); … … 401 401 possigmaxCmd->SetParameterName("Sigmax",true,true); 402 402 possigmaxCmd->SetDefaultUnit("cm"); 403 possigmaxCmd->SetUnitCandidates("micron mm cm m km");403 // possigmaxCmd->SetUnitCandidates("micron mm cm m km"); 404 404 405 405 possigmayCmd = new G4UIcmdWithADoubleAndUnit("/gps/sigmaposy",this); … … 407 407 possigmayCmd->SetParameterName("Sigmay",true,true); 408 408 possigmayCmd->SetDefaultUnit("cm"); 409 possigmayCmd->SetUnitCandidates("micron mm cm m km");409 // possigmayCmd->SetUnitCandidates("micron mm cm m km"); 410 410 411 411 paralpCmd = new G4UIcmdWithADoubleAndUnit("/gps/paralp",this); … … 413 413 paralpCmd->SetParameterName("paralp",true,true); 414 414 paralpCmd->SetDefaultUnit("rad"); 415 paralpCmd->SetUnitCandidates("rad deg");415 // paralpCmd->SetUnitCandidates("rad deg"); 416 416 417 417 partheCmd = new G4UIcmdWithADoubleAndUnit("/gps/parthe",this); … … 419 419 partheCmd->SetParameterName("parthe",true,true); 420 420 partheCmd->SetDefaultUnit("rad"); 421 partheCmd->SetUnitCandidates("rad deg");421 // partheCmd->SetUnitCandidates("rad deg"); 422 422 423 423 parphiCmd = new G4UIcmdWithADoubleAndUnit("/gps/parphi",this); … … 425 425 parphiCmd->SetParameterName("parphi",true,true); 426 426 parphiCmd->SetDefaultUnit("rad"); 427 parphiCmd->SetUnitCandidates("rad deg");427 // parphiCmd->SetUnitCandidates("rad deg"); 428 428 429 429 confineCmd = new G4UIcmdWithAString("/gps/confine",this); … … 461 461 minthetaCmd1->SetDefaultValue(0.); 462 462 minthetaCmd1->SetDefaultUnit("rad"); 463 minthetaCmd1->SetUnitCandidates("rad deg");463 // minthetaCmd1->SetUnitCandidates("rad deg"); 464 464 465 465 maxthetaCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ang/maxtheta",this); … … 468 468 maxthetaCmd1->SetDefaultValue(pi); 469 469 maxthetaCmd1->SetDefaultUnit("rad"); 470 maxthetaCmd1->SetUnitCandidates("rad deg");470 // maxthetaCmd1->SetUnitCandidates("rad deg"); 471 471 472 472 minphiCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ang/minphi",this); … … 474 474 minphiCmd1->SetParameterName("MinPhi",true,true); 475 475 minphiCmd1->SetDefaultUnit("rad"); 476 minphiCmd1->SetUnitCandidates("rad deg");476 // minphiCmd1->SetUnitCandidates("rad deg"); 477 477 478 478 maxphiCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ang/maxphi",this); … … 481 481 maxphiCmd1->SetDefaultValue(pi); 482 482 maxphiCmd1->SetDefaultUnit("rad"); 483 maxphiCmd1->SetUnitCandidates("rad deg");483 // maxphiCmd1->SetUnitCandidates("rad deg"); 484 484 485 485 angsigmarCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ang/sigma_r",this); … … 487 487 angsigmarCmd1->SetParameterName("Sigmara",true,true); 488 488 angsigmarCmd1->SetDefaultUnit("rad"); 489 angsigmarCmd1->SetUnitCandidates("rad deg");489 // angsigmarCmd1->SetUnitCandidates("rad deg"); 490 490 491 491 angsigmaxCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ang/sigma_x",this); … … 493 493 angsigmaxCmd1->SetParameterName("Sigmaxa",true,true); 494 494 angsigmaxCmd1->SetDefaultUnit("rad"); 495 angsigmaxCmd1->SetUnitCandidates("rad deg");495 // angsigmaxCmd1->SetUnitCandidates("rad deg"); 496 496 497 497 angsigmayCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ang/sigma_y",this); … … 499 499 angsigmayCmd1->SetParameterName("Sigmaya",true,true); 500 500 angsigmayCmd1->SetDefaultUnit("rad"); 501 angsigmayCmd1->SetUnitCandidates("rad deg");501 // angsigmayCmd1->SetUnitCandidates("rad deg"); 502 502 503 503 angfocusCmd = new G4UIcmdWith3VectorAndUnit("/gps/ang/focuspoint",this); … … 505 505 angfocusCmd->SetParameterName("x","y","z",true,true); 506 506 angfocusCmd->SetDefaultUnit("cm"); 507 angfocusCmd->SetUnitCandidates("micron mm cm m km");507 // angfocusCmd->SetUnitCandidates("micron mm cm m km"); 508 508 509 509 useuserangaxisCmd1 = new G4UIcmdWithABool("/gps/ang/user_coor",this); … … 543 543 minthetaCmd->SetParameterName("MinTheta",true,true); 544 544 minthetaCmd->SetDefaultUnit("rad"); 545 minthetaCmd->SetUnitCandidates("rad deg");545 // minthetaCmd->SetUnitCandidates("rad deg"); 546 546 547 547 maxthetaCmd = new G4UIcmdWithADoubleAndUnit("/gps/maxtheta",this); … … 550 550 maxthetaCmd->SetDefaultValue(3.1416); 551 551 maxthetaCmd->SetDefaultUnit("rad"); 552 maxthetaCmd->SetUnitCandidates("rad deg");552 // maxthetaCmd->SetUnitCandidates("rad deg"); 553 553 554 554 minphiCmd = new G4UIcmdWithADoubleAndUnit("/gps/minphi",this); … … 556 556 minphiCmd->SetParameterName("MinPhi",true,true); 557 557 minphiCmd->SetDefaultUnit("rad"); 558 minphiCmd->SetUnitCandidates("rad deg");558 // minphiCmd->SetUnitCandidates("rad deg"); 559 559 560 560 maxphiCmd = new G4UIcmdWithADoubleAndUnit("/gps/maxphi",this); … … 562 562 maxphiCmd->SetParameterName("MaxPhi",true,true); 563 563 maxphiCmd->SetDefaultUnit("rad"); 564 maxphiCmd->SetUnitCandidates("rad deg");564 // maxphiCmd->SetUnitCandidates("rad deg"); 565 565 566 566 angsigmarCmd = new G4UIcmdWithADoubleAndUnit("/gps/sigmaangr",this); … … 568 568 angsigmarCmd->SetParameterName("Sigmara",true,true); 569 569 angsigmarCmd->SetDefaultUnit("rad"); 570 angsigmarCmd->SetUnitCandidates("rad deg");570 // angsigmarCmd->SetUnitCandidates("rad deg"); 571 571 572 572 angsigmaxCmd = new G4UIcmdWithADoubleAndUnit("/gps/sigmaangx",this); … … 574 574 angsigmaxCmd->SetParameterName("Sigmaxa",true,true); 575 575 angsigmaxCmd->SetDefaultUnit("rad"); 576 angsigmaxCmd->SetUnitCandidates("rad deg");576 // angsigmaxCmd->SetUnitCandidates("rad deg"); 577 577 578 578 angsigmayCmd = new G4UIcmdWithADoubleAndUnit("/gps/sigmaangy",this); … … 580 580 angsigmayCmd->SetParameterName("Sigmaya",true,true); 581 581 angsigmayCmd->SetDefaultUnit("rad"); 582 angsigmayCmd->SetUnitCandidates("rad deg");582 // angsigmayCmd->SetUnitCandidates("rad deg"); 583 583 584 584 useuserangaxisCmd = new G4UIcmdWithABool("/gps/useuserangaxis",this); … … 609 609 eminCmd1->SetParameterName("emin",true,true); 610 610 eminCmd1->SetDefaultUnit("keV"); 611 eminCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV");611 // eminCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 612 612 613 613 emaxCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ene/max",this); … … 615 615 emaxCmd1->SetParameterName("emax",true,true); 616 616 emaxCmd1->SetDefaultUnit("keV"); 617 emaxCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV");617 // emaxCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 618 618 619 619 monoenergyCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ene/mono",this); … … 621 621 monoenergyCmd1->SetParameterName("monoenergy",true,true); 622 622 monoenergyCmd1->SetDefaultUnit("keV"); 623 monoenergyCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV");623 // monoenergyCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 624 624 625 625 engsigmaCmd1 = new G4UIcmdWithADoubleAndUnit("/gps/ene/sigma",this); … … 627 627 engsigmaCmd1->SetParameterName("Sigmae",true,true); 628 628 engsigmaCmd1->SetDefaultUnit("keV"); 629 engsigmaCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV");629 // engsigmaCmd1->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 630 630 631 631 alphaCmd1 = new G4UIcmdWithADouble("/gps/ene/alpha",this); … … 673 673 eminCmd->SetParameterName("emin",true,true); 674 674 eminCmd->SetDefaultUnit("keV"); 675 eminCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV");675 // eminCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 676 676 677 677 emaxCmd = new G4UIcmdWithADoubleAndUnit("/gps/emax",this); … … 679 679 emaxCmd->SetParameterName("emax",true,true); 680 680 emaxCmd->SetDefaultUnit("keV"); 681 emaxCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV");681 // emaxCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 682 682 683 683 monoenergyCmd = new G4UIcmdWithADoubleAndUnit("/gps/monoenergy",this); … … 685 685 monoenergyCmd->SetParameterName("monoenergy",true,true); 686 686 monoenergyCmd->SetDefaultUnit("keV"); 687 monoenergyCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV");687 // monoenergyCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 688 688 689 689 engsigmaCmd = new G4UIcmdWithADoubleAndUnit("/gps/sigmae",this); … … 691 691 engsigmaCmd->SetParameterName("Sigmae",true,true); 692 692 engsigmaCmd->SetDefaultUnit("keV"); 693 engsigmaCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV");693 // engsigmaCmd->SetUnitCandidates("eV keV MeV GeV TeV PeV"); 694 694 695 695 alphaCmd = new G4UIcmdWithADouble("/gps/alpha",this); -
trunk/source/event/src/G4HEPEvtInterface.cc
r964 r1196 26 26 // 27 27 // $Id: G4HEPEvtInterface.cc,v 1.11 2006/06/29 18:09:48 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/event/src/G4HEPEvtParticle.cc
r964 r1196 26 26 // 27 27 // $Id: G4HEPEvtParticle.cc,v 1.8 2006/06/29 18:09:50 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/event/src/G4ParticleGun.cc
r964 r1196 26 26 // 27 27 // $Id: G4ParticleGun.cc,v 1.14 2007/11/07 17:13:19 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4ParticleGunMessenger.cc
r964 r1196 26 26 // 27 27 // $Id: G4ParticleGunMessenger.cc,v 1.16 2007/10/02 00:45:17 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4PrimaryTransformer.cc
r964 r1196 26 26 // 27 27 // $Id: G4PrimaryTransformer.cc,v 1.27 2006/06/29 18:09:58 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4RayShooter.cc
r964 r1196 26 26 // 27 27 // $Id: G4RayShooter.cc,v 1.2 2006/06/29 18:10:00 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4SPSEneDistribution.cc
r964 r1196 1138 1138 maxcount = 1024; 1139 1139 } 1140 if(maxcount < 1) 1141 { 1142 G4cout << "Histogram contains less than 1 bin!" << G4endl; 1143 G4cout << "Redefine the histogram" << G4endl; 1144 return; 1145 } 1140 1146 for(count=0;count<maxcount;count++) 1141 1147 { -
trunk/source/event/src/G4StackChecker.cc
r964 r1196 26 26 // 27 27 // $Id: G4StackChecker.cc,v 1.2 2006/06/29 18:10:17 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4StackManager.cc
r964 r1196 25 25 // 26 26 // 27 // $Id: G4StackManager.cc,v 1.1 0 2006/06/29 18:10:19 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4StackManager.cc,v 1.14 2009/09/16 23:10:46 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 42 42 { 43 43 theMessenger = new G4StackingMessenger(this); 44 #ifdef G4_USESMARTSTACK 45 urgentStack = new G4SmartTrackStack; 46 G4cout<<"+++ G4StackManager uses G4SmartTrackStack. +++"<<G4endl; 47 #else 44 48 urgentStack = new G4TrackStack; 49 // G4cout<<"+++ G4StackManager uses ordinary G4TrackStack. +++"<<G4endl; 50 #endif 45 51 waitingStack = new G4TrackStack; 46 52 postponeStack = new G4TrackStack; … … 50 56 { 51 57 if(userStackingAction) delete userStackingAction; 58 59 if(verboseLevel>0) 60 { 61 G4cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << G4endl; 62 G4cout << " Maximum number of tracks in the urgent stack : " << urgentStack->GetMaxNTrack() << G4endl; 63 G4cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << G4endl; 64 } 52 65 delete urgentStack; 53 66 delete waitingStack; … … 79 92 { 80 93 #ifdef G4VERBOSE 81 if( verboseLevel > 0)94 if( verboseLevel > 1 ) 82 95 { 83 96 G4cout << " ---> G4Track " << newTrack << " (trackID " … … 121 134 { 122 135 #ifdef G4VERBOSE 123 if( verboseLevel > 0)136 if( verboseLevel > 1 ) 124 137 { 125 138 G4cout << "### pop requested out of " … … 131 144 { 132 145 #ifdef G4VERBOSE 133 if( verboseLevel > 0) G4cout << "### " << GetNWaitingTrack()146 if( verboseLevel > 1 ) G4cout << "### " << GetNWaitingTrack() 134 147 << " waiting tracks are re-classified to" << G4endl; 135 148 #endif … … 146 159 if(userStackingAction) userStackingAction->NewStage(); 147 160 #ifdef G4VERBOSE 148 if( verboseLevel > 0) G4cout << " " << GetNUrgentTrack()161 if( verboseLevel > 1 ) G4cout << " " << GetNUrgentTrack() 149 162 << " urgent tracks and " << GetNWaitingTrack() 150 163 << " waiting tracks." << G4endl; … … 158 171 159 172 #ifdef G4VERBOSE 160 if( verboseLevel > 1)173 if( verboseLevel > 2 ) 161 174 { 162 175 G4cout << "Selected G4StackedTrack : " << selectedStackedTrack … … 222 235 { 223 236 #ifdef G4VERBOSE 224 if( verboseLevel > 0)237 if( verboseLevel > 1 ) 225 238 { 226 239 G4cout << GetNPostponedTrack() … … 303 316 { 304 317 if(origin==destination) return; 318 if(origin==fKill) return; 305 319 G4TrackStack* originStack = 0; 306 320 switch(origin) 307 321 { 308 322 case fUrgent: 309 originStack = urgentStack;323 originStack = 0; 310 324 break; 311 325 case fWaiting: … … 314 328 case fPostpone: 315 329 originStack = postponeStack; 316 break;317 case fKill:318 330 break; 319 331 default: … … 322 334 break; 323 335 } 324 if(!originStack) return;325 336 326 337 if(destination==fKill) 327 338 { 328 G4StackedTrack * aStackedTrack; 329 while( (aStackedTrack=originStack->PopFromStack()) != 0 ) 339 if(originStack) 340 { originStack->clear(); } 341 else 342 { urgentStack->clear(); } 343 } 344 else 345 { 346 G4TrackStack* targetStack = 0; 347 switch(destination) 348 { 349 case fUrgent: 350 targetStack = 0; 351 break; 352 case fWaiting: 353 targetStack = waitingStack; 354 break; 355 case fPostpone: 356 targetStack = postponeStack; 357 break; 358 default: 359 int i = origin - 10; 360 if(i<=numberOfAdditionalWaitingStacks) targetStack = additionalWaitingStacks[i-1]; 361 break; 362 } 363 if(originStack) 364 { 365 if(targetStack) 366 { originStack->TransferTo(targetStack); } 367 else 368 { originStack->TransferTo(urgentStack); } 369 } 370 else 371 { urgentStack->TransferTo(targetStack); } 372 } 373 return; 374 } 375 376 void G4StackManager::TransferOneStackedTrack(G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination) 377 { 378 if(origin==destination) return; 379 if(origin==fKill) return; 380 G4TrackStack* originStack = 0; 381 switch(origin) 382 { 383 case fUrgent: 384 originStack = 0; 385 break; 386 case fWaiting: 387 originStack = waitingStack; 388 break; 389 case fPostpone: 390 originStack = postponeStack; 391 break; 392 default: 393 int i = origin - 10; 394 if(i<=numberOfAdditionalWaitingStacks) originStack = additionalWaitingStacks[i-1]; 395 break; 396 } 397 398 G4StackedTrack * aStackedTrack = 0; 399 if(destination==fKill) 400 { 401 if(originStack) 402 { aStackedTrack = originStack->PopFromStack(); } 403 else 404 { aStackedTrack = urgentStack->PopFromStack(); } 405 if(aStackedTrack) 330 406 { 331 407 delete aStackedTrack->GetTrack(); … … 340 416 { 341 417 case fUrgent: 342 targetStack = urgentStack;418 targetStack = 0; 343 419 break; 344 420 case fWaiting: … … 353 429 break; 354 430 } 355 if(!targetStack) return; 356 originStack->TransferTo(targetStack); 431 if(originStack) 432 { aStackedTrack = originStack->PopFromStack(); } 433 else 434 { aStackedTrack = urgentStack->PopFromStack(); } 435 if(targetStack) 436 { targetStack->PushToStack(aStackedTrack); } 437 else 438 { urgentStack->PushToStack(aStackedTrack); } 357 439 } 358 440 return; 359 441 } 360 442 361 void G4StackManager::TransferOneStackedTrack(G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination) 362 { 363 if(origin==destination) return; 364 G4TrackStack* originStack = 0; 365 switch(origin) 366 { 367 case fUrgent: 368 originStack = urgentStack; 369 break; 370 case fWaiting: 371 originStack = waitingStack; 372 break; 373 case fPostpone: 374 originStack = postponeStack; 375 break; 376 case fKill: 377 break; 378 default: 379 int i = origin - 10; 380 if(i<=numberOfAdditionalWaitingStacks) originStack = additionalWaitingStacks[i-1]; 381 break; 382 } 383 if(!originStack) return; 384 385 G4StackedTrack * aStackedTrack; 386 if(destination==fKill) 387 { 388 if( (aStackedTrack=originStack->PopFromStack()) != 0 ) 389 { 390 delete aStackedTrack->GetTrack(); 391 delete aStackedTrack->GetTrajectory(); 392 delete aStackedTrack; 393 } 394 } 395 else 396 { 397 G4TrackStack* targetStack = 0; 398 switch(destination) 399 { 400 case fUrgent: 401 targetStack = urgentStack; 402 break; 403 case fWaiting: 404 targetStack = waitingStack; 405 break; 406 case fPostpone: 407 targetStack = postponeStack; 408 break; 409 default: 410 int i = origin - 10; 411 if(i<=numberOfAdditionalWaitingStacks) targetStack = additionalWaitingStacks[i-1]; 412 break; 413 } 414 if(!targetStack) return; 415 if( (aStackedTrack=originStack->PopFromStack()) != 0 ) 416 { 417 targetStack->PushToStack(aStackedTrack); 418 } 419 } 420 return; 421 } 422 423 424 425 426 443 444 445 446 -
trunk/source/event/src/G4StackedTrack.cc
r964 r1196 26 26 // 27 27 // $Id: G4StackedTrack.cc,v 1.9 2006/06/29 18:10:21 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/source/event/src/G4StackingMessenger.cc
r964 r1196 25 25 // 26 26 // 27 // $Id: G4StackingMessenger.cc,v 1. 5 2006/06/29 18:10:23 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4StackingMessenger.cc,v 1.6 2009/09/16 23:10:46 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -------------------------------------------------------------------- … … 57 57 clearCmd->SetRange("level>=-2&&level<=2"); 58 58 clearCmd->AvailableForStates(G4State_GeomClosed,G4State_EventProc); 59 60 verboseCmd = new G4UIcmdWithAnInteger("/event/stack/verbose",this); 61 verboseCmd->SetGuidance("Set verbose level for G4StackManager"); 62 verboseCmd->SetGuidance(" 0 : Silence (default)"); 63 verboseCmd->SetGuidance(" 1 : Minimum statistics"); 64 verboseCmd->SetGuidance(" 2 : Detailed reports"); 65 verboseCmd->SetGuidance("Note - this value is overwritten by /event/verbose command."); 66 59 67 } 60 68 … … 76 84 G4cout << " Postponed stack : " << fContainer->GetNPostponedTrack() << G4endl; 77 85 } 78 if( command==clearCmd )86 else if( command==clearCmd ) 79 87 { 80 88 G4int vc = clearCmd->GetNewIntValue(newValues); … … 96 104 } 97 105 } 106 else if( command==verboseCmd ) 107 { 108 fContainer->SetVerboseLevel(verboseCmd->GetNewIntValue(newValues)); 109 } 98 110 } 99 111 -
trunk/source/event/src/G4TrackStack.cc
r964 r1196 25 25 // 26 26 // 27 // $Id: G4TrackStack.cc,v 1. 6 2006/06/29 18:10:26 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4TrackStack.cc,v 1.8 2009/09/10 21:31:41 asaim Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 31 31 #include "G4TrackStack.hh" 32 #include "G4SmartTrackStack.hh" 32 33 #include "G4VTrajectory.hh" 33 34 34 35 G4TrackStack::G4TrackStack() 35 36 :n_stackedTrack(0),firstStackedTrack(0),lastStackedTrack(0) 36 {;} 37 { 38 maxNTracks = 0; 39 } 37 40 38 41 G4TrackStack::~G4TrackStack() … … 89 92 } 90 93 94 void G4TrackStack::TransferTo(G4SmartTrackStack * aStack) 95 { 96 while(n_stackedTrack) 97 { aStack->PushToStack(PopFromStack()); } 98 } 99 91 100 G4StackedTrack * G4TrackStack::PopFromStack() 92 101 { … … 111 120 lastStackedTrack = aStackedTrack; 112 121 n_stackedTrack++; 122 if(n_stackedTrack>maxNTracks) maxNTracks = n_stackedTrack; 113 123 } 114 124 -
trunk/source/event/src/G4TrajectoryContainer.cc
r964 r1196 26 26 // 27 27 // $Id: G4TrajectoryContainer.cc,v 1.5 2006/06/29 18:10:28 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4UserEventAction.cc
r964 r1196 26 26 // 27 27 // $Id: G4UserEventAction.cc,v 1.7 2006/06/29 18:10:31 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4UserStackingAction.cc
r964 r1196 26 26 // 27 27 // $Id: G4UserStackingAction.cc,v 1.7 2006/06/29 18:10:33 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/source/event/src/G4VPrimaryGenerator.cc
r964 r1196 26 26 // 27 27 // $Id: G4VPrimaryGenerator.cc,v 1.5 2006/06/29 18:10:35 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30
Note:
See TracChangeset
for help on using the changeset viewer.
