~christopher-hunt08/maus/beam_selection_development

« back to all changes in this revision

Viewing changes to src/map/MapCppSimulation/run_visualisation_vrml2file_no_event.py

  • Committer: Chris Rogers
  • Date: 2012-10-13 18:43:00 UTC
  • mfrom: (663.6.137 merge)
  • mto: (663.6.204 merge)
  • mto: This revision was merged to the branch mainline in revision 680.
  • Revision ID: chris.rogers@stfc.ac.uk-20121013184300-ry9q81m45dmtgejr
Bring control room branch into line with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import json
26
26
import unittest
27
27
 
 
28
import Configuration
28
29
from MapCppSimulation import MapCppSimulation
29
30
 
30
31
class MapCppSimulationVisualisationTestCase(unittest.TestCase):
76
77
        for filename in glob.glob('g4_*.wrl'):
77
78
            os.rename(filename, os.environ['MAUS_ROOT_DIR']+'/tmp/'+filename) 
78
79
 
79
 
    configuration = {
80
 
      "verbose_level":4,
81
 
      "simulation_geometry_filename":"Test.dat",
82
 
      "reconstruction_geometry_filename":"Test.dat",
83
 
      "maximum_number_of_steps":1000,
84
 
      "keep_steps":True,
85
 
      "keep_tracks":True,
86
 
      "simulation_reference_particle":{
87
 
        "position":{"x":0.0, "y":-0.0, "z":-4700.0},
88
 
        "momentum":{"x":0.0, "y":0.0, "z":1.0},
89
 
        "particle_id":-13,
90
 
        "energy":226.0,
91
 
        "time":0.0,
92
 
        "random_seed":10
93
 
      },
94
 
      "geant4_visualisation":True,
95
 
      "visualisation_viewer":"VRML2FILE",
96
 
      "visualisation_theta":90.,
97
 
      "visualisation_phi":90.,
98
 
      "visualisation_zoom":1.,
99
 
      "accumulate_tracks":0,
100
 
      "default_vis_colour":{"red":0. , "green":100.  ,"blue":0.},
101
 
      "pi_plus_vis_colour":{"red":255. , "green":250.  ,"blue":240.},
102
 
      "pi_minus_vis_colour":{"red":105. , "green":105.  ,"blue":105.},
103
 
      "mu_plus_vis_colour":{"red":25. , "green":25.  ,"blue":112.},
104
 
      "mu_minus_vis_colour":{"red":135. , "green":206.  ,"blue":250.},
105
 
      "e_plus_vis_colour":{"red":250. , "green":0.  ,"blue":0.},
106
 
      "e_minus_vis_colour":{"red":250. , "green":69.  ,"blue":0.},
107
 
      "gamma_vis_colour":{"red":255. , "green":20.  ,"blue":147.},
108
 
      "neutron_vis_colour":{"red":139. , "green":69.  ,"blue":19.},
109
 
      "photon_vis_colour":{"red":255. , "green":255.  ,"blue":0.},
110
 
      "physics_model":"QGSP_BERT",
111
 
      "physics_processes":"standard",
112
 
      "reference_physics_processes":"mean_energy_loss",
113
 
      "particle_decay":True,
114
 
      "charged_pion_half_life":-1.,
115
 
      "muon_half_life":-1.,
116
 
      "production_threshold":0.5,
117
 
    }
 
80
    configuration = json.loads(Configuration.Configuration().getConfigJSON())
 
81
    configuration["verbose_level"] = 2
 
82
    configuration["keep_steps"] = True
 
83
    configuration["geant4_visualisation"] = True
118
84
 
119
85
if __name__ == '__main__':
120
86
    unittest.main()