1
# This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
3
# MAUS is free software: you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation, either version 3 of the License, or
6
# (at your option) any later version.
8
# MAUS is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with MAUS. If not, see <http://www.gnu.org/licenses/>.
19
Load test the execution runner
22
#################################################################
23
###!!! YOU ARE NOT ALLOWED TO MODIFY THIS FILE DIRECTLY !!!###
24
###!!! PLEASE MAKE A COPY OF THIS FILE WITH THE CP COMMAND !!!###
25
#################################################################
36
map_group = MAUS.MapPyGroup()
39
if len(sys.argv) == 2:
40
big_number = int(math.fabs(float(sys.argv[1])))
43
if len(sys.argv) == 2 and float(sys.argv[1]) < 0:
44
print 'Using only empty events'
45
map_group.append(MAUS.MapPyDoNothing())
47
print 'Using fake simulation data'
48
map_group.append(MAUS.MapPyFakeTestSimulation())
50
print("Testing with %d events..." % big_number)
53
inputer = MAUS.InputPyEmptyDocument(big_number)
55
reducer = MAUS.ReducePyDoNothing()
56
outputer = MAUS.OutputPyDoNothing()
59
Go(inputer, map_group, reducer, outputer)
62
if __name__ == '__main__':