3
3
PhaseSpace Class
4
4
################
5
5
6
- Ths class implements the phase-space Monte Carlo simulation where N is the number
7
- of particles in the Final state. Currently PhaseSpace class supports up-to
6
+ This class implements the phase-space Monte Carlo event generation where N is the number
7
+ of particles in the final state. Currently PhaseSpace class supports up-to
8
8
N=10 number of particles in the Final state. Most of the PhaseSpace class
9
9
methods can work on both ``HOST `` and ``DEVICE ``. The number of particles is
10
10
associated with suffix with the class name.
11
11
12
- This class is a wrapper of C++ PhaseSpace class. The PhaseSpace class one constructor
13
- to instantiate the PhaseSpace class :
12
+ This class is the wrapper for the C++ PhaseSpace class. The PhaseSpace class contains one constructor
13
+ to instantiate it :
14
14
15
15
- Constructor with mother mass and N number of daughter masses.
16
16
@@ -20,11 +20,11 @@ to instantiate the PhaseSpace class:
20
20
21
21
vec4 = hypy.Vector4R(5.2795 , 0.0 , 0.0 , 0.0 )
22
22
p = hypy.PhaseSpace4(vec4.mass(), [3.096916 , 0.493677 , 0.13957018 , 0.0195018 ])
23
- # This will construct the PhaseSpace object with the mass provided by the vector4R
24
- # class and the exactly 4 daughter masses in the list.
23
+ # This will construct the PhaseSpace object with the mass of the decaying particle provided by the vector4R
24
+ # class and with the 4 daughter masses in the list.
25
25
26
26
27
- The PhaseSpace classes provides the method to Generate a phase-space given a mother particle and an output range
27
+ The PhaseSpace classes provides a method to generate a phase-space decay given a mother particle and an output range
28
28
or a phase-space given a range of mother particles and an output range.
29
29
30
30
.. code-block :: python
@@ -53,7 +53,7 @@ or a phase-space given a range of mother particles and an output range.
53
53
mothers[4 ] = (3.4406218104833015 , - 0.16339927010014546 , 1.363729549941791 , 0.6005257912194031 )
54
54
55
55
phsp2 = hypy.PhaseSpace2(3.0969 , [0.1056583745 , 0.1056583745 ])
56
- container = hypy.host_events_2(5 )
56
+ grand_daughter = hypy.host_events_2(5 )
57
57
phsp2.GenerateOnhost(mothers, grand_daughter)
58
58
59
59
for i in grand_daughter: print (i)
@@ -86,18 +86,18 @@ of a functor over the phase-space given a list of mother particles.
86
86
print (tup[1 ]) # sqrt of variance
87
87
88
88
89
- Like generators, the Average on method also can accept the list of mother particle instead of one mother particle
89
+ Like generators, the AverageOn method also can accept the list of mother particle instead of one mother particle
90
90
and calculate the ``mean `` and ``sqrt(variance) ``.
91
91
92
92
The ``EvaluateOnhost `` and ``EvaluateOndevice `` evaluates a functor over the passed one mother particle or the list
93
93
of mother particles.
94
94
95
95
96
- The complete list of the classes in the PhaseSpace can be found on [#f1 ]_ and complete method list supported
97
- by PhaseSpace Events classes can be found on [#f2 ]_.
96
+ The complete list of class implementations can be found at [#f1 ]_ and the complete list of methods supported
97
+ can be found at [#f2 ]_.
98
98
99
99
100
- .. [#f1 ] The list of PhaseSpace classes
100
+ .. [#f1 ] The list of PhaseSpace classe implementations
101
101
102
102
- ``PhaseSpace2 `` Generate the phase-space with 2 particles. Syntax:
103
103
@@ -136,7 +136,7 @@ by PhaseSpace Events classes can be found on [#f2]_.
136
136
- p = hypy.PhaseSpace10(mass, [10 daughter masses])
137
137
138
138
139
- .. [#f2 ] The method list for PhaseSpace classes
139
+ .. [#f2 ] The list of methods for the PhaseSpace classes
140
140
141
141
- ``GetSeed `` Get the seed. Syntax:
142
142
@@ -168,7 +168,7 @@ by PhaseSpace Events classes can be found on [#f2]_.
168
168
- p.AverageOndevice(hypy.device_vector_float4& mothers, functor)
169
169
170
170
- ``EvaluateOnhost `` Evaluate a function over the given particle or list of particles:
171
-
171
+ 1
172
172
- p.EvaluateOnhost(vector4R, hypy.host_vector_float2& result, functor)
173
173
- p.EvaluateOnhost(hypy.host_vector_float4& mothers, hypy.host_vector_float2& result, functor)
174
174
0 commit comments