examples/testing/Zee/Makefile
1 ############## Make tests ###########################
2 include ../test.inc
3 
4 NAME_BENCHMARK=mc-tester.root-Zee-10M-nosym-10MeV
5 # Or use other benchmarks reference files:
6 # NAME_BENCHMARK=mc-tester.root-Zee-kkmc-sym-1GeV
7 # NAME_BENCHMARK=mc-tester.root-Zee-photos-100M-sym-10MeV
8 
9 CONF=pythia_Z.conf
10 NAME=Zee
11 
12 PROGRAM=$(PHOTOS_ONLY)
13 
14 tester.$(NAME).pdf: mc-tester.$(NAME).root
15  $(COMPARE) $(NAME_BENCHMARK) mc-tester.$(NAME).root
16  mv tester.pdf tester.$(NAME).pdf
17  $(VIEWER) tester.$(NAME).pdf &
18  @echo
19  @echo "Error messages redirected to /dev/null due to large output from Pythia"
20  @echo
21 
22 mc-tester.$(NAME).root: $(PROGRAM) $(CONF)
23  $(PROGRAM) $(CONF) $(EVENTS) 2>/dev/null
24  mv mc-tester.root mc-tester.$(NAME).root
25 
26 clean:
27  rm -rf *~ booklet* tester* mc-results*
28  rm -rf MC-TESTER.DAT *_C.so *_C.d
29 
30 clobber: clean
31  rm -f mc-tester.$(NAME).root