~gkafka/maus/devel2

« back to all changes in this revision

Viewing changes to bin/analyze_data_offline.py

  • Committer: Gene Kafka
  • Date: 2012-03-23 13:21:13 UTC
  • mfrom: (664.1.1 maus)
  • Revision ID: gkafka@iit.edu-20120323132113-2ekk5qrq1tm8hk9x
ckov_update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
3
 
#################################################################
4
 
###!!! YOU ARE NOT ALLOWED TO MODIFY THIS FILE DIRECTLY    !!!###
5
 
###!!! PLEASE MAKE A COPY OF THIS FILE WITH THE CP COMMAND !!!###
6
 
#################################################################
 
3
"""
 
4
Reconstruct data from the MICE experiment
7
5
 
8
 
"""
9
 
Offline analysis to produce reconstructed events from the MICE Experiment
 
6
Offline analysis to produce reconstructed elements for MICE. TOF is
 
7
reconstructed through to space points; Ckov is reconstructed through to Digits.
10
8
"""
11
9
 
12
10
import MAUS
13
11
 
14
12
def run():
15
 
    """Analyze data from the MICE experiment
16
 
 
17
 
    This will read in and process data taken from the MICE experiment. It will
18
 
    eventually include things like cabling information, calibrations, and fits.
 
13
    """
 
14
    Analyze data from the MICE experiment
19
15
    """
20
16
 
21
17
    # Set up the input that reads from DAQ
24
20
    # Create an empty array of mappers, then populate it
25
21
    # with the functionality you want to use.
26
22
    my_map = MAUS.MapPyGroup()
 
23
 
 
24
    # TOF
27
25
    my_map.append(MAUS.MapCppTOFDigits())
28
26
    my_map.append(MAUS.MapCppTOFSlabHits())
29
27
    my_map.append(MAUS.MapCppTOFSpacePoints())
30
28
 
 
29
    # Ckov
 
30
    my_map.append(MAUS.MapPyCkov())
 
31
 
 
32
    # Tracker (commented out as no tracker installed in MICE hall)
 
33
    #my_map.append(MAUS.MapCppTrackerRecon())
 
34
 
31
35
    #  The Go() drives all the components you pass in then put all the output
32
36
    #  into a file called 'mausput'
33
37
    MAUS.Go(my_input, my_map, MAUS.ReducePyDoNothing(), MAUS.OutputPyJSON())