Geant4 Cross Reference |
1 ############################################## 1 ############################################################################ 2 # Example for Bline visualisation 2 # Example for Bline visualisation 3 ############################################## 3 ############################################################################ 4 4 5 # User section 5 # User section 6 # -- here the user should add commands for def 6 # -- here the user should add commands for defining start position and time 7 7 8 8 9 # BlineTracer tracking commands 9 # BlineTracer tracking commands 10 # 10 # 11 /tracking/storeTrajectory 1 11 /tracking/storeTrajectory 1 12 12 13 # Next computed bline will be stored as Polyli 13 # Next computed bline will be stored as Polyline and Polymarker 14 # 14 # 15 /vis/blineTracer/stockLines true 15 /vis/blineTracer/stockLines true 16 /vis/blineTracer/stockPoints true 16 /vis/blineTracer/stockPoints true 17 17 18 # Size of the marker 18 # Size of the marker 19 # 19 # 20 /vis/blineTracer/setPointSize 12. 20 /vis/blineTracer/setPointSize 12. 21 21 22 # Line will be in green 22 # Line will be in green 23 # 23 # 24 /vis/blineTracer/setColour 0 1 0 24 /vis/blineTracer/setColour 0 1 0 25 25 26 # For smooth trajectory choose a small max ste 26 # For smooth trajectory choose a small max step length 27 # 27 # 28 /vis/blineTracer/setMaxStepLength 1. m 28 /vis/blineTracer/setMaxStepLength 1. m 29 29 30 # One line is computed 30 # One line is computed 31 # 31 # 32 /vis/blineTracer/computeBline 1 32 /vis/blineTracer/computeBline 1 33 33 34 # One possible initialisation of visualisation 34 # One possible initialisation of visualisation driver and scene-handler 35 # 35 # 36 /vis/sceneHandler/remove scene-handler-0 36 /vis/sceneHandler/remove scene-handler-0 37 /vis/sceneHandler/create VRML2FILE scene-handl 37 /vis/sceneHandler/create VRML2FILE scene-handler-0 3000 38 /vis/viewer/create 38 /vis/viewer/create 39 /vis/viewer/set/viewpointThetaPhi 35. 35. deg 39 /vis/viewer/set/viewpointThetaPhi 35. 35. deg 40 /vis/viewer/zoom .35 40 /vis/viewer/zoom .35 41 /vis/viewer/set/style surface2 41 /vis/viewer/set/style surface2 42 42 43 # Stored field lines are added to the visualis 43 # Stored field lines are added to the visualisation scene 44 # 44 # 45 /vis/blineTracer/show 45 /vis/blineTracer/show 46 46 47 # The computed field line is visualised with t 47 # The computed field line is visualised with the detector component 48 # 48 # 49 /vis/viewer/flush 49 /vis/viewer/flush