<chapter name="Beam Remnants"> 
 
<h2>Beam Remnants</h2> 
 
<h3>Introduction</h3> 
 
The <code>BeamParticle</code> class contains information on all partons 
extracted from a beam (so far). As each consecutive multiparton interaction 
defines its respective incoming parton to the hard scattering a 
new slot is added to the list. This information is modified when 
the backwards evolution of the spacelike shower defines a new 
initiator parton. It is used, both for the multiparton interactions 
and the spacelike showers, to define rescaled parton densities based 
on the <ei>x</ei> and flavours already extracted, and to distinguish 
between valence, sea and companion quarks. Once the perturbative 
evolution is finished, further beam remnants are added to obtain a 
consistent set of flavours. The current physics framework is further 
described in <ref>Sjo04</ref>. 
 
<p/> 
The introduction of <aloc href="MultipartonInteractions">rescattering</aloc> 
in the multiparton interactions framework further complicates the 
processing of events. Specifically, when combined with showers, 
the momentum of an individual parton is no longer uniquely associated 
with one single subcollision. Nevertheless the parton is classified 
with one system, owing to the technical and administrative complications 
of more complete classifications. Therefore the addition of primordial 
<ei>kT</ei> to the subsystem initiator partons does not automatically 
guarantee overall <ei>pT</ei> conservation. Various tricks are used to 
minimize the mismatch, with a brute force shift of all parton 
<ei>pT</ei>'s as a final step. 
 
<p/> 
Much of the above information is stored in a vector of 
<code>ResolvedParton</code> objects, which each contains flavour and 
momentum information, as well as valence/companion information and more. 
The <code>BeamParticle</code> method <code>list()</code> shows the 
contents of this vector, mainly for debug purposes. 
 
<p/> 
The <code>BeamRemnants</code> class takes over for the final step 
of adding primordial <ei>kT</ei> to the initiators and remnants, 
assigning the relative longitudinal momentum sharing among the 
remnants, and constructing the overall kinematics and colour flow. 
This step couples the two sides of an event, and could therefore 
not be covered in the <code>BeamParticle</code> class, which only 
considers one beam at a time. 
 
<p/> 
The methods of these classes are not intended for general use, 
and so are not described here. 
 
<p/> 
In addition to the parameters described on this page, note that the 
choice of <aloc href="PDFSelection">parton densities</aloc> is made 
in the <code>Pythia</code> class. Then pointers to the pdf's are handed 
on to <code>BeamParticle</code> at initialization, for all subsequent 
usage. 
 
<h3>Primordial <ei>kT</ei></h3> 
 
The primordial <ei>kT</ei> of initiators of hard-scattering subsystems 
are selected according to Gaussian distributions in <ei>p_x</ei> and 
<ei>p_y</ei> separately. The widths of these distributions are chosen 
to be dependent on the hard scale of the central process and on the mass 
of the whole subsystem defined by the two initiators: 
<eq> 
sigma = (sigma_soft * Q_half + sigma_hard * Q) / (Q_half + Q) 
  * m / (m_half + m) 
</eq> 
Here <ei>Q</ei> is the hard-process renormalization scale for the 
hardest process and the <ei>pT</ei> scale for subsequent multiparton 
interactions, <ei>m</ei> the mass of the system, and 
<ei>sigma_soft</ei>, <ei>sigma_hard</ei>, <ei>Q_half</ei> and 
<ei>m_half</ei> parameters defined below. Furthermore each separately 
defined beam remnant has a distribution of width <ei>sigma_remn</ei>, 
independently of kinematical variables. 
 
<flag name="BeamRemnants:primordialKT" default="on"> 
Allow or not selection of primordial <ei>kT</ei> according to the 
parameter values below. 
</flag> 
 
<parm name="BeamRemnants:primordialKTsoft" default="0.5" min="0."> 
The width <ei>sigma_soft</ei> in the above equation, assigned as a 
primordial <ei>kT</ei> to initiators in the soft-interaction limit. 
</parm> 
 
<parm name="BeamRemnants:primordialKThard" default="2.0" min="0."> 
The width <ei>sigma_hard</ei> in the above equation, assigned as a 
primordial <ei>kT</ei> to initiators in the hard-interaction limit. 
</parm> 
 
<parm name="BeamRemnants:halfScaleForKT" default="1." min="0."> 
The scale <ei>Q_half</ei> in the equation above, defining the 
half-way point between hard and soft interactions. 
</parm> 
 
<parm name="BeamRemnants:halfMassForKT" default="1." min="0."> 
The scale <ei>m_half</ei> in the equation above, defining the 
half-way point between low-mass and high-mass subsystems. 
(Kinematics construction can easily fail if a system is assigned 
a primordial <ei>kT</ei> value higher than its mass, so the 
mass-dampening is intended to reduce some troubles later on.) 
</parm> 
 
<parm name="BeamRemnants:primordialKTremnant" default="0.4" min="0."> 
The width <ei>sigma_remn</ei>, assigned as a primordial <ei>kT</ei> 
to beam-remnant partons. 
</parm> 
 
