|
Last change
on this file since 1321 was 1316, checked in by garnier, 15 years ago |
|
update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #
|
|---|
| 2 | # A sample macro of user-defined score writer inherited from G4VScoreWriter
|
|---|
| 3 | # class.
|
|---|
| 4 | #
|
|---|
| 5 | # Add the following lines
|
|---|
| 6 | # before main() function in test1.cc
|
|---|
| 7 | #
|
|---|
| 8 | # #include "Tst1UserScoreWirter.hh"
|
|---|
| 9 | #
|
|---|
| 10 | # and after G4ScoringManager is instanciated in test1.cc
|
|---|
| 11 | #
|
|---|
| 12 | # scManager->SetScoreWriter(new Tst1UserScoreWriter());
|
|---|
| 13 | #
|
|---|
| 14 | # If no user-defined score writer is registered, a default score writer
|
|---|
| 15 | # of G4VScoreWriter is invoked.
|
|---|
| 16 | #
|
|---|
| 17 | #
|
|---|
| 18 | /score/create/boxMesh boxMesh_1
|
|---|
| 19 | #
|
|---|
| 20 | /score/mesh/boxSize 100. 100. 100. cm
|
|---|
| 21 | /score/mesh/translate/xyz 0. 0. 0. cm
|
|---|
| 22 | /score/mesh/nBin 50 50 50
|
|---|
| 23 | #
|
|---|
| 24 | /score/quantity/energyDeposit eDepPS
|
|---|
| 25 | #
|
|---|
| 26 | /score/quantity/nOfStep nOfStepPSgamma
|
|---|
| 27 | /score/filter/particle gammaFilter gamma
|
|---|
| 28 | #
|
|---|
| 29 | /score/quantity/nOfStep nOfStepPSeMinus
|
|---|
| 30 | /score/filter/particle eMinusFilter e-
|
|---|
| 31 | #
|
|---|
| 32 | /score/quantity/nOfStep nOfStepPSePlus
|
|---|
| 33 | /score/filter/particle ePlusFilter e+
|
|---|
| 34 | #
|
|---|
| 35 | /score/close
|
|---|
| 36 | #
|
|---|
| 37 | /run/constructScoringWorlds
|
|---|
| 38 | #
|
|---|
| 39 | /run/beamOn 1000
|
|---|
| 40 | /score/dumpQuantityToFile boxMesh_1 eDepPS eDep.txt
|
|---|
| 41 | /score/dumpQuantityToFile boxMesh_1 nOfStepPSgamma nOfStep-Gamma.txt
|
|---|
| 42 | /score/dumpQuantityToFile boxMesh_1 nOfStepPSeMinus nOfStep-eMinus.txt
|
|---|
| 43 | /score/dumpQuantityToFile boxMesh_1 nOfStepPSePlus nOfStep-ePlus.txt
|
|---|
| 44 | #
|
|---|
| 45 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.