-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (31 loc) · 1.16 KB
/
Makefile
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
list_file = output/file_list.yml
sequence_file = config/sequence.yml
plot_file = config/plot.yml
ntuple_directory = ntuples
output_directory = output
curator:
@echo "===================="
@echo "running fast_curator"
@echo "===================="
rm -f $(list_file)
mkdir -p $(output_directory)
fast_curator -o $(list_file) -t background -d Background --mc -m type=nominal $(ntuple_directory)/prediction.root
fast_curator -o $(list_file) -t signal -d Signal --mc -m type=nominal $(ntuple_directory)/prediction.root
fast_curator -o $(list_file) -t pseudodata -d Data --data $(ntuple_directory)/data.root
carpenter: curator
@echo "====================="
@echo "running fast_carpenter"
@echo "====================="
fast_carpenter $(list_file) $(sequence_file) --outdir $(output_directory)
plotter: carpenter
@echo "===================="
@echo "running fast_plotter"
@echo "===================="
fast_plotter -c $(plot_file) $(output_directory)/tbl*.csv --outdir $(output_directory)
clean: clean-curator clean-carpenter clean-plotter
clean-curator:
rm -f $(list_file)
clean-carpenter:
rm -f $(output_directory)/*csv
clean-plotter:
rm -f $(output_directory)/*png