~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_py/Go.py

  • Committer: Chris Rogers
  • Date: 2012-07-19 11:27:58 UTC
  • mto: (663.23.1 _maus_merge)
  • mto: This revision was merged to the branch mainline in revision 673.
  • Revision ID: chris.rogers@stfc.ac.uk-20120719112758-sktrvvwq0msq3dh8
Python interface and calls to start of run

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import json
22
22
import sys
23
23
 
 
24
import maus_cpp.globals
24
25
import libMausCpp
25
26
 
26
27
# MAUS
102
103
                json.dumps(json_config_dictionary, indent=2)
103
104
        print "Initialising Globals"
104
105
        # Initialise field maps, geant4, etc
105
 
        libMausCpp.initialise(json.dumps(json_config_dictionary))        
 
106
        maus_cpp.globals.birth(json.dumps(json_config_dictionary))        
106
107
        try:
107
108
            # Set up the dataflow executor.
108
109
            if type_of_dataflow == 'pipeline_single_thread':
129
130
            raise
130
131
        finally:
131
132
            print "Clearing Globals" 
132
 
            libMausCpp.destruct()
 
133
            maus_cpp.globals.death()
133
134
        print("DONE")
134
135
 
135
136
    @staticmethod