Project

General

Profile

Feature #1417 » reduce_output.py

outputter - Rajaram, Durga, 05 March 2014 10:48

 
1
#!/usr/bin/env python
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
#################################################################
7

    
8
"""
9
Reduce-output to produce reconstructed events from the MICE Experiment.
10
"""
11

    
12
import MAUS
13
import io
14

    
15
def run():
16
    """
17
    Write out data from the MICE experiment
18
    """
19
    my_input = MAUS.InputCppDAQOfflineData() # pylint: disable = E1101
20

    
21
    # Create an empty array of mappers, then populate it
22
    # with the functionality you want to use.
23
    my_map = MAUS.MapPyGroup()
24
    my_map.append(MAUS.MapPyReconSetup())
25

    
26
    reducer = MAUS.ReducePyDoNothing()
27
    output_worker = MAUS.OutputCppRoot()
28

    
29
    # Run the workflow.
30
    MAUS.Go(my_input, my_map, reducer, output_worker) 
31

    
32
if __name__ == '__main__':
33
    run()
(2-2/9)