def run(): """Analyze data from the MICE experiment This will read in and process data taken from the MICE experiment. It will eventually include things like cabling information, calibrations, and fits. """ # Here you specify the path to the data and also the file you want to # analyze. my_input = MAUS.InputCppDAQOnlineData() # Create an empty array of mappers, then populate it # with the functionality you want to use. my_map = MAUS.MapPyGroup() my_map.append(MAUS.MapPyScalersDump()) #my_map.append(MAUS.MapCppTOFDigits()) #my_map.append(MAUS.MapCppTOFSlabHits()) #my_map.append(MAUS.MapCppTOFSpacePoints()) #my_map.append(MAUS.MapPyTOFPlot()) # 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.OutputPyJSON())
def setUpClass(cls): #pylint: disable = C0103 """Construct for MapPyScalersDump """ if not os.environ.get("MAUS_ROOT_DIR"): raise Exception('InitializeFail', 'MAUS_ROOT_DIR unset!') cls.mapper = MAUS.MapPyScalersDump() # Set our data path & filename # It would be nicer to test with a smaller data file! cls._datapath = '%s/src/input/InputCppDAQData' % \ os.environ.get("MAUS_ROOT_DIR") cls._datafile = '06008' cls._c = Configuration()