-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_electrons_simple.mac
More file actions
67 lines (57 loc) · 1.88 KB
/
run_electrons_simple.mac
File metadata and controls
67 lines (57 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/rat/physics_list/OmitMuonicProcesses true
/rat/physics_list/OmitHadronicProcesses true
# Use the simple geo for speed up viewing
/rat/db/set DETECTOR geo_file "geo/snoplusnative.geo"
# /rat/db/set DETECTOR geo_file "geo/snoplus.geo"
# /rat/db/set DETECTOR geo_file "geo/snoplus_jpmod.geo"
# /rat/db/set DETECTOR geo_file "geo/snoplusnative_jpmod2.geo"
# Adjust geometry settings here before initialisation
# disable the PMT geometry for speed of viewing
# /rat/db/set GEO[innerPMT] enable 0
# make the PSUP invisible`
# /rat/db/set GEO[psup] invisible 1
# there are so many scintillator photons its very slow to view so use water instead
# /rat/db/set GEO[inner_av] material "lightwater_sno"
/rat/tracking/store full
/run/initialize
# # Use the HepRApp viewer
# # /vis/open HepRepFile
# # /vis/open DAWNFILE
# #/vis/open VRML2FILE
# # /vis/open OGLIX
# # /vis/open RayTracer
# # /vis/heprep/setFileName example_vis
# /vis/scene/create
# /vis/scene/add/volume
# /vis/sceneHandler/attach
# /vis/viewer/set/upVector 0.0 0.0 1.0
# /vis/viewer/set/viewpointThetaPhi -90 90
# /vis/viewer/set/lightsThetaPhi 90 0
# /vis/viewer/set/style s
# /vis/scene/add/trajectories
# /vis/scene/add/hits
# /vis/modeling/trajectories/create/drawByParticleID
# /vis/modeling/trajectories/drawByParticleID-0/set opticalphoton blue
# /vis/modeling/trajectories/drawByParticleID-0/set ate- red
# # view before simulating any events
# /vis/viewer/flush
# BEGIN EVENT LOOP
# turn off processors -- not needed for visualization
/rat/proc simpledaq
/rat/proc count
/rat/procset update 5
/rat/proc calibratePMT
# /rat/proc fitter
# /rat/procset method "centroid"
/rat/proclast outroot
/rat/procset file "5MeV_electrons_storeall.root"
# END EVENT LOOP
/generator/add combo gun:fill:poisson
/generator/vtx/set e- 0 0 0 5
/generator/pos/set 0 0 0
/generator/rate/set 1
/run/verbose 2
#/event/verbose 2
#/tracking/verbose 2
/rat/run/start 10
exit