<p/> 
A net <ei>kT</ei> imbalance is obtained from the vector sum of the 
primordial <ei>kT</ei> values of all initiators and all beam remnants. 
This quantity is compensated by a shift shared equally between 
all partons, except that the dampening factor <ei>m / (m_half + m)</ei> 
is again used to suppress the role of small-mass systems. 
 
<p/> 
Note that the current <ei>sigma</ei> definition implies that 
<ei>&lt;pT^2&gt; = &lt;p_x^2&gt;+ &lt;p_y^2&gt; = 2 sigma^2</ei>. 
It thus cannot be compared directly with the <ei>sigma</ei> 
of nonperturbative hadronization, where each quark-antiquark 
breakup corresponds to <ei>&lt;pT^2&gt; = sigma^2</ei> and only 
for hadrons it holds that <ei>&lt;pT^2&gt; = 2 sigma^2</ei>. 
The comparison is further complicated by the reduction of 
primordial <ei>kT</ei> values by the overall compensation mechanism. 
 
<flag name="BeamRemnants:rescatterRestoreY" default="off"> 
Is only relevant when <aloc href="MultipartonInteractions">rescattering</aloc> 
is switched on in the multiparton interactions scenario. For a normal 
interaction the rapidity and mass of a system is preserved when 
primordial <ei>kT</ei> is introduced, by appropriate modification of the 
incoming parton momenta. Kinematics construction is more complicated for 
a rescattering, and two options are offered. Differences between these 
can be used to explore systematic uncertainties in the rescattering 
framework.<br/> 
The default behaviour is to keep the incoming rescattered parton as is, 
but to modify the unrescattered incoming parton so as to preserve the 
invariant mass of the system. Thereby the rapidity of the rescattering 
is modified.<br/> 
The alternative is to retain the rapidity (and mass) of the rescattered 
system when primordial <ei>kT</ei> is introduced. This is made at the 
expense of a modified longitudinal momentum of the incoming rescattered 
parton, so that it does not agree with the momentum it ought to have had 
by the kinematics of the previous interaction.<br/> 
For a double rescattering, when both incoming partons have already scattered, 
there is no obvious way to retain the invariant mass of the system in the 
first approach, so the second is always used. 
</flag> 
 
<h3>Colour flow</h3> 
 
The colour flows in the separate subprocesses defined in the 
multiparton-interactions scenario are tied together via the assignment 
of colour flow in the beam remnant. This is not an unambiguous 
procedure, but currently no parameters are directly associated with it. 
However, a simple "minimal" procedure of colour flow only via the beam 
remnants does not result in a scenario in 
agreement with data, notably not a sufficiently steep rise of 
<ei>&lt;pT&gt;(n_ch)</ei>. The true origin of this behaviour and the 
correct mechanism to reproduce it remains one of the big unsolved issues 
at the borderline between perturbative and nonperturbative QCD. 
As a simple attempt, an additional step is introduced, wherein the gluons 
of a lower-<ei>pT</ei> system are merged with the ones in a higher-pT one. 
 
<flag name="BeamRemnants:reconnectColours" default="on"> 
Allow or not a system to be merged with another one. 
</flag> 
 
<parm name="BeamRemnants:reconnectRange" default="10.0" min="0." max="10."> 
A system with a hard scale <ei>pT</ei> can be merged with one of a 
harder scale with a probability that is 
<ei>pT0_Rec^2 / (pT0_Rec^2 + pT^2)</ei>, where 
<ei>pT0_Rec</ei> is <code>reconnectRange</code> times <ei>pT0</ei>, 
the latter being the same energy-dependent dampening parameter as 
used for multiparton interactions. 
Thus it is easy to merge a low-<ei>pT</ei> system with any other, 
but difficult to merge two high-<ei>pT</ei> ones with each other. 
</parm> 
 
<p/> 
The procedure is used iteratively. Thus first the reconnection probability 
<ei>P = pT0_Rec^2 / (pT0_Rec^2 + pT^2)</ei> of the lowest-<ei>pT</ei> 
system is found, and gives the probability for merger with the 
second-lowest one. If not merged, it is tested with the third-lowest one, 
and so on. For the <ei>m</ei>'th higher system the reconnection 
probability thus becomes <ei>(1 - P)^(m-1) P</ei>. That is, there is 
no explicit dependence on the higher <ei>pT</ei> scale, but implicitly 
there is via the survival probability of not already having been merged 
with a lower-<ei>pT</ei> system. Also note that the total reconnection 
probability for the lowest-<ei>pT</ei> system in an event with <ei>n</ei> 
systems becomes <ei>1 - (1 - P)^(n-1)</ei>. Once the fate of the 
lowest-<ei>pT</ei> system has been decided, the second-lowest is considered 
with respect to the ones above it, then the third-lowest, and so on. 
 
