62
62
_differential_cross_section(
63
63
proc_def::AbstractScatteringProcess,
64
64
model_def::AbstractModelDefinition,
65
- init_phasespace ::AbstractVector{T},
66
- final_phasespace ::AbstractVector{T},
65
+ in_phasespace ::AbstractVector{T},
66
+ out_phasespace ::AbstractVector{T},
67
67
) where {T<:QEDbase.AbstractFourMomentum}
68
68
69
69
Interface function for the combination of scattering processes and physical models. Return the differential cross section of a
@@ -77,9 +77,9 @@ check if the length of the passed phase spaces match the respective number of pa
77
77
78
78
```julia
79
79
80
- _differential_cross_section(proc_def, model_def, init_phasespace ::AbstractVector{T}, final_phasespace ::AbstractMatrix{T})
81
- _differential_cross_section(proc_def, model_def, init_phasespace ::AbstractMatrix{T}, final_phasespace ::AbstractVector{T})
82
- _differential_cross_section(proc_def, model_def, init_phasespace ::AbstractMatrix{T}, final_phasespace ::AbstractMatrix{T})
80
+ _differential_cross_section(proc_def, model_def, in_phasespace ::AbstractVector{T}, out_phasespace ::AbstractMatrix{T})
81
+ _differential_cross_section(proc_def, model_def, in_phasespace ::AbstractMatrix{T}, out_phasespace ::AbstractVector{T})
82
+ _differential_cross_section(proc_def, model_def, in_phasespace ::AbstractMatrix{T}, out_phasespace ::AbstractMatrix{T})
83
83
84
84
```
85
85
@@ -101,8 +101,8 @@ function _differential_cross_section end
101
101
differential_cross_section(
102
102
proc_def::AbstractScatteringProcess,
103
103
model_def::AbstractModelDefinition,
104
- init_phasespace ::Union{AbstractVector{T},AbstractMatrix{T}},
105
- final_phasespace ::Union{AbstractVector{T},AbstractMatrix{T}},
104
+ in_phasespace ::Union{AbstractVector{T},AbstractMatrix{T}},
105
+ out_phasespace ::Union{AbstractVector{T},AbstractMatrix{T}},
106
106
) where {T<:QEDbase.AbstractFourMomentum}
107
107
108
108
Return the differential cross section for a given combination of a scattering process
@@ -113,41 +113,36 @@ This function will eventually call the respective interface function [`_differen
113
113
function differential_cross_section (
114
114
proc_def:: AbstractScatteringProcess ,
115
115
model_def:: AbstractModelDefinition ,
116
- init_phasespace :: Union{AbstractVector{T},AbstractMatrix{T}} ,
117
- final_phasespace :: Union{AbstractVector{T},AbstractMatrix{T}} ,
116
+ in_phasespace :: Union{AbstractVector{T},AbstractMatrix{T}} ,
117
+ out_phasespace :: Union{AbstractVector{T},AbstractMatrix{T}} ,
118
118
) where {T<: QEDbase.AbstractFourMomentum }
119
- size (init_phasespace , 1 ) == number_incoming_particles (proc_def) || throw (
119
+ size (in_phasespace , 1 ) == number_incoming_particles (proc_def) || throw (
120
120
DimensionMismatch (
121
- " The number of momenta in the initial phasespace <{length(init_phasespace )}> does not match the number of incoming particles of the process <{number_incoming_particles(proc_def)}>." ,
121
+ " The number of momenta in the initial phasespace <{length(in_phasespace )}> does not match the number of incoming particles of the process <{number_incoming_particles(proc_def)}>." ,
122
122
),
123
123
)
124
- size (final_phasespace , 1 ) == number_outgoing_particles (proc_def) || throw (
124
+ size (out_phasespace , 1 ) == number_outgoing_particles (proc_def) || throw (
125
125
DimensionMismatch (
126
- " The number of momenta in the final phasespace <{length(final_phasespace )}> does not match the number of outgoing particles of the process <{number_outgoing_particles(proc_def)}>." ,
126
+ " The number of momenta in the final phasespace <{length(out_phasespace )}> does not match the number of outgoing particles of the process <{number_outgoing_particles(proc_def)}>." ,
127
127
),
128
128
)
129
- return _differential_cross_section (
130
- proc_def,
131
- model_def,
132
- init_phasespace,
133
- final_phasespace,
134
- )
129
+ return _differential_cross_section (proc_def, model_def, in_phasespace, out_phasespace)
135
130
end
136
131
137
132
# returns diffCS for single `initPS` and several `finalPS` points without input-check
138
133
function _differential_cross_section (
139
134
proc_def:: AbstractScatteringProcess ,
140
135
model_def:: AbstractModelDefinition ,
141
- init_phasespace :: AbstractVector{T} ,
142
- final_phasespace :: AbstractMatrix{T} ,
136
+ in_phasespace :: AbstractVector{T} ,
137
+ out_phasespace :: AbstractMatrix{T} ,
143
138
) where {T<: QEDbase.AbstractFourMomentum }
144
- res = Vector {_base_component_type(init_phasespace )} (undef, size (final_phasespace , 2 ))
145
- for i = 1 : size (final_phasespace , 2 )
139
+ res = Vector {_base_component_type(in_phasespace )} (undef, size (out_phasespace , 2 ))
140
+ for i = 1 : size (out_phasespace , 2 )
146
141
res[i] = _differential_cross_section (
147
142
proc_def,
148
143
model_def,
149
- init_phasespace ,
150
- view (final_phasespace , :, i),
144
+ in_phasespace ,
145
+ view (out_phasespace , :, i),
151
146
)
152
147
end
153
148
return res
@@ -156,16 +151,16 @@ end
156
151
function _differential_cross_section (
157
152
proc_def:: AbstractScatteringProcess ,
158
153
model_def:: AbstractModelDefinition ,
159
- init_phasespace :: AbstractMatrix{T} ,
160
- final_phasespace :: AbstractVector{T} ,
154
+ in_phasespace :: AbstractMatrix{T} ,
155
+ out_phasespace :: AbstractVector{T} ,
161
156
) where {T<: QEDbase.AbstractFourMomentum }
162
- res = Vector {_base_component_type(init_phasespace )} (undef, size (init_phasespace , 2 ))
163
- for i = 1 : size (init_phasespace , 2 )
157
+ res = Vector {_base_component_type(in_phasespace )} (undef, size (in_phasespace , 2 ))
158
+ for i = 1 : size (in_phasespace , 2 )
164
159
res[i] = _differential_cross_section (
165
160
proc_def,
166
161
model_def,
167
- view (init_phasespace , :, i),
168
- final_phasespace ,
162
+ view (in_phasespace , :, i),
163
+ out_phasespace ,
169
164
)
170
165
end
171
166
return res
@@ -174,21 +169,21 @@ end
174
169
function _differential_cross_section (
175
170
proc_def:: AbstractScatteringProcess ,
176
171
model_def:: AbstractModelDefinition ,
177
- init_phasespace :: AbstractMatrix{T} ,
178
- final_phasespace :: AbstractMatrix{T} ,
172
+ in_phasespace :: AbstractMatrix{T} ,
173
+ out_phasespace :: AbstractMatrix{T} ,
179
174
) where {T<: QEDbase.AbstractFourMomentum }
180
- res = Matrix {_base_component_type(init_phasespace )} (
175
+ res = Matrix {_base_component_type(in_phasespace )} (
181
176
undef,
182
- size (init_phasespace , 2 ),
183
- size (final_phasespace , 2 ),
177
+ size (in_phasespace , 2 ),
178
+ size (out_phasespace , 2 ),
184
179
)
185
- for init_idx = 1 : size (init_phasespace , 2 )
186
- for final_idx = 1 : size (final_phasespace , 2 )
180
+ for init_idx = 1 : size (in_phasespace , 2 )
181
+ for final_idx = 1 : size (out_phasespace , 2 )
187
182
res[init_idx, final_idx] = _differential_cross_section (
188
183
proc_def,
189
184
model_def,
190
- view (init_phasespace , :, init_idx),
191
- view (final_phasespace , :, final_idx),
185
+ view (in_phasespace , :, init_idx),
186
+ view (out_phasespace , :, final_idx),
192
187
)
193
188
end
194
189
end
200
195
_total_cross_section(
201
196
proc_def::AbstractScatteringProcess,
202
197
model_def::AbstractModelDefinition,
203
- init_phasespace ::AbstractVector{T},
198
+ in_phasespace ::AbstractVector{T},
204
199
) where {T<:QEDbase.AbstractFourMomentum} end
205
200
206
201
Interface function for the combination of scattering processes and physical models. Return the total cross section of a
@@ -214,7 +209,7 @@ check if the length of the passed initial phase spaces match number of incoming
214
209
215
210
```julia
216
211
217
- _total_cross_section(proc_def,model_def,init_phasespace ::AbstractMatrix{T})
212
+ _total_cross_section(proc_def,model_def,in_phasespace ::AbstractMatrix{T})
218
213
219
214
```
220
215
@@ -234,11 +229,11 @@ function _total_cross_section end
234
229
function _total_cross_section (
235
230
proc_def:: AbstractScatteringProcess ,
236
231
model_def:: AbstractModelDefinition ,
237
- init_phasespace :: AbstractMatrix{T} ,
232
+ in_phasespace :: AbstractMatrix{T} ,
238
233
) where {T<: QEDbase.AbstractFourMomentum }
239
- res = Vector {_base_component_type(init_phasespace )} (undef, size (init_phasespace , 2 ))
240
- for i = 1 : size (init_phasespace , 2 )
241
- res[i] = _total_cross_section (proc_def, model_def, view (init_phasespace , :, i))
234
+ res = Vector {_base_component_type(in_phasespace )} (undef, size (in_phasespace , 2 ))
235
+ for i = 1 : size (in_phasespace , 2 )
236
+ res[i] = _total_cross_section (proc_def, model_def, view (in_phasespace , :, i))
242
237
end
243
238
return res
244
239
end
248
243
total_cross_section(
249
244
proc_def::AbstractScatteringProcess,
250
245
model_def::AbstractModelDefinition,
251
- init_phasespace ::Union{AbstractVector{T},AbstractMatrix{T}},
246
+ in_phasespace ::Union{AbstractVector{T},AbstractMatrix{T}},
252
247
) where {T<:QEDbase.AbstractFourMomentum}
253
248
254
249
Return the total cross section for a combination of a scattering process and a physical model evaluated on a given initial phase space.
@@ -259,12 +254,12 @@ This function will eventually call the respective interface function [`_total_cr
259
254
function total_cross_section (
260
255
proc_def:: AbstractScatteringProcess ,
261
256
model_def:: AbstractModelDefinition ,
262
- init_phasespace :: Union{AbstractVector{T},AbstractMatrix{T}} ,
257
+ in_phasespace :: Union{AbstractVector{T},AbstractMatrix{T}} ,
263
258
) where {T<: QEDbase.AbstractFourMomentum }
264
- size (init_phasespace , 1 ) == number_incoming_particles (proc_def) || throw (
259
+ size (in_phasespace , 1 ) == number_incoming_particles (proc_def) || throw (
265
260
DimensionMismatch (
266
- " The number of momenta in the initial phasespace <{length(init_phasespace )}> does not match the number of incoming particles of the process <{number_incoming_particles(proc_def)}>." ,
261
+ " The number of momenta in the initial phasespace <{length(in_phasespace )}> does not match the number of incoming particles of the process <{number_incoming_particles(proc_def)}>." ,
267
262
),
268
263
)
269
- return _total_cross_section (proc_def, model_def, init_phasespace )
264
+ return _total_cross_section (proc_def, model_def, in_phasespace )
270
265
end
0 commit comments