33 PhaseSpace Class
44################
55
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
88N=10 number of particles in the Final state. Most of the PhaseSpace class
99methods can work on both ``HOST `` and ``DEVICE ``. The number of particles is
1010associated with suffix with the class name.
1111
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 :
1414
1515- Constructor with mother mass and N number of daughter masses.
1616
@@ -20,11 +20,11 @@ to instantiate the PhaseSpace class:
2020
2121 vec4 = hypy.Vector4R(5.2795 , 0.0 , 0.0 , 0.0 )
2222 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.
2525
2626
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
2828or a phase-space given a range of mother particles and an output range.
2929
3030.. code-block :: python
@@ -53,7 +53,7 @@ or a phase-space given a range of mother particles and an output range.
5353 mothers[4 ] = (3.4406218104833015 , - 0.16339927010014546 , 1.363729549941791 , 0.6005257912194031 )
5454
5555 phsp2 = hypy.PhaseSpace2(3.0969 , [0.1056583745 , 0.1056583745 ])
56- container = hypy.host_events_2(5 )
56+ grand_daughter = hypy.host_events_2(5 )
5757 phsp2.GenerateOnhost(mothers, grand_daughter)
5858
5959 for i in grand_daughter: print (i)
@@ -86,18 +86,18 @@ of a functor over the phase-space given a list of mother particles.
8686 print (tup[1 ]) # sqrt of variance
8787
8888
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
9090and calculate the ``mean `` and ``sqrt(variance) ``.
9191
9292The ``EvaluateOnhost `` and ``EvaluateOndevice `` evaluates a functor over the passed one mother particle or the list
9393of mother particles.
9494
9595
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 ]_.
9898
9999
100- .. [#f1 ] The list of PhaseSpace classes
100+ .. [#f1 ] The list of PhaseSpace classe implementations
101101
102102 - ``PhaseSpace2 `` Generate the phase-space with 2 particles. Syntax:
103103
@@ -136,7 +136,7 @@ by PhaseSpace Events classes can be found on [#f2]_.
136136 - p = hypy.PhaseSpace10(mass, [10 daughter masses])
137137
138138
139- .. [#f2 ] The method list for PhaseSpace classes
139+ .. [#f2 ] The list of methods for the PhaseSpace classes
140140
141141 - ``GetSeed `` Get the seed. Syntax:
142142
@@ -168,7 +168,7 @@ by PhaseSpace Events classes can be found on [#f2]_.
168168 - p.AverageOndevice(hypy.device_vector_float4& mothers, functor)
169169
170170 - ``EvaluateOnhost `` Evaluate a function over the given particle or list of particles:
171-
171+ 1
172172 - p.EvaluateOnhost(vector4R, hypy.host_vector_float2& result, functor)
173173 - p.EvaluateOnhost(hypy.host_vector_float4& mothers, hypy.host_vector_float2& result, functor)
174174
0 commit comments