<p/> 
Once it has been decided which systems should be joined, the actual merging 
is carried out in the opposite direction. That is, first the hardest 
system is studied, and all colour dipoles in it are found (including to 
the beam remnants, as defined by the holes of the incoming partons). 
Next each softer system to be merged is studied in turn. Its gluons are, 
in decreasing <ei>pT</ei> order, inserted on the colour dipole <ei>i,j</ei> 
that gives the smallest <ei>(p_g p_i)(p_g p_j)/(p_i p_j)</ei>, i.e. 
minimizes the "disturbance" on the existing dipole, in terms of 
<ei>pT^2</ei> or <ei>Lambda</ei> measure (string length). The insertion 
of the gluon means that the old dipole is replaced by two new ones. 
Also the (rather few) quark-antiquark pairs that can be traced back to 
a gluon splitting are treated in close analogy with the gluon case. 
Quark lines that attach directly to the beam remnants cannot be merged 
but are left behind. 
 
<p/> 
The joining procedure can be viewed as a more sophisticated variant of 
the one introduced already in <ref>Sjo87</ref>. Clearly it is ad hoc. 
It hopefully captures some elements of truth. The lower <ei>pT</ei> scale 
a system has the larger its spatial extent and therefore the larger its 
overlap with other systems. It could be argued that one should classify 
individual initial-state partons by <ei>pT</ei> rather than the system 
as a whole. However, for final-state radiation, a soft gluon radiated off 
a hard parton is actually produced at late times and therefore probably 
less likely to reconnect. In the balance, a classification by system 
<ei>pT</ei> scale appears sensible as a first try. 
 
<p/> 
Note that the reconnection is carried out before resonance decays are 
considered. Colour inside a resonance therefore is not reconnected. 
This is a deliberate choice, but certainly open to discussion and 
extensions at a later stage, as is the rest of this procedure. 
 
<h3>Further variables</h3> 
 
<modeopen name="BeamRemnants:maxValQuark" default="3" min="0" max="5"> 
The maximum valence quark kind allowed in acceptable incoming beams, 
for which multiparton interactions are simulated. Default is that hadrons 
may contain <ei>u</ei>, <ei>d</ei> and <ei>s</ei> quarks, 
but not <ei>c</ei> and <ei>b</ei> ones, since sensible 
kinematics has not really been worked out for the latter. 
</modeopen> 
 
<modeopen name="BeamRemnants:companionPower" default="4" min="0" max="4"> 
When a sea quark has been found, a companion antisea quark ought to be 
nearby in <ei>x</ei>. The shape of this distribution can be derived 
from the gluon mother distribution convoluted with the 
<ei>g &rarr; q qbar</ei> splitting kernel. In practice, simple solutions 
are only feasible if the gluon shape is assumed to be of the form 
<ei>g(x) ~ (1 - x)^p / x</ei>, where <ei>p</ei> is an integer power, 
the parameter above. Allowed values correspond to the cases programmed. 
<br/> 
Since the whole framework is approximate anyway, this should be good 
enough. Note that companions typically are found at small <ei>Q^2</ei>, 
if at all, so the form is supposed to represent <ei>g(x)</ei> at small 
<ei>Q^2</ei> scales, close to the lower cutoff for multiparton interactions. 
</modeopen> 
 
<p/> 
When assigning relative momentum fractions to beam-remnant partons, 
valence quarks are chosen according to a distribution like 
<ei>(1 - x)^power / sqrt(x)</ei>. This <ei>power</ei> is given below 
for quarks in mesons, and separately for <ei>u</ei> and <ei>d</ei> 
quarks in the proton, based on the approximate shape of low-<ei>Q^2</ei> 
parton densities. The power for other baryons is derived from the 
proton ones, by an appropriate mixing. The <ei>x</ei> of a diquark 
is chosen as the sum of its two constituent <ei>x</ei> values, and can 
thus be above unity. (A common rescaling of all remnant partons and 
particles will fix that.) An additional enhancement of the diquark 
momentum is obtained by its <ei>x</ei> value being rescaled by the 
<code>valenceDiqEnhance</code> factor. 
 
<parm name="BeamRemnants:valencePowerMeson" default="0.8" min="0."> 
The abovementioned power for valence quarks in mesons. 
</parm> 
 
<parm name="BeamRemnants:valencePowerUinP" default="3.5" min="0."> 
The abovementioned power for valence <ei>u</ei> quarks in protons. 
</parm> 
 
<parm name="BeamRemnants:valencePowerDinP" default="2.0" min="0."> 
The abovementioned power for valence <ei>d</ei> quarks in protons. 
</parm> 
 
<parm name="BeamRemnants:valenceDiqEnhance" default="2.0" min="0.5" 
max="10."> 
Enhancement factor for valence diquarks in baryons, relative to the 
simple sum of the two constituent quarks. 
</parm> 
 
<flag name="BeamRemnants:allowJunction" default="on"> 
The <code>off</code> option is intended for debug purposes only, as 
follows. When more than one valence quark is kicked out of a baryon 
beam, as part of the multiparton interactions scenario, the subsequent 
hadronization is described in terms of a junction string topology. 
This description involves a number of technical complications that 
may make the program more unstable. As an alternative, by switching 
this option off, junction configurations are rejected (which gives 
an error message that the remnant flavour setup failed), and the 
multiparton interactions and showers are redone until a 
junction-free topology is found. 
</flag> 
 
</chapter> 
 
<!-- Copyright (C) 2014 Torbjorn Sjostrand --> 
