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