Bug #1456 » analyze_do_nothing.py
1 |
#!/usr/bin/env python
|
---|---|
2 |
|
3 |
"""
|
4 |
Reconstruct data from the MICE experiment
|
5 |
|
6 |
Offline analysis to produce reconstructed elements for MICE. TOF is
|
7 |
reconstructed through to space points; Ckov is reconstructed through to Digits.
|
8 |
"""
|
9 |
|
10 |
import MAUS |
11 |
|
12 |
def run(): |
13 |
"""
|
14 |
Analyze data from the MICE experiment
|
15 |
"""
|
16 |
|
17 |
# Set up the input that reads from DAQ
|
18 |
my_input = MAUS.InputCppDAQOfflineData() |
19 |
|
20 |
# Create an empty array of mappers, then populate it
|
21 |
# with the functionality you want to use.
|
22 |
#my_map = MAUS.MapPyGroup()
|
23 |
|
24 |
# Trigger
|
25 |
#my_map.append(MAUS.MapPyReconSetup())
|
26 |
|
27 |
#my_map.append(MAUS.MapCppTOFDigits())
|
28 |
#my_map.append(MAUS.MapCppTOFSlabHits())
|
29 |
#my_map.append(MAUS.MapCppTOFSpacePoints())
|
30 |
|
31 |
#my_map.append(MAUS.MapPyCkov())
|
32 |
|
33 |
#my_map.append(MAUS.MapCppKLDigits())
|
34 |
#my_map.append(MAUS.MapCppKLCellHits())
|
35 |
|
36 |
#my_map.append(MAUS.MapCppEMRPlaneHits())
|
37 |
|
38 |
# Tracker (commented out as no tracker installed in MICE hall)
|
39 |
#my_map.append(MAUS.MapCppTrackerRecon())
|
40 |
|
41 |
# The Go() drives all the components you pass in then put all the output
|
42 |
# into a file called 'mausput'
|
43 |
MAUS.Go(my_input, MAUS.MapPyDoNothing(), MAUS.ReducePyDoNothing(), MAUS.OutputPyJSON()) |
44 |
|
45 |
if __name__ == '__main__': |
46 |
run() |
47 |
|