1 #Programmer: Valerie Gray
2 #Purpose: The macro file for the Qtor Scan study
8 /control/execute myQweakConfiguration.mac
9 /control/execute macros/peiqing_2011.mac
11 /random/setSavingFlag 0
12 /random/setDirectoryName random/%name%_%jobid%
13 /random/setSeeds %seedA% %seedB%
16 /TrackingAction/TrackingFlag 3
18 #select reaction region and type
19 /EventGen/SelectReactionRegion 1
20 /EventGen/SelectReactionType 1
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
32 #convert to the units Geant wants
33 /control/divide position %position% 1000
34 /control/divide direction %direction% 1000
36 #set the wanted beam angle and directions
37 /PrimaryEvent/SetBeamPosition%axis% {position} mm
38 /PrimaryEvent/SetBeamDirection%axis% {direction} mrad
40 #name the rootfile properly
41 /Analysis/RootFileName rootfiles/%name%_%jobid%_workdir/%name%_%jobid%.root