forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alpgen.spec
148 lines (134 loc) · 3.5 KB
/
alpgen.spec
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
### RPM external alpgen 214
%define realversion %(echo %v | cut -d- -f1 )
Source: http://mlm.home.cern.ch/mlm/alpgen/V2.1/v%{realversion}.tgz
Source1: config.sub-amd64
Patch0: alpgen-214
Patch7: alpgen-214-Darwin-x86_84-gfortran
%prep
%setup -c -n alpgen-%v
%patch0 -p1
%patch7 -p1
%build
cd 2Qphwork; make gen; cd ..
cd 2Qwork; make gen; cd ..
cd 4Qwork; make gen; cd ..
cd hjetwork; make gen; cd ..
cd Njetwork; make gen; cd ..
cd QQhwork; make gen; cd ..
cd topwork; make gen; cd ..
cd vbjetwork; make gen; cd ..
cd wcjetwork; make gen; cd ..
cd wphjetwork; make gen; cd ..
cd wphqqwork; make gen; cd ..
cd wqqwork; make gen; cd ..
cd zqqwork; make gen; cd ..
cd phjetwork; make gen;
export USRF=120_180bin
make gen -f cmsMakefile
export USRF=180_240bin
make gen -f cmsMakefile
export USRF=20_60bin
make gen -f cmsMakefile
export USRF=240_300bin
make gen -f cmsMakefile
export USRF=300_5000bin ##this has changed it was up to 7000
make gen -f cmsMakefile
export USRF=60_120bin
make gen -f cmsMakefile
cd ..
cd wjetwork; make gen;
export USRF=0ptw100
make gen -f cmsMakefile
export USRF=100ptw300
make gen -f cmsMakefile
export USRF=300ptw800
make gen -f cmsMakefile
export USRF=800ptw1600
make gen -f cmsMakefile
export USRF=1600ptw3200 #was not in 213 patch
make gen -f cmsMakefile
export USRF=3200ptw5000 #was not in 213 patch
make gen -f cmsMakefile
export USRF=VBFHiggsTo2Tau #was not in 213 patch
make gen -f cmsMakefile
export USRF=2j_vbf_inv #was not in 213 patch
make gen -f cmsMakefile
export USRF=3j_vbf_inv #was not in 213 patch
make gen -f cmsMakefile
export USRF=1600ptw #was not in 212 patch
make gen -f cmsMakefile
cd ..
cd zjetwork; make gen;
export USRF=0ptz100
make gen -f cmsMakefile
export USRF=100ptz300
make gen -f cmsMakefile
export USRF=300ptz800
make gen -f cmsMakefile
export USRF=800ptz1600
make gen -f cmsMakefile
export USRF=1600ptz3200 #was not in 213 patch
make gen -f cmsMakefile
export USRF=3200ptz5000 #was not in 213 patch
make gen -f cmsMakefile
export USRF=VBFHiggsTo2Tau
make gen -f cmsMakefile
export USRF=2j_vbf_inv #was not in 213 patch
make gen -f cmsMakefile
export USRF=3j_vbf_inv #was not in 213 patch
make gen -f cmsMakefile
export USRF=1600ptz #was not in 212 patch
make gen -f cmsMakefile
cd ..
cd Njetwork; make gen; #whole Njetwork was not in 213 patch
export USRF=100_160
make gen -f cmsMakefile
export USRF=100_180
make gen -f cmsMakefile
export USRF=140_180
make gen -f cmsMakefile
export USRF=140_5600
make gen -f cmsMakefile
export USRF=160_200
make gen -f cmsMakefile
export USRF=180_250
make gen -f cmsMakefile
export USRF=180_5600
make gen -f cmsMakefile
export USRF=200_250
make gen -f cmsMakefile
export USRF=20_100
make gen -f cmsMakefile
export USRF=20_80
make gen -f cmsMakefile
export USRF=250_400
make gen -f cmsMakefile
export USRF=400_5600
make gen -f cmsMakefile
export USRF=80_140
make gen -f cmsMakefile
cd ..
%install
mkdir -p %{i}/bin
mkdir -p %{i}/alplib
cp zjetwork/zjet_*gen %{i}/bin/
cp wjetwork/wjet_*gen %{i}/bin/
cp phjetwork/phjet_*gen %{i}/bin/
cp Njetwork/Njet_*gen %{i}/bin/
cp 2Qphwork/2Qphgen %{i}/bin/
cp 2Qwork/2Qgen %{i}/bin/
cp 4Qwork/4Qgen %{i}/bin/
cp hjetwork/hjetgen %{i}/bin/
cp Njetwork/Njetgen %{i}/bin/
cp phjetwork/phjetgen %{i}/bin/
cp QQhwork/QQhgen %{i}/bin/
cp topwork/topgen %{i}/bin/
cp vbjetwork/vbjetgen %{i}/bin/
cp wcjetwork/wcjetgen %{i}/bin/
cp wjetwork/wjetgen %{i}/bin/
cp wphjetwork/wphjetgen %{i}/bin/
cp wphqqwork/wphqqgen %{i}/bin/
cp wqqwork/wqqgen %{i}/bin/
cp zjetwork/zjetgen %{i}/bin/
cp zqqwork/zqqgen %{i}/bin/
cp -R alplib/* %{i}/alplib/