~maus-emr/maus/devel

« back to all changes in this revision

Viewing changes to tests/integration/test_utilities/simulate_mice.py

  • Committer: Ruslan Asfandiyarov
  • Date: 2013-05-14 15:03:27 UTC
  • mfrom: (669.1.13 maus)
  • Revision ID: ruslan.asfandiyarov@gmail.com-20130514150327-kqrr1lfppe46p4z5
merge with release 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
 
2
"""simulate_mice.py"""
2
3
import os
3
4
import io   #  generic python library for I/O
4
5
import gzip #  For compressed output # pylint: disable=W0611
24
25
    # with the functionality you want to use.
25
26
    my_map = MAUS.MapPyGroup()
26
27
    my_map.append(MAUS.MapCppSimulation())  #  geant4 simulation
27
 
    my_map.append(MAUS.MapCppTOFDigitization())  #  TOF electronics model
 
28
    my_map.append(MAUS.MapCppTOFMCDigitizer())  #  TOF electronics model
28
29
    my_map.append(MAUS.MapCppTrackerMCDigitization())  #   SCiFi electronics
29
30
 
30
31
    datacards = io.StringIO(u"keep_steps = True")
36
37
 
37
38
    #  Choose from either a compressed or uncompressed output file
38
39
    #
39
 
    output_file = open(os.environ["MAUS_ROOT_DIR"]+"/tmp/simulation.out", 'w')  #  Uncompressed
 
40
    output_file = open(os.environ["MAUS_ROOT_DIR"] + "/tmp/simulation.out",
 
41
                       'w')  #  Uncompressed
40
42
    #output_file = gzip.GzipFile("mausput.gz", 'wb')  #  Compressed
41
43
 
42
44
    #