-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvis.mac
52 lines (35 loc) · 1.29 KB
/
vis.mac
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
#
# Macro file for the initialization phase of "exampleN02.cc"
# when runing in interactive mode
#
# Sets some default verbose
#
/control/verbose 2
# Basic set up of the detector
/MuSIC_Detector/degraderZ 1 mm
/MuSIC_Detector/dipField /Users/scook/code/MuSIC/simulation/MuSIC_5_detector_sim/MuSIC5/MuSIC5_detector/fieldmap/fieldmap_dipole.txt
/MuSIC_Detector/solField /Users/scook/code/MuSIC/simulation/MuSIC_5_detector_sim/MuSIC5/MuSIC5_detector/fieldmap/fieldmap_solenoid.txt
/control/execute pid_macros/pid_-13.mac
/MuSIC_Detector/enableOpticalProcesses false
#/MuSIC_Detector/gun/g4blEnable true
# Make sure the geometry etc is set then try and draw things
/run/initialize
/run/verbose 2
/vis/open OGLIX
# Rotate the viewpoint, make beam run top to bottom then rotate again (to see detector top down)
#/vis/viewer/set/viewpointThetaPhi 90 0
# /vis/viewer/set/upVector 0 0 1
# Set so that the camera top is parallel to the detector x
# /vis/viewer/set/upVector 0.5877852522924731 0 0.8090169943749475
#/vis/viewer/set/viewpointThetaPhi 90 90
# /vis/open HepRepFile
# /vis/heprep/setFileName music5_1
# Draw geometry:
/vis/drawVolume
# for drawing the tracks
/vis/scene/add/trajectories smooth
#/vis/scene/add/hits
/vis/scene/endOfEventAction accumulate 100
/run/initialize
# /run/beamOn 100
/run/beamOn 1