Skip to content

Commit 20b8bed

Browse files
committed
Commented the implementation of Decays in PhaseSpace
Signed-off-by: Deepanshu <deepanshu2017@gmail.com>
1 parent 4500c06 commit 20b8bed

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

docs/PhaseSpace.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ or a phase-space given a range of mother particles and an output range.
3838
ps.GenerateOndevice(vec, e_device) # Generate particle on device
3939
4040
41-
We can also generate the decay from list of mother particles instead of one mother particle.
42-
4341
.. code-block:: python
4442
4543
@@ -152,21 +150,18 @@ by PhaseSpace Events classes can be found on [#f2]_.
152150
153151
- p.GenerateOnhost(vector4R, event)
154152
- p.GenerateOnhost(hypy.host_vector_float4& mothers, event)
155-
- p.GenerateOnhost(vector4R, decays)
156-
- p.GenerateOnhost(hypy.host_vector_float4& mothers, decays)
157153
158154
- ``GenerateOndevice`` Generate the phase-space. Syntax:
159155
160156
- p.GenerateOndevice(vector4R, event)
161157
- p.GenerateOndevice(hypy.device_vector_float4& mothers, event)
162-
- p.GenerateOndevice(vector4R, decays)
163-
- p.GenerateOndevice(hypy.device_vector_float4& mothers, decays)
164158
165159
- ``AverageOnhost`` Get the mean and sqrt of variance. Syntax:
166160
167161
- p.AverageOnhost(vector4R, functor, number_of_entires)
168162
- p.AverageOnhost(hypy.host_vector_float4& mothers, functor)
169163
164+
- ``AverageOndevice`` Get the mean and sqrt of variance. Syntax:
170165
- ``AverageOndevice`` Get the mean and sqrt of variance. Syntax:
171166
172167
- p.AverageOndevice(vector4R, functor, number_of_entires)

include/PyPhaseSpace.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,18 @@ namespace hydra_python {
179179
AVERAGE_ON_EVENT(N, RNG, device) \
180180
\
181181
EVALUATE_ON_EVENT(N, RNG, host) \
182-
EVALUATE_ON_EVENT(N, RNG, device)\
183-
\
184-
GENERATE_ON_DECAY(N, RNG, host) \
185-
GENERATE_ON_DECAY(N, RNG, device) \
186-
;
182+
EVALUATE_ON_EVENT(N, RNG, device)
183+
;
184+
//\
185+
// GENERATE_ON_DECAY(N, RNG, host) \
186+
// GENERATE_ON_DECAY(N, RNG, device) \
187+
// ;
187188

188189
template <>
189190
void add_object<hydra::PhaseSpace<4, thrust::random::default_random_engine>>(
190191
pybind11::module& m) {
191192
using namespace pybind11::literals;
192-
//PHASESPACE_CLASS_BODY(1, thrust::random::default_random_engine);
193+
PHASESPACE_CLASS_BODY(1, thrust::random::default_random_engine);
193194
PHASESPACE_CLASS_BODY(2, thrust::random::default_random_engine);
194195
PHASESPACE_CLASS_BODY(3, thrust::random::default_random_engine);
195196
PHASESPACE_CLASS_BODY(4, thrust::random::default_random_engine);

0 commit comments

Comments
 (0)