QwGeant4
myPosDirScan.in
Go to the documentation of this file.
1 #Programmer: Valerie Gray
2 #Purpose: The macro file for the Qtor Scan study
3 #
4 #Date: 11-22-2012
5 #Modified:
6 #Assisted By:
7 #
8 /control/execute myQweakConfiguration.mac
9 /control/execute macros/peiqing_2011.mac
10 
11 /random/setSavingFlag 0
12 /random/setDirectoryName random/%name%_%jobid%
13 /random/setSeeds %seedA% %seedB%
14 
15 #track everything
16 /TrackingAction/TrackingFlag 3
17 
18 #select reaction region and type
19 /EventGen/SelectReactionRegion 1
20 /EventGen/SelectReactionType 1
21 
22 /Trigger/Disable all
23 /Trigger/Enable cer
24 /Trigger/Show
25 
26 #set the intial/defult beam positions and directions
27 /PrimaryEvent/SetBeamPositionX 0 mm
28 /PrimaryEvent/SetBeamPositionY 0 mm
29 /PrimaryEvent/SetBeamDirectionX 0 mrad
30 /PrimaryEvent/SetBeamDirectionY 0 mrad
31 
32 #convert to the units Geant wants
33 /control/divide position %position% 1000
34 /control/divide direction %direction% 1000
35 
36 #set the wanted beam angle and directions
37 /PrimaryEvent/SetBeamPosition%axis% {position} mm
38 /PrimaryEvent/SetBeamDirection%axis% {direction} mrad
39 
40 #name the rootfile properly
41 /Analysis/RootFileName rootfiles/%name%_%jobid%_workdir/%name%_%jobid%.root
42 
43 #number of events
44 /run/beamOn %nevents%
45