Abstract
\(\uptau \)-leptons produced in pp collisions allow to measure Standard Model parameters and offer probes for New Physics. The TauSpinner program can be used to modify spin (or production matrix elements) effects in any \(\uptau \) sample. It relies on the kinematics of outgoing particles: \(\uptau \) lepton(s) (also \(\upnu _\uptau \) in case of W-mediated processes, optionally also four-moments of accompanying hard jets) and \(\uptau \) decay products. No other information is required from the event record. With calculated spin (or production/decay matrix element) weights, attributed on the event-by-event basis, modifications to the spin/decay/production features, is possible without the need for regenerating events. With TauSpinner algorithms, the experimental techniques developed over years since LEP 1 times are already used and extended for LHC applications. The purpose of the present publication is to systematically document physics basis of the program, and to overview its application domain and systematic errors.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
At LHC experiments, interest in \(\uptau \) leptons lies in the use of decays for the measurements of the properties of hard production processes, of the properties of resonances like W, Z or Higgs boson or in the searches for New Physics.
That is why, it was of interest to prepare a package called TauSpinner which can be used for changing with weights generated event samples including \(\uptau \) lepton decays. In many cases one can argue that such re-weighting of the sample with different physics assumptions may be of little use. Why not simply generate another series of events with different assumptions and compare distributions obtained from them? Indeed one can think re-weighting may bring little benefits and considerable risks, e.g. if the original sample has some sectors of the phase space biased by a particular technical cut-offs, or if it features zero matrix element on some hyper-surface within the phase space manifold. Arbitrary large weights may then appear. However, in several cases such disadvantages are balanced by the benefits. The weighted events sample is statistically correlated with the original one, thus the statistical errors affect the estimate of the differences only. Even larger CPU gain is expected, if the sample is processed with simulation of the detector effects. A full simulation of the detector response usually requires few orders of magnitude more CPU time than generation of physics events, or the calculation of events weight. Even the inclusion of Next to Leading Order (NLO) QCD effects in the generation can be CPU costly. Re-weighting to a different production process with the same final state (set of final states) can be also of interest. That is why the re-weighting algorithms of TauSpinner were prepared; simultaneously for \(\uptau \) lepton pair production and \(\uptau \) lepton decays. The weight could depend on ten or even more four momenta taken from kinematical configurations of stored events. The proposed implementation was widely used in experimental analyses at LHC; in the domains of Standard Model precision measurements [1,2,3], Higgs boson discovery and particle properties measurements [4,5,6,7,8] and searches for New Physics [9, 10].
At the beginning the TauSpinner project was focused on the longitudinal spin effects only [11]. It was used to calculate appropriate weights, to include spin effects into (or removed from) the generated events sample. With time, other options were added. In Ref. [12], an additional weight was introduced to manipulate the production process by adding or replacing the generated production process with an alternative one, including for example exchange of new intermediate particles. Reference [13] brought the possibility of introducing complete spin effects (longitudinal and transverse) in decays of intermediate Higgs bosons, and in Ref. [14] in the Drell–Yan process as well. The production process was modeled with lowest order \(2 \rightarrow 2\) matrix elements. In [15] the implementation of hard processes featuring the parton level matrix elements for production of \(\uptau \) lepton pairs and two jets was introduced. This was motivated by the experimental analyses becoming sensitive to Electroweak Higgs and the Z boson production in the fusion of WW or ZZ pairs. The question of systematic uncertainties due to the approximation where \(2 \rightarrow 2\) or \(2 \rightarrow 4\) matrix elements were used for the calculation of spin effects could be addressed since then. With time also more sophisticated options for treatment of spin effects were prepared. In Ref. [13] possibility to assign helicity to \(\uptau \) leptons was added. An approximation was used taking only the longitudinal components of density matrix for \(\uptau \) lepton pair production into account. In [14] one loop electroweak (EW) corrections in the Drell–Yan process became available for the weight calculation. Finally let us mention that available options allow to configure the TauSpinner algorithm to work on samples where only partial spin effects were taken into account and to correct them to full spin effects.
All these different options were introduced into TauSpinner because of user’s interest and under the pressure of time during converging very fast analyses of LHC Run I data by ATLAS and CMS experiments. That is why there is a need and the opportunity now to document them systematically and archive the code which will be used during the final LHC Run II analyses.
New applications of the TauSpinner are currently developed. The most recent example, where re-weighting techniques of TauSpinner were used for the precision measurement at LHC is the \(\sin ^2{\uptheta }_{eff}^{lep}\) measurement by the ATLAS Collaboration [16]. The TauSpinner algorithms served as a tool for introducing genuine EW and other loop corrections to the samples generated with EW leading order (LO) matrix elements.
Contrary to the previous papers we will emphasize here less phenomenological applications, but rather focus on common theoretical/phenomenological basis and relations between different options. Whenever possible we will address the point of the theoretical uncertainties of the proposed algorithms with references to our previous publications on TauSpinner.
The focus of the present paper is the documentation of the program. We do not repeat the physics reasons why options or particular approximations were then prepared. The principles of algorithms for the exact treatment of all spin effects for the \(\uptau \) leptons production and decay are known since a long time. Also, all approximations used by us and applied in other currently used programs of today were investigated already not later than a decade ago, see e.g. Ref. [17] of the final publication on the LEP precision measurements.
The general purpose Monte Carlo programs for LHC such as Pythia [18], Herwig [19] or Sherpa [20] feature \(\uptau \) lepton decays and corresponding spin effects, often without any approximations. This depend on the particular process of \(\uptau \) leptons in the final state. Re-weighting algorithms are available in these programs as well, see e.g. [21,22,23], even though they not necessarily rely on event record formats, presently used for storing events of LHC experiments, or are prepared for \(\uptau \) lepton physics. Such re-weighting options are usually not used in the LHC experiments analyses, for events which have been already generated and stored. The TauSpinner therefore offers as we will explain later with very little compromising on the physics precision, solution for reweighting.
Discussion, comparisons of different programs and their results for the modelling of spin effects in a multitude of high energy processes is of vital interest but remains out of the scope of the present publication. Fortunately we can refer to conference contributions and workshops, see e.g. [21, 24], with the caviat however that so far details on the \(\uptau \) lepton physics at LHC are largely shadowed by the interest and complexity of higher order QCD corrections. The extensive work like the one in Ref. [17] for LEP is to our knowledge at present not available. It should not be a surprise, Ref. [17] was published many years after LEP experiments stopped taking data. Likely it will be the case for LHC too and the comprehensive review will have to wait for the time of finalising precision measurements of the full Run II data.
Our paper is organized as follows. In Sect. 2 a theoretical basis for describing \(\uptau \) leptons in production and decay matrix elements is introduced. We define weights calculated by the program. Details of kinematics; definition of frames and transformations connecting them, used for calculation of hard parton-level amplitudes or cross section and for calculation of spin effects are given in Sects. 3 and 4. In the sub-sections we explain simplifications and resulting formulae for the differential cross section and spin correlations. Section 5 is devoted to the case when at parton level \(2 \rightarrow 2\) processes are used. Section 6 covers the calculation of density matrices for \(\uptau \) lepton decays; the polarimetric vectors. In Sect. 7 the case of \(2 \rightarrow 4\) processes is discussed and extensions to the algorithms which were needed for the case when the final state consists not only of a \(\uptau \) lepton pair, but also two additional jets are present are explained. Section 8 is devoted to general discussion how systematic uncertainties related to applications of TauSpinner weights can be estimated. The \(\uptau \) lepton decay library Tauola [25] providing some methods for TauSpinner is discussed as well. Section 9, closes the paper. The appendices recall all examples and applications which are included in the most recent release. So far, the documentation for these applications was scattered over several publication appendices and was thus not available in a systematic manner.
2 Theoretical basis
We start the discussion from presenting the exact formula on the cross section for \(pp \rightarrow \uptau \uptau \; X\) or \(pp \rightarrow \uptau \; \upnu _\uptau \; X\) processes, which requires knowledge of the whole process matrix elements, including decays of \(\uptau \) leptons. Considering about 20 \(\uptau \) lepton decay channels we end-up with 400 possible configurations for each \(\uptau \) lepton pair production process. The exact formula can therefore not be used in practice. Nonetheless, it can serve as a starting point for more practical ones, also those involving approximations. The formulae presented below for the \( H (Z/\upgamma ^*) \rightarrow \uptau \uptau \) can be applied also to the \(H^\pm (W^\pm ) \rightarrow \uptau \; \upnu _\uptau \) case. Then the second \(\uptau \) lepton of the formulae should be replaced by \(\upnu _\uptau \) and the part of formula which describes its decay dropped out.
2.1 Exact formula
The basic formula for the cross-section at the process \( pp \rightarrow \uptau ^+\uptau ^- X ; \uptau ^+ \rightarrow Y^+ {{\bar{\upnu }}}; \uptau ^-\rightarrow Y'^- \upnu \) reads:
where \({{\mathscr {M}}}\) denotes complete matrix element. Obviously terms due to average over initial state spin degrees of freedom and the flux factor are omitted. Because of the \(\uptau \) lepton width being very small, the \(\uptau \) lepton propagator module squared, to a perfect approximation, reduces to the Dirac \(\delta \) function in lepton virtuality and so the infinitesimal element in the kinematical phase space factorizes into \(d\Omega _{prod} \; d\Omega _{\uptau ^+} \; d\Omega _{\uptau ^-}\).
The formula (1) is not very convenient, because of the 400 distinct processes and matrix elements. Fortunately, as for the phase space parametrization, because of a narrow \(\uptau \) lepton width, matrix elements can be also expressed as the product of amplitudes for production and decays, summed over the \(\uptau \) spin projections (\(\uplambda =1,2\)) on at this point unspecified axes,
The cross-section can be expressed then with the rewritten exact formula, which thanks to Fierz identity decouples summations of the decay and production matrix elements. It introduces the correlations back in a form of a spin weight, \(wt_{spin}\)
This formula is the core of the TauSpinner algorithm, but not only. It is used in the Tauola \(\uptau \) decay library interface as foundation of the “after-burn” approach [25] and also in the KKMC Monte Carlo [26]. For details of the geometrical formulation and naming conventions Ref. [27] may be the most useful.
The spin weight \(wt_{spin}\) is dimensionless, and contains information of all spin effects transmitted from the production to the decay of \(\uptau \) leptons,
The indices i, j, of the adjoint (to 1/2 representations of fermions) rotation group representation run over t, x, y, z. The polarimetric vector \(h^i_{\uptau ^\pm }\) is calculated from the formula
where \(\upsigma ^i_{\uplambda , {\bar{\uplambda }}}\) stands for Pauli matrices. The \( h^i_{\uptau ^{\pm }}\) are normalized further to set their time-like component to 1, taking \(\frac{h^i_{\uptau ^{\pm }}}{h^t_{\uptau ^{\pm }}} \rightarrow h^i_{\uptau ^{\pm }} \). We will often use shortened form for the notation \(h^i_{\uptau }\) or \(h^i_{\pm }\). The superscript i will be dropped if we will have all components in mind.
The spin correlation matrix \(R_{i,j}\) is calculated from the formula
and also normalized to set its time-like component to 1, namely \( \frac{R_{i,j}}{R_{t,t}}\rightarrow R_{i,j} \).
Formula (4) is universal, it does not depend on the production process, and there are no approximations introduced. It features useful properties: \(0<wt_{spin}<4\) and weight average \(<wt_{spin}>=1\). The use of expressions (5) and (6) moves our description from the language of spin amplitudes toward the language of cross-sections and probability distributions; since amplitudes squared contribute only.
All complexities are in the calculation of \(R_{i,j}\) spin correlation matrix for production and \(h^i_{\uptau ^+} h^j_{\uptau ^-}\) polarimetric vectors for the decay of \(\uptau \) leptons. The \(R_{i,j}\) matrix describes the full spin correlation between the two \(\uptau \) leptons as well as the individual spin states of the \(\uptau \) leptons. The \(R_{i,j}\) depend on kinematics of the production process only, and \(h^i_{\uptau ^+} h^j_{\uptau ^-}\) respectively on the kinematics of \(\uptau ^+\) and \(\uptau ^-\) leptons. The explicit definition of the matrix \(R_{i,j}\) and vectors \(h^i_{\uptau ^+}\), \(h^j_{\uptau ^-}\) is rather lengthy and also well known, see Refs. [28, 29] for detailed definitions. It is decay channel dependent.
So far we discussed the case of a \(\uptau \) lepton pair in the final state, being the case of \(H \rightarrow \uptau \uptau \) or \(Z/\upgamma ^* \rightarrow \uptau \uptau \) processes. The case of only one \(\uptau \) lepton in the final state, that is the case of \(W^\pm \rightarrow \uptau \; \upnu _\uptau \) or \(H^\pm \rightarrow \uptau \; \upnu _\uptau \) is much simpler. The \(R_{i,j}\) matrix is replaced by the vector of components \(R_t,R_x,R_y,R_z= 1,0,0,\mp 1\) respectively for W and charged Higgs decays. The sum over two indices is thus reduced to the sum over one index only, the axis z is the direction of \(\uptau _\upnu \) from \(W^\pm /H^\pm \) decay as seen from the \(\uptau \) lepton rest-frame, and the spin weight read thus \(wt_{spin}= 1\pm h_{\uptau }^z\). The frames choices (presented in the next Section) for that case could have been simpler than for Z / H decays, no details of transverse directions are then needed.
2.2 Formula using parton level amplitudes
We do not have at our disposal matrix elements for the complete \(pp \rightarrow \uptau ^+\uptau ^- X\) process, but instead, following factorization theorems, we can represent the cross-section with the help of the parton level amplitudes, convoluted with the parton density functions (PDFs) and summed over all flavours (flavour configurations of incoming partons.Footnote 1 Thus, from formula (3) we obtain:
At this point we would like to decouple the calculation of \(wt_{spin}\) as much as possible from the PDFs. Note, that this is needed for the \(Z/\upgamma ^*\) mediated processes due to V and A for Z boson and \(\upgamma ^*\) couplings to fermions. For the H or W mediated processes the spin polarization state does not depend on flavours of incoming partons. For the \(Z/\upgamma ^*\) the \(R_{i,j}\) used in calculation of \(wt_{spin}\), is taken as the weighted average (with PDFs and production matrix elements squared) over all flavour configurations, as in the following eq.
No approximation is introduced in this way. The denominator of Eq. (8) cancels explicitly the corresponding factor of Eq. (7) (that is also the integrand of the following Eq. (9), first line).
To introduce the changes due to different spin effects in modified production process or the decay models, one can define in the generated sample (i.e. without re-generation of events) the weight WT, representing the ratio of the new to old cross-sections at each point in the phase space.
Equation (7) for modified cross-section, takes then the form
A variant of Eq. (9) is used in Tauola.Footnote 2
In general the weight WT factorizes into production (\(wt_{prod}\)), decay (\(wt_{{decay}}^{\uptau ^\pm }\)) and the ratio of spin correlation/polarization weights, new to the old one (\({wt_{spin\; new}}/{wt_{spin\; old}}\)):
The first three terms of the weight, represent modification of the matrix elements for production and decays
The combined weight as in Eq. (10), is nothing else than ratios of spin averaged amplitudes squared for the whole process; new to old. The eventual changes in the PDFs parametrizations should be taken into account in calculation of \(wt_{prod}\) and also in the ratio \({wt_{spin\; new}}/{wt_{spin\; old}}\) in formula (10). In case the production process or decay models are not modified, respectively \(wt_{prod}\) and \(wt_{decay}^{\uptau ^{\pm }}\) are equal to 1. The ratio of spin weights \(wt_{spin\; new}/wt_{spin\; old}\) allows for introduction of new spin effects. In case of originally unpolarized sample, the \(wt_{spin\; old} = 1\) and \(wt_{spin\; new}\) alone allows to introduce the desired spin effects.
Formula (9) can be rewritten to the equivalent form, which underlines the separation useful for the organization of the program, with segments for production of \(\uptau \) leptons, their decays and the spin weights. Let us recall that the spin weight \(wt_{spin}\) is the only part depending simultaneously on the production and decay kinematics. For the production of \(\uptau \) lepton pair it has always the form of Eq. (4). Ratio of the weight calculated from the new and old matrix elements has to be taken. Reorganizing some terms we can finally write:
where
All four components of the overall weight (10) are given separately to underline, wherever possible, their dependence on all or only sub-set of phase space dimensions. Note that for \(W^\pm /H^\pm \rightarrow \uptau \; \upnu _\uptau \) we have not prepared so far any option which allows to modify production processes.
3 WT calculations in TauSpinner
The formulae listed above are used in TauSpinner for the calculation of distinct components of WT, see Eq. (10). Let us start with the main weight of the spin effects, \(wt_{spin}\) defined by Eq. (4). With this weight, for the samples where spin effects of \(\uptau \) lepton production are absent, they can be inserted into decay distributions. Alternatively, its inverse can be used to remove spin effects from a sample where they are taken into account. As a building block of this weight introducing the dependence on the production process, the matrix \(R_{i,j}\), is given by the formula (8). The other weights, \(w_{prod}\) and \(w_{decay}^{\uptau ^\pm }\) are defined by formulae (11, 12).
It is useful to introduce the notation \(P^z_{\uptau }=R_{t,z}=R_{z,t}\), which represents the longitudinal polarization of the single \(\uptau \) lepton (if one integrates out possible configurations of the other \(\uptau \) lepton ). In usually sufficient approximation of helicity states, that is when transverse momenta of \(\uptau \) decay products are neglected, as is the case of ultra-relativistic \(\uptau \) leptons, the \(P^z_{\uptau }\) is the only non-trivial (dynamic dependent) element of matrix R. All others are equal to ±1, or can be set to 0. We will return to the details later.
In the calculation of \(wt_{spin}\) and \(w_{prod}\) the physics uncertainty depends on the accurateness of the factorization assumptions for separation of patron level matrix elements and PDFs and also on the choice of a particular PDFs parametrization. Nothing in principle would change if instead of \(2\rightarrow 2\) body production matrix element one would use the the ones for \(2\rightarrow 2+n\), where n denotes additional partons/jets or other particles (of summed spin-states). In addition to the choice of PDFs (eventually also model of underlying event interactions) for parton level matrix elements one has to make a careful choice of how hard scattering kinematics is reconstructed from information available in the event.
Calculation of \(wt_{decay}^{\uptau ^{\pm }}\) involves modeling of \(\uptau \) lepton decays only. This weight is useful in studies of the resulting systematic uncertainties. This part of the code is using function of the Tauola library.
We will return to these points later, but one can keep it in mind already now, while reading the following.
3.1 Kinematical frames
The components necessary for the WT weight are calculated in different frames. This is a correct approach as long as details of boosts and rotations connecting frames are meticulously followed. Also spin states of the \(\uptau \) leptons may be defined in different frames than four momenta of the hard process. Bremsstrahlung photons and properties of the matrix element in their presence, require a dedicated treatment.
The basic formula (1) can provide exact results in principle. In practice, we have to introduce approximations to adapt to the fact that matrix elements are calculated from the parton level amplitudes, and to the way how these amplitudes are reconstructed by the TauSpinner algorithm where only four momenta of outgoing \(\uptau \) leptons and partons can be used. The definition of quantization frames is an essential element of the arrangements, let us provide now the necessary details.
For calculating all components of the event weights (to prepare kinematical configurations of events necessary for that purpose) we define in total four frames (group of frames):
- A : :
-
The basic frame (starting point) for kinematic transformations and all other frame definitions.
The rest frame of the \(\uptau \) lepton pair is used (and not of \(\uptau \) lepton pair with the final state bremsstrahlung photons combined). Such choice is possible thanks to the properties of bremsstrahlung amplitudes. Emitted photons do not carry out the spin. This non-trivial observation is exploited also in Photos Monte Carlo phase space parametrization, see Refs. [30, 31]. The definition of the rest frame of the \(\uptau \) lepton pairs is completed with incoming partons set along the z-axis.
- \(A':\) :
-
The rest frame of the \(\uptau \) lepton pairs and the final state bremsstrahlung photons combined. Incoming partons are again set along the z-axis. This frame is used for calculating the production weight \(wt_{prod}\) and the spin correlation matrix \(R_{i,j}\); if no bremsstrahlung photons are present it is equivalentFootnote 3 to frame A. In every case we reconstruct \(x_1, x_2\), the arguments of the PDF function, from the virtuality M and the longitudinal to the beam direction component (\(p_L\)) of the intermediate state (sum of momenta of \(\uptau ^+\; \uptau ^-\; n\upgamma \)) momentum in lab frame. The center of mass energy of pp scattering is used to calculate \(x_1 x_2 \) through relations \(x_1 x_2 CMS_{ENE}^2 = M^2(\uptau ^+\; \uptau ^-\; n\upgamma )\), \((x_1-x_2)\) \(CMS_{ENE} = 2 p_L(\uptau ^+\; \uptau ^-\; n\upgamma )\). The \(n\upgamma \) is assumed to correspond to the final state bremsstrahlung associated with the \(\uptau \) lepton pair production and its momentum has to be taken into account, but only in the calculation of the virtuality for the intermediate \(Z/\upgamma ^*\) state in case of \(2\rightarrow 2\) amplitudes.Footnote 4 Note that \(A'\) is used for \(x_1, x_2 \) calculation only. The \(2\rightarrow 2\) hard process scattering angle is calculated in frame A.
- B : :
-
The rest frame of the \(\uptau \) lepton pairs, with \(\uptau \) leptons along the z-axis. It is used for common orientation of production and decay coordinate systems. In this frame the polarimetric vectors \(h_{\pm }\) are defined. Transformation \(A \rightarrow B \) requires rotation.
- \(C_{\uptau ^{\pm }}:\) :
-
The rest frames of individual \(\uptau \) leptons with the direction of the boost to \(\uptau \) lepton pair rest-frame along the z-axis. Transformation \(B \rightarrow C_{\uptau ^+}\) or \(C_{\uptau ^-}\) requires boost only.
- \(D_{\uptau ^{\pm }}:\) :
-
The rest frames of individual \(\uptau \) leptons, with \(\upnu _{\uptau }\) along the z-axis. It is used for the calculating decay weights. In fact in the frames \(D_{\uptau ^{\pm }}\) also the polarimetric vectors \(h_{\uptau ^{\pm }}\) are calculated and then rotated back to frame \(C_{\uptau ^{\pm }}\).
In Table 1, we summarize which frames are used for calculations of different variables and then to which frames they are boosted (rotated) before being used in formula (7). Let us stress that it is not only important to define all the frames of type \(A-D\) but also the Lorentz transformations between them.
The frame of type A is used for calculation of the hard process amplitudes. If only longitudinal components of spin density matrix are taken into account, we do not need to define in detail the transverse directions (quantization frame versors) with respect of \(\uptau \) lepton momenta, and control on the corresponding details of boost methods to the rest frames of \(\uptau \) leptons is not needed. However, the code of TauSpinner controls such details of the boosts, because it is prepared to handle also cases when the complete spin density matrix is used.
The frames of type B and of type C have common direction of the z-axis, also x- and y- axes coincide. Frame B is used for \(R_{i,j}\) calculation if transverse degrees of freedom are taken into account. Calculation of the spin weight, that is contraction of indices in \(wt_{spin} = \sum _{ij} R_{i,j}\) \( h^i_{\uptau ^+} h^j_{\uptau ^-}\), is performed in frames \(C_{\uptau ^+}\), \(C_{\uptau ^-}\). It enables control on transverse spin effects. Frames of type D are used for calculation of decay matrix elements and \(h^{i}_{\uptau ^+},h^{i}_{\uptau ^-} \) polarimetric vectors with methods from the Tauola library, see Ref. [29] for details.
Let us note that we have used such frames in many applications already at the time of LEP analyzes. They were useful for comparisons and tests. These choices once established can be easily modified whenever necessary, e.g. to fulfill the constraints of particular conventions of spin amplitude calculations, see e.g. in Ref. [27].
Let us comment on the possible future improvement of the definition of the frame A, to allow useful freedom of choice. At present in the TauSpinner the simplest possible ansatz is used in definition of lepton pair rest-frame A. For the frame A beam direction (necessary to define Born-level scattering angle), it is assumed that no jets of substantial \(p_T\) are present and \(p_T\) can be ignored. This can be improved without redoing the design of the above tree of frame definitions. The studies for matrix elements featuring one or two high \(p_T\) jets are already documented in Refs. [32, 33]. The corresponding modifications of the code were not yet introduced into TauSpinner, as there are no clear indications of their numerical importance, but it is a path for the possible forthcoming improvement.
3.2 Production weight \(wt_{prod}\) and spin correlation matrix \(R_{i,j}\)
The \(R_{i,j}\) matrix is not Lorentz invariant. In fact, its indices run over coordinates in two frames, \(C_{\uptau ^{+}}\) and \(C_{\uptau ^{-}}\). As input for matrix element calculation the four momenta of A frame are used. For details of relations between frames and elements used in weight calculations, see also Table 1.
For calculation of the production weight \(wt_{prod}\) and the spin correlation matrix \(R_{i,j}\), the centre-of-mass frame of the \(\uptau \) lepton pair with incoming partons being along the z-axis (frame of type A) is not the optimal one. It is nonetheless used if there is no interest in the transverse spin degrees of freedom. Frame of type B, with \(\uptau \) leptons along the z-axis, is more convenient and with the x and the y axes parallel to the ones of frames \(C_{\uptau ^{\pm }}\), represents the most convenient setup. In fact all these three frames B and \(C_{\uptau ^{\pm }}\) are used simultaneously for calculation of the spin weight of Eq. (4).
The kinematical frames for \(\uptau \) lepton pair production and \(\uptau \) decays need to be explicitly related by the set of Lorentz transformations with the frames used in matrix element calculations. Let us recall details in a form of algorithmic steps, which need to be performed on all decay products of \(\uptau \) leptons before calculation of \(R_{i,j}\) and \(h^{i/j}_{\uptau ^\pm }\) (for \(h^{i/j}_{\uptau ^\pm }\) further steps will be still needed):
-
Boost both \(\uptau \) leptons and their decay products from the laboratory frame to the rest-frame of \(\uptau \) lepton pair.
-
Rotate all to the frame, where the direction of incoming partons is along the z-axis (frame A).
-
Rotate so that \(\uptau \) leptons are set along the z-axis and incoming partons remain in the \(z-y\) plane (frames \(C_{\uptau ^\pm }\) have to be correlated with B by a boost along the z axis). These frames are used for \(R_{i,j}\) spin states definition too.
-
Presence of the final state bremsstrahlung from \(\uptau \) lepton pair brings complication, because the rest frame of the \(\uptau \) lepton pair is not the rest frame of the resonance which decayed into \(\uptau \) lepton pair. For the sake of kinematical transformations, frames A and B defined as above are used. However, for the calculation of matrix elements we use frame \(A'\), where effectively bremsstrahlung photons are absorbed into \(\uptau \) lepton momenta. For calculation of \(x_1, x_2\) we use the invariant mass, which can be easily calculated in frame \(A'\).
3.3 Decay weight \(wt_{decay}^{\uptau ^{\pm }}\) and polarimetric vectors \(h_{\uptau ^{\pm }}\)
The decay weight \(wt_{decay}^{\uptau ^{\pm }}\) and the polarimetric vectors \(h_{\uptau ^{\pm }}\) are calculated for each outgoing \(\uptau \) lepton in its rest frame, denoted as frame \(D_{\uptau ^{\pm }}\) (in this frame neutrino of \(\uptau \) lepton decay is along the z-axis). Lorentz transformations of the previous sub-section have to be supplemented with the one relating frames \(C_{\uptau ^{\pm }}\) with \(D_{\uptau ^{\pm }}\).
-
Boost all decay products along the z-axis to the rest frame of the \(\uptau ^{\pm }\) lepton (frames \(C_{\uptau ^{\pm }}\)).
-
Rotate again \(\uptau \) lepton daughters so that \(\uptau \) neutrino is along the z-axis (frames \(D_{\uptau ^{\pm }}\)).
-
Calculate in frames \(D_{\uptau ^{\pm }}\) polarimetric vectors \(h^i_{\uptau ^\pm }\), rotate them back from \(D_{\uptau ^{\pm }}\) to \(C_{\uptau ^{\pm }}\). Only then they can be contracted with \(R_{i,j}\) for \(wt_{spin}\) calculation.
Decay weights and polarimetric vectors for \(\uptau ^+\) and \(\uptau ^-\) are calculated in the frame \(D_{\uptau ^{\pm }}\), using code from Tauola. Tat is why \(\upnu _\uptau \) along the z-axis is required.
4 Exact and approximate spin weight \(wt_{spin}\)
Basic formula (3) of Sect. 2.1 is exact. Because of approximated calculations (introduction of parton level amplitudes) or as explained later in the section, to obtain a physical picture easier to interpret (valid in ultra-relativistic case only) we can introduce simplifications. No such simplification was introduced yet. Let us recall first that according to \(R_{i,j}\) and \(h_{\uptau ^{\pm }}^i\) definitions, \(R_{t,t}=1\) and \(h_{{\pm }}^t=1\) (we can use shorter notation \(h_{{\pm }}^i=h_{\uptau ^{\pm }}^i\)).
4.1 Neglecting \(m_\uptau ^2\) terms
With the choices of the kinematical frames as defined in Sect. 3.1 and neglecting \(m_\uptau ^2\) terms following the ultra-relativistic limit, one gets that \(R_{z,z} = sign = \pm 1\) (the sign depends on whether the decaying object is a scalar or a vector boson). Also non-diagonal terms \(R_{t,x}=0\), \(R_{t,y}=0\), \(R_{x,t}=0\), \(R_{y,t}=0\), \(R_{z,x}=0\), \(R_{z,y}=0\), \(R_{x,z}=0\), \(R_{y,z}=0\), independently whether the decay of spin zero (scalar) or spin one (vector) state is considered. Formula (4) reduces to:
or if notation of individual \(\uptau \) lepton longitudinal polarization \(P^z_{\uptau }\) is used (for Higgs decays \(P^z_{\uptau }=0\)),
Let us stress that the formulae (15, 16) are quantization frame dependent. One has to be careful especially with signs if the kinematical transformations, as explained in Sect. 3.1 are not followed. Distinct conventions for defining those frames are used in the literature.
4.2 Neglecting transverse spin correlations and spin state probabilities
A further approximation (not always used) to include longitudinal spin effects only, means that terms \(R_{i,j}\) are set to zero for \(i,j=x,y\). In general those terms can be large, but as they result in dependencies of transverse with respect to \(\uptau \) lepton direction components of \(\uptau \) lepton decay products momenta, they often do not lead to measurable effects and can be dropped.
With this approximation, formula (16) becomes
Using formula (17), one will be able to introduce probabilities for spin states \(p_\uptau ^z\) which will be defined later.
For the decay of a scalar resonance (e.g. Higgs) we define (equal) probabilities for \( \uptau \) pair configurations being left-right (\(+\)) or right-left (−). We rewrite formula (17) and decompose \(wt_{spin}\) into a sum of \(wt_{spin}^+\) and \(wt_{spin}^-\):
For the decay of a scalar into \(\uptau \) lepton pair, the spin state probability is \(p_{\uptau }^z=\frac{1}{2}\) (the subscript z denotes spin projection on the z axes of frames type C).
For the decay of a vector resonance, the probability \(p_{\uptau }^z\) depends on the intermediate boson virtuality and \(\uptau \) lepton direction, thus we can rewrite formula (17) as
Note that \(p_{\uptau }^z\) can be interpreted as the probability of creating first \(\uptau \) lepton of the pair in a spin state \((+)\) along the z direction, whereas \(P_{\uptau }^z\) as its longitudinal polarization. Obviously, from comparison of above Eqs. (17) and (19), following relation occurs:
which can be rewritten as
4.3 Longitudinal versus transverse spin correlations
In the formalism discussed above, there is a seemingly rather minor difference between the situations when the complete spin effects or only longitudinal ones are taken into account. The case of longitudinal spin effects only means that all \(R_{i,j}\) components are set to zero except \(R_{t,z}\), \(R_{z,t}\) and \(R_{t,t}=1\), \(R_{z,z} = \pm 1\); the sign depends on whether the decaying object is a scalar or a vector and \(R_{t,z}\) is equal to longitudinal \(\uptau \) lepton polarization \(P_{\uptau }^z\). No difference in the re-weighting algorithm is needed with this definition of \(R_{i,j}\). The transverse spin correlations are introduced with non-zero \(R_{x,x}\), \(R_{y,y}\) and off-diagonal \(R_{x,y}\), \(R_{y,x}\), without any modifications of the t and z components.
5 The \(2 \rightarrow 2\) parton level processes
The complete event weight WT is factorized into multiplicative components: production (\(wt_{prod}\)), decay (\(wt_{decay}^{\uptau ^\pm }\)) and spin correlation/polarization (\(wt_{spin}\)):
If the sample is polarized the last factor should read \(wt_{spin\; new}/wt_{spin\; old}\).
The implemented methods calculate internally a complete set of weights but as a default one, the spin correlation/polarization weight, as most often used in the applications is returned.Footnote 5 Other weights are returned by supplementary methods.Footnote 6
5.1 Production weight
The production weight \(wt_{prod}\) which is a sum over all configurations of \(\uptau \) leptons spin and flavours of incoming partons of matrix element squared multiplied by PDFs is calculated in frame \(A'\). The parton level angular kinematic configuration is usually taken in the A frame. The \(R_{i,j}\) are calculated in A or \(A'\) frame, except the case when transverse spin effects are taken into account and frame B has to be used.
5.2 Decay weights
Calculation of the decay weights \(wt_{decay}^{\uptau ^+}\) and \(wt_{decay}^{\uptau ^-}\) is a by-product of polarimetric vectors of \(h^i_{\uptau ^+}\) and \(h^j_{\uptau ^-}\) calculation. This calculation is performed in frames \(D_{\uptau ^\pm }\). The methods of Tauola used for \(h^j_{\uptau ^-}\) calculation, provide at the same time decay matrix elements squared summed over the \(\uptau \) lepton spin which are used in \(wt_{decay}^{\uptau ^\pm }\).
5.3 Spin correlation matrix \(R_{i,j}\)
In most cases the spin correlation matrix \(R_{i,j}\) is calculated in frame A or \(A'\). Frame B is used if transverse spin effects are taken into account.
Calculations of the production weight and of spin correlation matrix \(R_{i,j}\) are related with each other. It is important to realize that in the collinear approximation
where \(\upsigma ^\pm _{prod}\) denotes the sum of matrix element squared multiplied by PDFs, and the first \(\uptau \) lepton spin is ±. In this approximation and for Eq. (23) the difference between frames A and \(A'\) can be ignored.
Note, that the weight \(wt_{prod}\) is obtained as a by-product of \(R_{i,j}\) calculation, in fact of its \(R_{t,z}\), \(R_{z,t}\) components.Footnote 7 In case of using directly the formula for Born cross-section with vector/axial couplings and \(Z/\upgamma ^*\) propagators (implemented in TauSpinner) this connection is less transparent.
5.3.1 Case of a spin zero resonance
If the \(\uptau \) lepton mass is small in comparison to the \(\uptau \) lepton pair virtuality then \(R_{z,z} = -1\). For the scalar Higgs boson holds \(R_{x,x} = R_{y,y} = 1\) and \(R_{x,x} = R_{y,y} = -1\) for the pseudo-scalar, while the mixed scalar-pseudoscalar configuration the formula includes scalar-pseudoscalar mixing angle and non-zero off-diagonal \(R_{x,y}, R_{y,x}\) terms. This extension is important for the simulation of Higgs CP parity signatures.
5.3.2 Case of a spin one resonance (Drell–Yan)
For a neutral vector boson \(R_{z,z} = 1\), if the \(\uptau \) lepton mass is small in comparison of \(\uptau \) lepton pair virtuality. The non-zero off-diagonal terms are
In the present implementation, if the EW corrections are neglected the transverse spin correlations for neutral vector boson/photon exchange are neglected as well and \(R_{x,x} = R_{y,y} = R_{x,y} = R_{y,x} = 0\). We are simply missing the code for the Born level expressions taking into account the transverse spin effects. Fortunately, if EW corrections calculation is activated, thanks SANC library [35] tables ported from the Tauola, not only the first order EW corrections become available, but the transverse spin effects as well.
5.3.3 Case of a spin two resonance X (non SM Higgs)
In this case \(R_{z,z} = 1\) as in the Drell–Yan case. The non-zero off-diagonal terms are
the difference to Drell–Yan case is in \( p_{\uptau }^z\) angular dependence (defined in \(\uptau \) lepton pair rest frame B). It is described by spherical polynomial of the fourth order and not of the second order. This case was introduced in the paper [12] and corresponding example of the TauSpinner application.
5.4 Calculating the \(wt_{spin}\) weight
For the \(wt_{spin}\) calculation formulae (15, 16) are available. However, unless required differently by the user, the default version is to omit transverse spin correlations, i.e. \( R_{x,x} = R_{y,y} = R_{x,y} = R_{y,x} = 0\), corresponding to formula (17). In the following we will exploit components of \(R_{i,j}\) for the individual cases prepared in the previous sub-section.
5.4.1 Case a of spin zero resonance (scalar Higgs)
where \(sign = -1\).
5.4.2 Case a of spin two resonance X (non SM Higgs)
where \(sign = +1\). Note, that this form depends on Born level cross section provided (by a pointer) at the execution time with the user function. It is used in calculating \(R_{i,j}\). At present only \(P_\uptau ^z\) is non-zero in implemented examples.
5.4.3 Case a of spin one resonance (Drell–Yan)
where \(sign = +1\) and \(R_{1,1}^{EW}\), \(R_{1,2}^{EW}\), \(R_{2,1}^{EW}\) and \(R_{2,2}^{EW}\) denote the averaged (with the production cross-section) pre-tabulated transverse spin correlations terms, calculated using \({\mathscr {O}}(\upalpha )\) EW corrections from the SANC program.Footnote 8 \( R_{x,x} = R_{y,y} = R_{x,y} = R_{y,x} = 1\) should be set, in case we want to use \({\mathscr {O}}(\upalpha )\) EW corrections from SANC. Or one can also set some of them to 1 and the remaining ones to 0 in case one is interested in studying only some components of transverse-spin effects.
The \( R_{x,x}, R_{y,y}, R_{x,y}, R_{y,x} \) are used directly as transverse components for \(R_{i,j}\) in case of non-standard model calculation. If one is not interested in the actual size of transverse effects, as predicted by \({\mathscr {O}}(\upalpha )\) EW corrections, one can also modify hard coded pre initialized to zero values, or use non SM Higgs options discussed previously.
Generated Drell–Yan samples may feature only partial spin effects, e.g. just the \( (1.0 + sign \cdot h^{z}_{+} h^{z}_{-})\) part of the spin effects. Then \(wt_{spin}\) has to take this into account, the denominator of such form has to be introduced, as to remove this partial effect. The numerator given in Eq. (28) will introduce the required (usually full) spin effect. Let us list the formulae for the typical cases:
-
If in the generated sample spin correlations between two \(\uptau \) leptons are included but no other effects, the weight takes the form:
$$\begin{aligned} wt_{spin}^{no\ pol} = \frac{wt_{spin}}{ 1.0 + sign \cdot h^{z}_{+} h^{z}_{-} }. \end{aligned}$$(29)Such choice for the sample introduces dominant spin effect (the correlation), which at the same time is free of systematic errors. It is a consequence of the spin 1 state decaying to \(\uptau \) lepton pair.
-
If in the generated sample spin correlations and partial (no angular dependence and no incoming quark flavour dependence) polarization effects are included, the weight should take the form:
$$\begin{aligned}&wt_{spin}^{no\ angular} \nonumber \\&\quad = \frac{wt_{spin}}{ 1 + sign \cdot h^{z}_{+} h^{z}_{-} + P^{z, part}_{\uptau } h^{z}_{+} + P^{z, part}_{\uptau } h^{z}_{-}} \end{aligned}$$(30)where the denominator again represents spin correlations present in the sample. One can expect the \(P^{z, part}_{\uptau }=P^{z}_{\uptau }(s,\cos (\uptheta =0))\) calculated for incoming electrons being the easiest way to obtain an average correction. This approach reproduces correctly the average individual \(\uptau \) lepton polarization for the events of \(\uptau \) lepton pair virtuality close to the Z boson peak. Such choice for the generated sample could be motivated as follows. It features all spin effects except those which depend on the incoming partons PDFs, thus it is free of related systematic uncertainties, making it convenient for studying systematic uncertainty from PDFs. The corrections introduced with \(wt_{spin}^{no\ angular}\) are even smaller than those of \(wt_{spin}^{no\ pol}\).
5.5 Use of spin correlation/polarization weight in special cases
If the generated sample feature spin effects then the \(wt_{spin}\) of formula (3) can be used as weight \( WT = 1/wt_{spin}\) to remove spin effects.
The cases when only a part of spin effects is taken into account, like in Ref. [36], more specifically the spin correlation but no effects due to vector and axial couplings to the intermediate \(Z/\upgamma ^{*}\) state, can be corrected with the help of the appropriate weights as in examples for Eqs. (29, 30). On the other hand, such partial spin effects can be also removed completely, e.g. for consistency checks. The case, when spin correlations and average \(\uptau \) lepton polarization are present, but angular dependence is absent, can be treated as usual with Eq. (10).
5.6 Born cross-section
Until now, we were expressing formulae in the language of spin amplitudes and spin weights (spin correlation matrix \(R_{i,j}\)). However, often cross-sections calculated at the parton level are available for the explicit helicity states of the outgoing \(\uptau \) leptons. Several such lowest order formulae for calculating cross-sections of an analytical form are implemented in the code of the TauSpinner itself, or of its examples. Some of them represent the legacy code, ported from different projects, others were coded for the TauSpinner application as benchmarks on the EW parameters setting and are used in the published tests. For completeness of the documentation we describe them in Appendix B.9.
6 Polarimetric vectors, polarization and helicity states
Calculation of the polarimetric vectors \(h_{\uptau }\) is performed using the code from the Tauola library. The conventions is that \(h_{\uptau } = (h_{\uptau }^x, h_{\uptau }^y, h_{\uptau }^z, h_{\uptau }^t)\) (i.e. the last component is time-like) following the convention used in FORTRAN. The same FORTRAN code calculates decay matrix element squared, which are returned as well, as auxiliary information.
Depending on which decay channel is present the calculation is performed using the respective functions from the Tauola library. Not for all \(\uptau \) lepton decay channels, see Table 2, \(h_\uptau \) is nonetheless calculated. About 97.5% of the decay width is covered, i.e. the polarimetric vector h is calculated, otherwise its spatial components are setFootnote 9 to 0.
To calculate decay matrix elements, \(\uptau \) lepton decay products have to be boosted into the \(\uptau \) lepton rest-frame: we first boost all products to the \(\uptau \) lepton pair rest frame, then rotate from A to B so that a \(\uptau \) lepton of Z / H decay is along the z-axis. An intermediate step is to boost from the \(\uptau \) lepton pair rest-frame to \(C_\uptau \), followed by a rotation to have the neutrino from \(\uptau \) lepton decay along the z-axis (\(D_\uptau \) frame). The rotation angles \(\phi _2\), \({\uptheta }_2\) are stored for rotating back of the polarimetric vector to the \(\uptau \) lepton rest-frame B or \(C_\uptau \).
As a by-product of the \(h_\uptau \) calculations, the \(wt_{decay}^{\uptau ^\pm }\) of Eq. (12) is obtained.
6.1 Longitudinal polarization
The calculation of components of the \(R_{i,j}\) spin density matrix in the ultra-relativistic limit is then equivalent to the calculation of modules for matrix elements of \(\uptau \) lepton pair production in given helicity configurations. Depending on the approach, either \(p^z_{\uptau }\) or \(P^z_{\uptau }\) is calculated from the other one, using respectively formula (21) or (20). The case when EW effects are included, technically differs only slightly,Footnote 10 despite the fact that then the transverse spin effects can be taken into account. In all cases the relation \(R_{t,z}= P^z_{\uptau }\) holds, no pre-tabulated EW results are used for this component of \(R_{i,j}\). This can be easily activated though, e.g. if results for large s are needed. Around the Z peak presently implemented EW library may be less suitable. Formula (19) is used for attribution of helicity states.
6.1.1 Case of a spin = 0 resonance (scalar (Higgs))
In \(H \rightarrow \uptau \uptau \) lepton decays the probability of the helicity state denoted \(p^z_{\uptau }\) is equal to 0.5 for \( P^z_{\uptau } = 1\) and for \( P^z_{\uptau } = -1\) as well, see Table 3.
6.1.2 Case of spin = 1 resonance (Drell–Yan)
In \(Z/\upgamma ^* \rightarrow \uptau \uptau \) lepton decays the probability of the helicity state denoted \(p^z_{\uptau }\) is a function of the \(\uptau \) lepton scattering angle, \(\uptheta \), and the center of mass energy squared of the hard process, s. It is true at Born level, and in the ultra-relativistic limit [36].
Note that the rest frame of the production process and the rest frame of the \(\uptau \) lepton pair might not be the same due to photon bremsstrahlung in the \(\uptau \) lepton pair production vertex. We have discussed this already in Sect. 3.1, but let us complete some more technical details now.
The center-of-mass system of \(\uptau \) lepton pairs is used for calculating \( \cos \uptheta \) and the direction of incoming partons is set along z-direction in the laboratory frame. The following definitions are used:
where \( {b}^{+} \), \( {b}^{-}\) denote 3-vectors of incoming beams, in the laboratory frame defined along the z-axis. The definition of an effective \(\cos \uptheta \) is constructed following Ref. [38]
At Born level, for a given flavour of incoming partons and in the ultra-relativistic limit, the \(p^z_{\uptau }\) is defined, Ref. [36], as
where
and \(F_i(s)\) are four form factors which depend on the initial and the final state fermion couplings to the Z boson and its propagator.
In the TauSpinner algorithm the flavour of the initial partons is assumed to be unknown, the probability \(p^z_{\uptau }\) is calculated as a weighted average over all possible initial state quark configurations. This requires averaging (summing) over all production matrix elements square convoluted with the structure functions
where the indices i, j denote flavours of incoming partons.
For calculating the spin weight, the polarization \(P^z_{\uptau }\) of the single \(\uptau \) lepton in a mixed quantum state is calculated neglecting transverse spin degrees of freedom (ultra-relativistic limit). The \(P^z_{\uptau }\) is then a linear function of the probability for the helicity state,Footnote 11 Eq. (21).
6.1.3 Case of a spin two resonance X (not a Higgs)
In this case a user provided function required to replace \(\frac{d \upsigma }{d \cos \uptheta }\), the non-Standard physics effective Born parametrizations, is not included in the TauSpinner library, and a dummy function is provided only. It can be replaced with a user one, see Ref. [12] for details and in particular the TAUOLA/TauSpinner/examples/tau-reweight-test.cxx directory. This \(2\rightarrow 2\) parton level process function nonSM_adoptH (or nonSM_adopt) has the following arguments (int ID, double S, double cost,int H1,int H2, int key). It can be activated in the user code at the execution time, see Appendix B.2.
6.2 Attributing \(\uptau \) (or \(\uptau \) pair) helicity states
For the individual event, the \(\uptau \) helicity (\(+/-\)) is attributed stochastically. The probability for given configurations of the longitudinal polarization of \(\uptau \) leptons of different origins [36] is shown in Table 3. These probabilities can be used, when decay kinematical configurations of the decays are not yet constructed.
However, once the configurations of decay products are generated the event-by-event calculation of the probability for helicity states has to take into account polarimetric vectors \(h_{+}\) and \(h_{-}\). The \((+)\) is chosen if probabilities, calculated with the formulae below, are smaller than a generated random number RRR sampled uniformly in [0,1] range, otherwise \((-)\) is taken:
-
Case of a spin zero resonance (scalar Higgs)
$$\begin{aligned} p(-) = \frac{ 1 + sign \cdot h^{z}_{+} \cdot h^{z}_{-} + h^{z}_{+} + h^{z}_{-} }{ 2 + 2 \cdot sign \cdot h^{z}_{+} \cdot h^{z}_{-} } \end{aligned}$$(36)where \(sign = -1\).
-
Case of a spin two resonance X (not a Higgs)
$$\begin{aligned} p(-) = (1 + P^z_{\uptau }) \frac{ 1 + sign \cdot h^{z}_{+} \cdot h^{z}_{-} + h^{z}_{+} + h^{z}_{-} }{ 2 + 2 \cdot sign \cdot h^{z}_{+} \cdot h^{z}_{-} + 2.0 \cdot P^z_{\uptau } \cdot (h^{z}_{+} + h^{z}_{-}) }\nonumber \\ \end{aligned}$$(37)where \(sign = +1\).
-
Case of a spin one resonance (Drell–Yan)
$$\begin{aligned} p(-) = (1 + P^z_{\uptau }) \frac{ 1 + sign \cdot h^{z}_{+} \cdot h^{z}_{-} + h^{z}_{+} + h^{z}_{-} }{ 2 + 2 \cdot sign \cdot h^{z}_{+} \cdot h^{z}_{-} + 2.0 \cdot P^z_{\uptau } \cdot (h^{z}_{+} + h^{z}_{-}) }\nonumber \\ \end{aligned}$$(38)where \(sign = +1\).
7 The \(2 \rightarrow 4\) process
At this point we have completed the discussion for the case when the TauSpinner is used assuming a parton level processes of \(2\rightarrow 2\) type. Let us turn now to the case when \(2\rightarrow 4\) parton level processes are used. This extension has been introduced recently, see Ref. [15] for a detailed description.
The baseline algorithm remains essentially the same. The differences can be grouped into few parts
-
Kinematics
For calculation of factorization scale, instead of virtuality of \(\uptau \) lepton pair, virtuality of lepton pair combined with jets is used. In fact a few options to define the \(Q^2\) factorization scale have been implemented. The definitions of frames type A, B, \(C_{\uptau ^\pm }\) and \(D_{\uptau ^\pm }\) as explained for case of \(2 \rightarrow 2\) processes are used. In principle the additional rotation by the angle \(\uppi \) around the axis x would be again needed for the \(\uptau ^-\) in transformations from B, \(C_{\uptau ^-}\) frames. This is due to convention used for spin amplitudes.Footnote 12 The definition of the previously discussed frame \(A'\) needs to be modified. Not only bremsstrahlung photons need to be added to \(\uptau \) leptons to obtain kinematic configurations for matrix element calculation, but outgoing partons (jets) four-momenta have to be taken into account as well.
-
Matrix Element Calculation
Matrix element squared are calculated for given helicity states of \(\uptau \) leptons and flavours of incoming/outgoing partons in frame A’. In particular formula (23) is used for calculation of \(R_{z,t}\) and \(R_{t,z}\), which are then used as of frame B, without any modifications. The EW scheme used and \(\upalpha _s(Q^2)\) can be configured using several options defined in Ref. [15].
-
Extension due to flavours of accompanying partons/jets
All sums \(\sum _{flavour}\) as used in Sect. 2.2 should read now as sums over flavours of incoming and outgoing partons. Of course PDFs convolution with distributions is used for incoming partons only. This modification is extending re-weighting algorithm dependence on the final state components consisting of partons (hadronic jets). This technically simple change may be thus of a concern because of additional types of the systematic uncertainties involved.
Except these changes, the algorithms are not modified. However only longitudinal spin effects can be simulated because we use helicity states, in the ultra-relativistic approximation in matrix element calculation. In future, if necessary, we can extend the case to the complete spin effects treatment. Minor extension of the program will be needed. Approximation is in the matrix element calculation only. It may even be possible to use for that purpose presently available MadGraph amplitudes discussed in Ref. [15]. Better control of the complex phases will be however needed.
8 On the systematic errors
In the following the limitations of the program and its systematic uncertainties will be discussed.
One of the questions is whether TauSpinner can be used to modify spin/production/decay features of events; when \(\uptau \) lepton decay library other than Tauola was used, when its physics initialization was different, or when events were generated with QCD matrix elements of higher order than implemented in TauSpinner? If yes, what is the systematic uncertainty or bias which should be attributed to the predictions obtained using a Monte Carlo sample with weights calculated by TauSpinner?
The evaluation of them is not universal, it needs to be repeated for every new observable. We therefore cannot focus the discussion on the tool itself, but rather present general observations concerning re-weighting techniques for the \(\uptau \) lepton physics. The topic obviously can not be all-embracingly covered in the present paper.
Nowadays Monte Carlo programs such as Herwig [39], Sherpa [20], Pythia [40] have their own \(\uptau \) lepton decay algorithms and physics initializations. One can argue, if in some aspects, they are not better than the ones used in publicly available version of the Tauola library. One can also argue that the re-weighting with algorithms like TauSpinner is nowadays an obsolete technique, and that it is better to generate new event samples with modified required physics input, or to use generator own re-weighting methods.
In some cases this might be true but it is not always easy to apply in practice. For example, experiments store events in a format which must be universal for all generators. Inevitably some intermediate information is lost. Also, re-generation of such experiment-specific samples with modified assumptions is time-consuming, because of the detector response simulation and often also because of the CPU needed for each event of the desired phase space region. Event generation became CPU expensive in modern Monte Carlo generators, because of the complexity of the phase space and multiplicity of the outgoing legs in the matrix-elements.
The evaluation of systematic uncertainties of the re-weighting technique implemented in TauSpinner is nonetheless mandatory. It can be divided into three main domains:
- A. :
-
Physics driven uncetainty, related to approximations used for particular matrix element calculations of the production and the \(\uptau \) lepton decays, finally of the parton distribution functions.
- B. :
-
Approximations related to the program design.
- C. :
-
Technical uncertainties related to the mismatch in the way how information is being passed to the program or of approximations used in the generation of samples to be re-weighted.
A.
Technically, any \(\uptau \) lepton decay generator, to a great degree, can be understood as consisting of three elements: (i) a phase space generator, (ii) a calculator of matrix elements and finally (iii) a model for hadronic current for semileptonic decays. The last one (iii) is prone to large systematic uncertainties. TauSpinner shares the code for (ii) and (iii) with Tauola. That is also why part of the systematic uncertainties is common. The precision of models used in construction of hadronic currents is optimistically at 5 % precision level and realistically one can expect a precision rather at the level of 10 or 20 % only. Smaller ambiguities are expected for inclusive distributions like branching ratios or one-dimensional spectra, larger ones for multidimensional distributions. It is crucial, that the work on related comparisons with the data, fits and evaluation of systematic uncertainties is performed within the experiments. Let us focus on the systematic uncertainty evaluation and practical consequences for TauSpinner when applied to events where \(\uptau \) lepton decays are simulated with a different library than Tauola. The particular choice of hadronic currents used in samples generated with Herwig, Sherpa or Pythia needs to be known and the same choice has to be used for TauSpinner too. The techniques how to check if proper choice was taken are documented in Ref. [13] (Section 4.5 “Consistency checks”). Consequences of mismatches are of numerical importance.
If the matrix elements used in the \(\uptau \) lepton decay sample generation do not match those assumed to be used for the calculation of TauSpinner weights, results can be largely inaccurate. Particularly numerical instabilities may occur if the matrix element used for the weight denominators would approach zero in non-depleted regions of the phase space. The problem may appear for multi-scalar final states, but for \(\uptau ^\pm \rightarrow l^\pm \upnu {\bar{\upnu }}\), \(\uptau ^\pm \rightarrow \uppi ^\pm \upnu \) or even \(\uptau ^\pm \rightarrow \uppi ^\pm \uppi ^0 \upnu \) decays, which amount for 2/3 of all \(\uptau \) lepton decays, this problem is generally absent. Let us concentrate on the case of \(\uptau ^\pm \rightarrow (3\uppi )^\pm \ \upnu \) because it contributes more than 20 % to the \(\uptau \) lepton decay rate. We have observed that in some regions of the phase space the modeling of \(\uptau \) lepton decays can lead to distributions which differ by a factor of 2, or even more, depending on the data used as an input. At the same time, for more inclusive results like one-dimensional distributions differences can be of the order of 10 % or less. For numerical evaluation see Ref. [41] (Section 10). Eight variants of hadronic currents were presented and used for the discussion in Section 2 of Ref. [41], most of them as available in Tauola, but one of them was taken from Pythia 8, in the version of the year 2015. Tests how to check if indeed sufficient level of precision was achieved are discussed in the summary of that paper. It is stressed that at least 3-dimensional distributions are necessary to appropriately identify differences. Tests of modelling for \(\uptau \) lepton decays are particularly important for applications based on Machine Learning techniques. Such tests were performed in Ref. [42], for Higgs CP parity sensitive observables in \(H\rightarrow \uptau ^+\uptau ^-\) with \(\uptau \) lepton decays to three scalars.
B.
Let us note that not only the matrix elements, used for \(\uptau \) lepton decays in the re-weighted sample, have to match the one used in the weight calculation. Also the level of approximation used for calculation of production matrix element and in particular spin effects have to match the one used in spin weight denominators. See Ref. [13], Section 4, for details on the consistency checks.Footnote 13
The matrix element for \(pp \rightarrow \uptau ^+\uptau ^- X\) production are generally not available. They are obtained from the factorization theorems separating parton distribution (parton showers) from the hard matrix elements. For the case of pp collisions, references [32, 33] can be used to provide necessary input from the theoretical side for the algorithmic solutions. The tests of consistency are presentedFootnote 14 in Section 5.4 of Ref. [13]. Following the results of references [32, 33] tests consisting of comparing spin effects implemented in different \(\uptau \) lepton pair rest frames can be very useful on top of the ones for the dependence of results on EW schemes studied in these papers.Footnote 15
The comparisons of results obtained from TauSpinner working in \(2 \rightarrow 2\) and \(2 \rightarrow 4\) matrix element modes offer the way to check if factorization used in TauSpinner algorithm is sufficiently precise for the configurations featuring high \(p_T\) jets.
C.
One should bear in mind, that information on intermediate and also final state particles stored by many of todays generators use distinct variants of encoding conventions, even if the same format like HepMC is used in every case. That can be a problem for many applications used by experiments, e.g. in the estimation if reconstruction algorithms work properly, and if the initial input of the generation can be deconvoluted from the event response of the detector. Inescapably this may cause problems for TauSpinner, too. Implicitly, the event record design relies on the assumption that the event is represented by a tree-like structure. This generally can not be assured, in particular because of quantum interference and quantum entanglement. Some approximations need to be used, or information of intermediate states, such as EW bosons abandoned.Footnote 16
Several options of TauSpinner initialization are prepared. They can help to understand if the samples were e.g. generated particular, partial spin implementation only. Then they can be used to re-weight to the required physics assumptions, see Ref. [13].
9 Summary
In this paper we have presented the theoretical basis and description of algorithms used in the TauSpinner program for simulating spin effects in the production and the decay of \(\uptau \) leptons in proton-proton collisions at the LHC. The primary source of \(\uptau \) leptons are Drell–Yan processes of single W and Z boson production, often accompanied by additional jets. Since the Higgs boson discovery by ATLAS and CMS Collaboration in 2012, the \(H \rightarrow \uptau \uptau \) lepton decay became the most promising channel for studying CP properties of its couplings to fermions. With more data available from Run II of the LHC also \(\uptau \) lepton decays in case of multi-boson production will become part of interesting signatures.
The algorithms discussed here allow for the separation of the \(\uptau \) lepton production and decay in phenomenological studies. We have discussed options used for simplifying descriptions and approximations used.
Although the framework of TauSpinner is prepared for implementation of the non Standard Model couplings, we have not given too much attention to this possible development path. We have recalled in the Appendices most of examples and applications. They are available with the distributed code. References, covering details wherever possible are given. The technical information is brief, details are delegated to the README files. Techniques of how to estimate systematic uncertainties for the results obtained with TauSpinner were briefly reviewed.
Data Availability Statement
This manuscript has no associated data or the data will not be deposited. [Authors’ comment: The code of TauSpinner is distributed only as a part of the Tauolapp [25] package. It is available from webpage: http://tauolapp.web.cern.ch/tauolapp/. At the time of present publication, the head release for Tauola was 1.1.6c (and for TauSpinner 2.0.3).]
Notes
The double sum runs in principle over all possible flavours for the two incoming partons: \(g, u, {\bar{u}}, d, {\bar{d}}, c, {\bar{c}}, s, {\bar{s}}, b, {\bar{b}}\).
It can seem natural to choose the initial flavours, on the basis of probabilities obtained from production density \(1/N_{normalization}\; f(x_1, \ldots )f(x_2, \ldots )\bigl (\sum _{\uplambda _1, \uplambda _2 }|{{\mathscr {M}}}^{prod}_{parton\; level}|^2 \bigr )\) and then calculate weights for such flavour configuration. It would not be correct. The dependence on the decay configuration, already fixed and stored for the event, would be then ignored. In case of the Tauola interface incoming flavours are obtained from the event record and decays are generated accordingly.
In case when photons are present and for \(2 \rightarrow 4\) matrix elements modifications are needed to assure that on-mass shell kinematic configuration is passed to the routines calculating spin amplitudes.
In case when configurations with two-jets are evaluated (\(2\rightarrow 4\) processes), not only more attention for the bremsstrahlung photons will be needed, but also the momenta of the jets have to be taken into account in evaluation of \(p_L\) and \(M^2\). We will return to this point in the future.
Calculation is invoked with the call to calculateWeightFromParticlesH method. The code organization is a consequence of the history of implemented functionalities and benchmarks. Not all features were expected to be included at the beginning:
At first, only longitudinal spin effects were expected to be taken into account and for \( 2 \rightarrow 2\) at parton level processes only. That is why, methods from KORALZ [34] could have been used. Later processes \( 2 \rightarrow 4\) with two jets in final state made original methods focused around calculation of \(\uptau \) lepton polarization i.e. \(R_{t,z}\) less intuitive/convenient. Introduction of options featuring complete spin effects made such organization even less suitable. Still we preserve backward compatibility, of the functioning code and stability of results for tests and examples, accumulated over years.
Relation between \(R_{t,z}\), \(R_{z,t}\) and modules of amplitudes is transparent in case of calculation as of Sect. 7.
Nothing in principle prevents us to perform similar arrangements for \(R_{t,z}\), that is for \(P^z_{\uptau }\) which can be taken from pre-tabulated EW results as well. Discussion of the systematic uncertainty is then nonetheless needed.
This is not the case for the Tauola library if used for generating \(\uptau \) lepton decays. Then only for channels featuring more than 5 pions polarimetric vector is calculated with approximation. Still then, it is not set to zero.
The same formulae using \(R_{i,j}\) matrix are still used, individual parton flavour contributions to \(R_{i,j}\) are obtained numerically from the pre-tabulated values for some invariant masses and scattering angles. These pre-tabulated values are read from the stored files. Then results are interpolated to obtain results for required arguments. The x and y components of \(R_{i,j}\) are pre-tabulated and available for use.
Note that in paper [11] formula \( P_{\uptau }^z=(2 p^z_\uptau -1)\) is used instead of Eq. (21). There, different (rotated by \(\uppi \) angle with respect to axis perpendicular to reaction) frame is used. Similar convention matching may be necessary for other programs as well, see e.g. nonSM_adopt(); nonSM_adoptH() methods of the tau-reweight-test.cxx.
In practice, as no transverse spin effects are taken into account, the convention change is performed while calculating double W[2][2] (amplitudes squared for the helicity states) in wbfdistr.cxx.
One of such test is to verify whether with the help of TauSpinner weight, spin polarization and spin correlations can be completely removed from the event sample. It is relatively easy to observe if it is indeed the case. The decay product spectra should then not depend on anything else but properties of decay matrix elements and \(\uptau \) lepton momenta.
They are also distributed together with Tauola and TauSpinner source code.
Once completed, they open the way for interchanging the EW schemes with the help of the weights. With the improving precision, this may turn out to be important for \(\uptau \) leptons final states including decays as for light leptons production studied in Ref. [16].
That is not convenient, if properties of such intermediate states are to be measured. For example, reconstruction algorithms are more difficult to debug. From that perspective TauSpinner can be understood as supplementary debugging tool. If its results are far from the expected ones, this often mean, that the content of the (HepMC) event records used in experimental environment was not up to the expectations. Results obtained from TauSpinner can point to the source of difficulties. See Ref. [13], Section 5.4 for examples of such applications.
Also bremsstrahlung photons from \(\uptau \) pair production process. In case of multitude entries for the single particle, identification of the one matching the kinematical constraints is necessary. It often requires navigation back and forth through the event record, finding links to mothers, etc.
In most cases event record format of HepMC is used as an input.
Lists named tau1_daughters, tau2_daughters are needed.
The S,cost denote invariant mass squared of the \(\uptau \) lepton pair as well as \(\cos {\uptheta }\) (of the \(2\rightarrow 2\) scattering angle) and ID the identifier for the incoming parton flavour, all for the parton level kinematic configuration prepared by TauSpinner. To get the actual values interpolations between entries of tables is used.
References
G. Aad et al. [ATLAS Collaboration], Eur. Phys. J. C 72, 2062 (2012). https://doi.org/10.1140/epjc/s10052-012-2062-6. arXiv:1204.6720 [hep-ex]
M. Aaboud et al. [ATLAS Collaboration], Eur. Phys. J. C 78(2), 163 (2018). https://doi.org/10.1140/epjc/s10052-018-5619-1. arXiv:1709.03490 [hep-ex]
A. M. Sirunyan et al. [CMS Collaboration], Eur. Phys. J. C 78(9), 708 (2018). https://doi.org/10.1140/epjc/s10052-018-6146-9. arXiv:1801.03535 [hep-ex]
G. Aad et al. [ATLAS Collaboration], JHEP 1411, 056 (2014). https://doi.org/10.1007/JHEP11(2014)056. arXiv:1409.6064 [hep-ex]
G. Aad et al. [ATLAS Collaboration], JHEP 1504, 117 (2015). https://doi.org/10.1007/JHEP04(2015)117. arXiv:1501.04943 [hep-ex]
G. Aad et al. [ATLAS Collaboration], JINST 10(09), P09018 (2015). https://doi.org/10.1088/1748-0221/10/09/P09018. https://doi.org/10.1088/1748-0221/2015/9/P09018. arXiv:1506.05623 [hep-ex]
M. Aaboud et al. [ATLAS Collaboration], Eur. Phys. J. C 76(11), 585 (2016). https://doi.org/10.1140/epjc/s10052-016-4400-6. arXiv:1608.00890 [hep-ex]
The ATLAS collaboration [ATLAS Collaboration], ATLAS-CONF-2017-050
G. Aad et al. [ATLAS Collaboration], JHEP 1507, 157 (2015). https://doi.org/10.1007/JHEP07(2015)157. arXiv:1502.07177 [hep-ex]
M. Aaboud et al. [ATLAS Collaboration], Eur. Phys. J. C 76(12), 683 (2016). https://doi.org/10.1140/epjc/s10052-016-4481-2. arXiv:1607.05979 [hep-ex]
Z. Czyczula, T. Przedzinski, Z. Was, Eur. Phys. J. C 72, 1988 (2012). arXiv:1201.0117
S. Banerjee, J. Kalinowski, W. Kotlarski, T. Przedzinski, Z. Was, Eur. Phys. J. C 73, 2313 (2013). arXiv:1212.2873
A. Kaczmarska, J. Piatlicki, T. Przedzinski, E. Richter-Was, Z. Was, Acta Phys. Polon. B 45(10), 1921–1946 (2014). arXiv:1402.2068
T. Przedzinski, E. Richter-Was, Z. Was, Eur. Phys. J. C 74, 3177 (2014). arXiv:1406.1647
J. Kalinowski, W. Kotlarski, E. Richter-Was, Z. Was, Eur. Phys. J. C 76(10), 540 (2016). arXiv:1604.00964
The ATLAS collaboration [ATLAS Collaboration], “Measurement of the effective leptonic weak mixing angle using electron and muon pairs from \(Z\)-boson decay in the ATLAS experiment at \(\sqrt{s} = 8\) TeV,” ATLAS-CONF-2018-037 (2018)
S. Schael et al. [ALEPH and DELPHI and L3 and OPAL and SLD Collaborations and LEP Electroweak Working Group and SLD Electroweak Group and SLD Heavy Flavour Group], “Precision electroweak measurements on the \(Z\) resonance”. Phys. Rep. 427, 257 (2006)
P. Ilten, Nucl. Phys. Proc. Suppl. 253–255, 77 (2014)
D. Grellscheid, P. Richardson, Simulation of Tau Decays in the Herwig++ Event Generator. arXiv:0710.1951 [hep-ph]
T. Gleisberg, S. Hoeche, F. Krauss, M. Schonherr, S. Schumann, F. Siegert, J. Winter, JHEP 0902, 007 (2009). https://doi.org/10.1088/1126-6708/2009/02/007. arXiv:0811.4622 [hep-ph]
P. Ilten, Nucl. Part. Phys. Proc. 260, 56 (2015)
J. Bellm, S. Plätzer, P. Richardson, A. Siódmok, S. Webster, Phys. Rev. D 94(3), 034028 (2016). https://doi.org/10.1103/PhysRevD.94.034028. arXiv:1605.08256 [hep-ph]
https://sherpa.hepforge.org/doc/SHERPA-MC-2.1.1.html. http://www.mpipks-dresden.mpg.de/~laubrich/diplom.pdf
A. Buckley, Phys. Rep. 504, 145 (2011). https://doi.org/10.1016/j.physrep.2011.03.005. arXiv:1101.2599 [hep-ph]
N. Davidson, G. Nanava, T. Przedzinski, E. Richter-Was, Z. Was, Comput. Phys. Commun. 183, 821–843 (2012). arXiv:1002.0543
S. Jadach, B. Ward, Z. Was, Comput. Phys. Commun. 130, 260–325 (2000). arXiv:hep-ph/9912214
S. Jadach, B.F.L. Ward, Z. Was, Eur. Phys. J. C 22, 423–430 (2001). arXiv:hep-ph/9905452
S. Jadach, Z. Wa̧s, Acta Phys. Polon. B 15, 1151 (1984). Erratum: B16 (1985) 483
S. Jadach, Z. Wa̧s, R. Decker, J .H. Kühn, Comput. Phys. Commun. 76, 361 (1993)
N. Davidson, T. Przedzinski, Z. Was, Comput. Phys. Commun. 199, 86–101 (2016). arXiv:1011.0937
G. Nanava, Q. Xu, Z. Was, Eur. Phys. J. C 70, 673–688 (2010). arXiv:0906.4052
E. Richter-Was, Z. Was, Eur. Phys. J. C 76(8), 473 (2016). arXiv:1605.05450
E. Richter-Was, Z. Was, Eur. Phys. J. C 77(2), 111 (2017). arXiv:1609.02536
S. Jadach, B.F.L. Ward, Z. Wa̧s, Comput. Phys. Commun. 79, 503 (1994)
A. Andonov et al., Comput. Phys. Commun. 181, 305–312 (2010). arXiv:0812.4207
T. Pierzchala, E. Richter-Was, Z. Was, M. Worek, Acta Phys. Polon. B 32, 1277–1296 (2001). arXiv:hep-ph/0101311
Particle Data Group Collaboration, K. Nakamura et al., J. Phys. G 37, 075021 (2010)
Z. Was, S. Jadach, Phys. Rev. D 41, 1425 (1990)
J. Bellm et al., Eur. Phys. J. C 76(4), 196 (2016). https://doi.org/10.1140/epjc/s10052-016-4018-8. arXiv:1512.01178 [hep-ph]. N = ATLAS-CONF-2018-037
T. Sjötrand et al., Comput. Phys. Commun. 191, 159 (2015). https://doi.org/10.1016/j.cpc.2015.01.024. arXiv:1410.3012 [hep-ph]
Z. Was, J. Zaremba, Eur. Phys. J. C 75(11), 566 (2015) Erratum: [Eur. Phys. J. C 76, no. 8, 465 (2016)] https://doi.org/10.1140/epjc/s10052-016-4295-2, https://doi.org/10.1140/epjc/s10052-015-3780-3. arXiv:1508.06424 [hep-ph]
E. Barberio, B. Le, E. Richter-Was, Z. Was, D. Zanzi, J. Zaremba, Phys. Rev. D 96(7), 073002 (2017). arXiv:1706.07983
J. Alwall et al., Comput. Phys. Commun. 176, 300–304 (2007). arXiv:hep-ph/0609017
M. Dobbs, J.B. Hansen, Comput. Phys. Commun. 134, 41–46 (2001). https://savannah.cern.ch/projects/hepmc/
P. Golonka, T. Pierzchala, Z. Was, Comput. Phys. Commun. 157, 39–62 (2004). arXiv:hep-ph/0210252
N. Davidson, P. Golonka, T. Przedzinski, Z. Was, Comput. Phys. Commun. 182, 779–789 (2011). arXiv:0812.3215
R. Jozefowicz, E. Richter-Was, Z. Was, Phys. Rev. D 94(9), 093001 (2016). arXiv:1608.02609
M. Bahmani, J. Kalinowski, W. Kotlarski, E. Richter-Was, Z. Was, Eur. Phys. J. C 78(1), 10 (2018). arXiv:1708.03671
A. Andonov et al., Comput. Phys. Commun. 174, 481–517 (2006). arXiv:hep-ph/0411186
Acknowledgements
We would like to acknowledge and thank several colleagues who either contributed directly or by stimulating discussions to the development of the TauSpinner package and its applications: M. Bahmani, S. Banerjee, Z. Czyczula, W. Davey, A. Kaczmarska, J. Kalinowski and W. Kotlarski.
Author information
Authors and Affiliations
Corresponding author
Appendices
Project software organization
The code of TauSpinner is distributed as a part of the Tauolapp [25] package. The main modules of the library source code reside in /src and /src/VBF sub directories of TAUOLA/TauSpinner. The compiled libraries are placed in the TAUOLA/TauSpinner/lib and copied to the TAUOLA/lib directory during installation of the TAUOLA library with the TauSpinner. Technical details on the installation and execution of main examples are provided in README files of sub-directories:
TAUOLA/TauSpinner,
TAUOLA/TauSpinner/examples,
TAUOLA/TauSpinner/examples/example-VBF,
TAUOLA/TauSpinner/examples/example-
VBF/SPIN2. The changelog.txt file is also provided, however, since Nov. 2012 logs are set into the TAUOLA changelog.txt. Note that the file html/index.html is of the old TauSpinner versions prior to its merge with Tauolapp distribution too.
The distribution includes extended set of examples and applications, collected in the TAUOLA/TauSpinner/
examples sub-directories:
-
CLEO-to-RCHL, see App. B.7,
-
CP-tests, see Apps. B.3 B.3.1 B.3.2, and also introduction to EW effects implementation, App. B.4.
-
example-VBF, App. B.5 and B.6,
-
testsERW , App. B.8,
-
applications, general methods, useful to deal with event record contents and README file is included only.
-
applications/applications-fits, App. B.1,
-
applications/applications-plots-and-paper, App. B.1,
-
applications/applications-rootfiles, App. B.1,
-
applications/test-bornAFB, App. B.1,
-
applications/test-ipol, App. B.1.
Some of published results obtained with the program are stored in further sub-directories of the TAUOLA/TauSpinner, that is in
-
paper, see App. B.1, and Ref. [11],
-
paper-spin2, see App. B.2, and Ref. [12],
-
paper-spin2-higgs, see App. B.1, and Ref. [12],
-
paper-application-studies, see App. B.1, and Ref. [13] (redirects to TAUOLA/TauSpinner/examples /applications/applications-plots-and-paper),
-
paper-CP see App. B.3 and Ref. [14].
There is no need for the user to read details of all this multitude of files, except the one of the interest.
The code of the basic examples is stored in the following two files: TAUOLA/TauSpinner/examples /tau-reweight-test.cxx for \(2\rightarrow 2\) processes, TAUOLA/TauSpinner/examples /example-VBF/example-VBF.cxx for \(2\rightarrow 4\) processes.
The methods needed to read events from data-files are stored separately as they depend on the particular data-file format: TAUOLA/TauSpinner/examples/read_particles_from_TAUOLA.cxx for \(2\rightarrow 2\) processes, and TAUOLA/TauSpinner/examples /read_particles_for_VBF.cxx for the \(2\rightarrow 4\) processes.Footnote 17
The FORTRAN examples of the user functions for \(2\rightarrow 2\) processes ggHXtautau.f, distr.f (accessible through the C++ wrappers) are stored in TAUOLA/TauSpinner /examples/ and example library for implementing user \(2\rightarrow 4\) processes in TAUOLA/TauSpinner/examples/example-VBF/SPIN2.
General information on the user interface methods
Over the years several methods of initializing and operating the TauSpinner were developed [11,12,13,14,15]. Technical descriptions and discussions on systematic uncertainties were provided, but remained scattered over several publications. Collecting them or providing references from one place is now of convenience.
Correct reading and interpretation of information in the event record, namely finding outgoing \(\uptau \) leptons and their decay productsFootnote 18 is a rather nontrivial component of the analysis code. The standard of the HepMC format [44] of the event record is an usual input format for the TauSpinner, but some helping classes are prepared in the examples to allow also for reading LHEF format [43]. These interface classes are usually kept separately from the examples code and are described in the appropriate README files of the particular example directory. In several cases also input files with the small number of generated events are provided together with the examples.
The technical implementation of the methods used in examples evolved during the last few years. Most of them use basic (sometimes also additional developed during the project) functionalities of the MCTester package [45, 46] and its native analysis function MC_Analyze. This allows to standardize not only production of benchmark histograms, but also validation of class reading event record readParticlesFromTAUOLA_HepMC method. This method is expected to be adapted or replaced by the user own, depending on the particular event record form.
Let us list some advantages of MCTester:
-
1.
MCTester interface to HepMC is profoundly tested for many conventions on how to handle HepMC event record exceptions in the way it was filled in. MCTester offers thus debugging facility for communication too.
-
2.
The only information exchanged between the MCTester and the TauSpinner modules is the event weight which is passed to MC_Analyze function together with the event itself
MC_Analyze(temp_event,WT);
-
3.
Particular test specific plots, are defined in C scripts with names following MCTester analysis template script UserTreeAnalysis.C. These user-defined plots are then generated by MC_Analyze function.
The TauSpinner and the MCTester codes are independent, use of the latter is not mandatory, see Appendix B.8.
We are now ready to return to documentation of the TauSpinner application methods. There are three categories of methods prepared for the user: for initialization, evaluation of particular event and finally for gathering auxiliary information. Let us start from general methods. Methods for the specific applications will be discussed later, case after case in sub-appendices.
Initialization
Before TauSpinner is activated and individual events analyzed general information about sample on which it is going to be used has to be provided. Initialization of TauSpinner has to be adjusted to the sample specific. The initialization is divided into two categories, the general one discussed now and the specific one for particular application which will be discussed in the sub-appendices. In every case the following initialization routine has to be invoked:
Tauola::initialize();
to initialize \(\uptau \) decay library. Generation of decays will not be performed but constants necessary for calculation of decay matrix elements have to be set. The library of PDFs has to be initialized as well,
string name="MSTW2008nnlo90cl.LHgrid";
LHAPDF::initPDFSetByName(name);
for every application and finally the basic initialization method of the TauSpinner can be invoked,
initialize_spinner(Ipp,Ipol,nonSM2,nonSMN,CMSENE);
The input parameters of this method are as follows:
-
bool Ipp = true; denote that the program is to be used for pp collisions. At present it is the only available option.
-
int Ipol; states of the polarization in the input sample
-
0 - events generated without spin effects
-
1 - events generated with all spin effects
-
2 - events generated with spin correlations only, no individual \(\uptau \) lepton polarization.
-
3 - events generated with spin correlations and polarization but missing angular dependence of individual \(\uptau \) lepton polarization.
-
-
int nonSM2 = 0 - Are we using nonSM calculations? y/n (1/0),
-
int nonSMN = 0 - If we are using nonSM calculations we may consider corrections to shapes only: y/n (1/0), this option was introduced for \(2 \rightarrow 2\) algorithm only,
-
double CMSENE - Center of mass system energy, used in reconstruction of \(x_1, x_2\), the arguments for PDF distributions.
There are two random number generators used in typical applications. If re-decay of \(\uptau \) leptons by Tauola is requested, then one may need to re-seed its native random generator, especially if parallel generation is performed. For this end, the sequence
int ijklin=..., int ntotin=..., int ntot2n=...;
Tauola::setSeed(ijklin,ntotin,ntot2n);
or Tauola::setSeed(time(NULL), 0, 0);
should be considered.
The TauSpinner algorithm for attribution of \(\uptau \) lepton helicities use no-sophisticate random number generator. It can be replaced with the command
Tauola::setRandomGenerator( randomik );
Other initialization methods specific only for some applications will be presented in sub-appendices.
Event loop
In a loop, for each consecutive event read from the data-file,Footnote 19 the four momenta and pdgID of the outgoing \(\uptau \) leptons and theirFootnote 20 decay products are retrieved. The intermediate state boson X has to be known too (from the content of the event record or set manually).
For each event, information can be read from data-file with the help of int status = readParticlesFromTAUOLA_HepMC(input_file, X, tau, tau2, tau_daughters, tau_daughters2); method, present in the file /TauSpinner/examples /read_particles_from_TAUOLA.cxx but we assume that user will replace it with his own, matching the format of the data-file of the actual use.
Single event analysis
On the basis of the intermediate boson X pdgID algorithm decides which matrix element version is used for calculating \(R_{i,j}\) (and production weight as well). The four momentum of X does not need to be equal to the sum of the outgoing \(\uptau \) leptons (or \(\uptau \) lepton plus \(\upnu _\uptau \) in case of \(W^\pm \) or \(H^\pm \) mediated processes). The non-conservation is expected, and will be attributed to the presence of final state emitted photons (prior to \(\uptau \) lepton decays). Then, the weight defined as in Eq. (4) is calculated \(wt_{spin}\) =calculateWeightFromParticlesH(X,tau,tau2, tau_daughters,tau_daughters2);
If there is only a single \(\uptau \) lepton among X decay products then it is assumed that tau2=neutrino \(wt_{spin}\) = calculateWeightFromParticlesWorHpn(X, tau, tau2, tau_daughters);
The formula Eq. (4) is used in both cases, for the second one where instead of \(\uptau \) lepton, the \(\upnu _\uptau \) is present, a polarimetric vector (1, 0, 0, 0) is used.
The methods prepared for \(2 \rightarrow 4\) processes have similar input parameters, only the four momenta corresponding to outgoing partons (jets) are added. The event can be read from data-file, e.g. with the help of int status = read_particles_for_VBF(input_file,p1,p2,X,p3,p4, tau1,tau2,tau1_daughters,tau2_daughters); and later the weight is calculated \(wt_{spin}\) = calculateWeightFromParticlesVBF(p3, p4, X, tau1, tau2, tau1_daughters, tau2_daughters);
Auxiliary information
As a by-product of preparing input for calculation of spin weight, Eq. (4), an auxiliary physics information is available and can be retrieved. This information is available through the following get functions that can be called after each calculateWeightFrom... function call.
double wtnonSM = getWtNonSM() - returns production weight \(wt_{prod}\) given by. Eq. (11),
double WTp = getWtamplitP();
double WTm = getWtamplitM();
return weights \(wt_{decay}^{\uptau ^+}\), \(wt_{decay}^{\uptau ^-}\) of Eq. (12), corresponding to variation of \(\uptau ^\pm \) lepton decay matrix elements. Finally
double getTauSpin()
returns the \(\uptau \) lepton helicity, attributed stochastically from the \(p^z_\uptau \) probability given by Eq. (20), which is calculated from production and \(\uptau \) lepton decay products kinematics. Note that such attribution is often subject of a further approximation than used for spin weight calculation: the transverse spin effects are then not included, and 100% spin correlation is assumed. That is why, providing helicity only for the first \(\uptau \) lepton is sufficient.
The getEWwt(), getEWwt0() methods are described in Appendix B.4.
Before we explain further details of examples, let us list in the Table 4, all weights and their methods, and where they are addressed in Appendix.
1.1 Longitudinal spin effects in \(2 \rightarrow 2\) processes
From the first version of the TauSpinner [11], the purpose of calculating spin weight \( wt_{spin}\) given by formula (4) was to evaluate how spin correlations between produced \(\uptau ^+\) and \(\uptau ^-\) leptons affect different observables. Applications for the cases of \(Z, \upgamma ^*,W^\pm , H, H^\pm \) mediated processes were prepared. Longitudinal spin effects were studied only. Other than t, z components of the \(R_{i,j}\) matrix, Eq. (4), were set to zero. Source of the paper [11] is available in the directory Tauola/TauSpinner/paper.
Methods introduced at that time form the core of the TauSpinner code. Later, more refined matrix elements and accompanying methods were introduced. General principles remained unchanged. The parameters of the Born amplitudes in case of the Higgs mediated process can be modified with:
void setHiggsParameters(int jak, double mass, double width, double normalization).
At the time, these parameters were still unknown experimentally. For the Drell–Yan process the defaults of Tauola [25] are used.
A detailed discussion of examples is presented with multitude plots of Ref. [13]. The option depicted by the initialization parameter Ipol necessary to adopt to the level of spin effects embedded in to be re-weighted events is discussed. The figures for this paper and the paper itself are stored in the TAUOLA/TauSpinner/examples/applications/.
1.2 Beyond standard model Higgs and Drell–Yan \(2 \rightarrow 2\) processes
With Ref. [12] re-weighting with the help of the production matrix element was introduced and \(wt_{prod}\) of Eq. (11) became available. The methods
setNonSMkey(1);
double getWtNonSM();
were introduced. The facility was prepared for handling the ‘new’ matrix element introduced by the user. The methods
set_nonSM_born(nonSM_adopt);
set_nonSM_bornH(nonSM_adoptH);
were provided. The numerical values of the coupling constants for the default matrix elements of the Tau Spinner can be changed in that way as well. We will exploit that point in context of \(2\rightarrow 4\) processes.
The user provided matrix elements can be defined for the Higgs mediated processes or for the Dell-Yan ones. The algorithm will make a choice which one to use, on the basis of pdgID of the X. With \(wt_{prod}\) one can change the initialization parameters of the Standard Model amplitudes as well.
If no user provided matrix elements are attributed, program will print warning and exit(-1) command will be activated.
1.3 Examples for studies of Higgs parity observables.
The example program and reference numerical results for CP sensitive observables as of Ref. [14] are given in the directory
Tauola/TauSpinner/examples/CP-tests.
The \(wt_{spin}\) is used. The sub-directories with names starting with H- and Z-, are respectively for cases where the signal (Higgs boson) or background (Drell–Yan, Z-production) distributions are studied. The second part of the directory name denotes decay channels of \(\uptau \) leptons, pi for \(\uptau \rightarrow \uppi \upnu \) and rho for \(\uptau \rightarrow \uppi \uppi ^0 \upnu \).
The sub-directory generate-datafiles includes the program to read and generate \(\uptau \) lepton decays for events stored in input Pythia HepMC files. The README file with the instructions is prepared but was not updated now in every detail. The source of the paper [14] is in the directory: TAUOLA/TauSpinner/paper-CP.
1.3.1 CP Higgs
From the algorithmic point of view the introduction of CP-sensitive transverse spin correlations into \(R_{i,j}\) matrix was straightforward and completed in Ref. [14]. The task was simple because due to the zero spin of the Higgs there is no dependence on the Higgs production process. To activate the transverse spin correlations, one should initialize one of the below:
-
setHiggsParametersTR(-1.0, 1.0, 0.0, 0.0); for scalar Higgs,
-
setHiggsParametersTR( 1.0,-1.0, 0.0, 0.0); for pseudo-scalar Higgs,
-
double theta = 0.2; for mixed parity state choose theta for mixing angle and then
setHiggsParametersTR(-cos(2*theta),cos(2*theta), -sin(2*theta),-sin(2*theta));
For the code, see the TAUOLA/TauSpinner/examples/CP-tests and its sub-directories H-pi and H-rho and for the example of results obtained with the methods Refs. [42, 47].
1.3.2 Transverse spin correlations in the background; \(2 \rightarrow 2\) Drell–Yan process
With the help of the tables of EW corrections, the transverse spin effects of \(Z/\upgamma ^*\) mediated processes can be introduced into the sample. As default those terms are switched off. To activate initialization method as explained in Ref. [14],
setZgamMultipliersTR(1., 1., 1., 1. ); has to be used.
User may be interested to introduce transverse spin correlations in part, then some of these coefficients can be set to zero or even one can reverse their sign, by setting multipliers to \(-1.\) If any component of transverse density matrix for Drell–Yan has been turned on using setZgamMultipliersTR, spin weight \(wt_{spin}\) will also take into account transverse spin correlations \(R_{i,j}, i,j=x,y\) (calculated from tables table1-1.txt, table2-2.txt which must be stored in the same directory as the program) by callingFootnote 21 sequence
Tauolapp::TauolaParticlePair pp;
pp.recalculateRij(ID,tau_pdgid,S,cost);
For the code, see TAUOLA/TauSpinner/examples /CP-tests and its sub-directories Z-pi and Z-rho.
1.4 Electroweak corrections
In Ref. [14] it is explained how tables featuring EW one loop effects can be installed into weight calculations. At present, only EW corrections embedded as in the tables of TauSpinner:
/examples/CP-tests/Z-pi/table1-1.txt,
/examples/CP-tests/Z-pi/table2-2.txt
are available. These results do not include line-shape corrections, that is multiloop corrections to vacuum polarization diagrams for quarks. That is why they are of the restricted practical use, except maybe for the forward-backward asymmetry simulation, unless replaced with the better ones originating e.g. from the DIZET library of KKMC program [26] of the LEP time.
If tables are present in the directory of the executable, then they will be read in and used. Then, if
double wt1=Tauola::getEWwt();
double wt0=Tauola::getEWwt0();
is executed, one can also improve the distribution and normalization of the cross section with the wt1/wt0 factor added in the \(wt_{prod}\) event weight and not only take the transverse spin effects discussed above.
1.5 Drell–Yan \(\uptau \) pair production with two jets
Necessary methods were introduced/discussed in Ref. [15]: it turned out of interest to extend calculation of matrix elements to the case where four-momenta of two jets accompany outgoing \(\uptau \) lepton pair, are also used explicitly. This option is invoked,
see the TAUOLA/TauSpinner/examples/example-VBF by call to WT = calculateWeightFromParticlesVBF(p3, p4, X,tau1,tau2, tau1_daughters, tau2_daughters); instead of discussed previously WT = calculateWeightFromParticlesH(...).
The matrix elements replacement necessary for the calculation of the corresponding \(wt_{prod}\) is set by TauSpinner::set_vbfdistrModif(vbfdistrModif); and then initialized with vbfinit_(&ref,&variant); For the non-standard calculation it is then available with setNonSMkey(1);.
In [15] it was found interesting to use this interface to redefine initialization of the parameters in the default matrix elements. Distinct EW schemes can be initialized for standard and non-standard calculations. Variants for running \(\upalpha _S\) can also be distinct for standard and non-standard calculation. Note that the default for non-standard calculation is to use the same set of matrix elements as for the Standard Model calculation. The EW scheme can be nonetheless different (the one corresponding to variant). Also option for distinct scale in calculation of PDFs is prepared. It can be set with setPDFOpt(QCDdefault,QCDvariant); respectively for the default and non-standard calculation. Also a new parametrization of running strong coupling can be introduced with this interface. The default function can be replaced with the user own:
TauSpinner::set_alphasModif(alphasModif);.
These options were already explored in Ref. [15].
1.6 Spin2
So far we have discussed the production weight \(wt_{prod}\) as a tool to re-weight to slightly modified initialization parameters of the Standard Model production model. As demonstrated in Ref. [48], matrix elements calculated for the non-standard type (e.g. for non-standard resonance) may differ substantially from the default-standard mode ones. Invoking TauSpinner:: set_vbfdistrModif(SPIN2::spin2distr); will activate user function, as of our example, the SPIN2:: spin2distr(...,KEY). In this case, user matrix element prototype invokes a whole library which need initialization, see the TAUOLA/TauSpinner/examples /example-VBF/SPIN2. Its organization and initialization is quite similar to the code of the TauSpinner library of \(\uptau \uptau j j\) processes, but it is nonetheless completely independent. The spin2init_(&ref,&variant); has the same parameters as the vbfinit_, but not all of its functionality is at this moment active. The parameter ref is dummy and all constants and coupling are independently initialized, in particular hard coded own value for not-running \(\upalpha _s\) is used. The parameter variant can be used to vary EW scheme though.
One should bear in mind that re-weighting of matrix element require spin weight factor WTME to be included with the \( wt_{prod}\), it has to be calculated as follows:
1.7 Changing matrix elements of \(\uptau \) lepton decays
Ambiguity of choice for the hadronic currents used in simulations may be a source of systematic uncertainties, which is of the interest to be estimated. An attempt for such estimation is shown in the example TAUOLA/TauSpinner/ examples/CLEO-to-RCHL/tau-reweight-CLEO-to-RCHL.cxx
The calculation with the two versions of hadronic currents is possible without any intervention into the code of libraries and interchanged thanks to the method Tauola ::setNewCurrents( int key); where key=0 or key=1 is possible. Once the hadronic current model is set, the usual weight calculation can be performed and double getWtamplitP(); double getWtamplitM(); can be used to obtain matrix elements squared respectively for \(\uptau ^+\) and \(\uptau ^-\) leptons. The ratio of the results for the two versions of hadronic currents will constitute the \(wt_{decay}^{\uptau ^+}\) and \(wt_{decay}^{\uptau ^-}\) weights.
1.8 Not published tests programs
The set of selected test programs, coded without MCTester user analysis helper, are collected in directory TAUOLA/TauSpinner/examples/testsERW.
1.9 Function sigborn
The input parameters are pdgID of incoming partons, virtuality squared of the resonance \(Q^2\) and \(\cos \uptheta \) of the outgoing lepton, the intermediate particle identifier is not passed as an argument. Appropriate choice of the used function is performed by the TauSpinner method calculating spin and production weight.
In case of the SM Higgs boson production, assumed is \(gg \rightarrow H\) production process only, the formula for the lowest-order cross-section summed over all \(\uptau \) lepton helicity configurations using wrapper to disth function from the Tauola code read as follows
In case of BSM Higgs boson following formula is coded
where \( X_{norm}\) (in units of \(\hbox {GeV}^{2}\)) stands for the normalization factor, see Ref. [12]. In case of Drell–Yan process, respective formula reads, using wrapper to t_born function from the Tauola code.
where \(Q^2\) is the virtuality of the resonance, \(\cos \uptheta \) is the cosine of angle between \(\uptau ^+\) lepton and the first beam and last two arguments are helicity states of \(\uptau ^+\) and \(\uptau ^-\) leptons respectively. The \({\mathscr {N}}= 123231 = \sim 2 \cdot \uppi / \upalpha ^2_{QED}\) represent normalization factor. Details of normalization were not studied so far, this was out of scope for the studied applications, as in the \(wt_{spin}\) ratios of \(\upsigma _{Born}\) were used and for \(wt_{prod}\) required precision for \({\mathscr {N}}\) was sufficient, in cases when required precision was higher the ratio of \(\upsigma _{Born}\) was used for \(wt_{prod}\) as well.
The EW parameters are initialized with the setting as in Table 5, using wrappers to initwk_ function from the Tauola library code. In Appendix B.4, it is explained how to activate EW one loop corrections, of physics content as described in Refs. [35, 49] into effective Born angular distributions. Appendices C.7 and D of Ref. [25] document how the scheme of these EW effects calculation can be changed; the example code is stored in TAUOLA/TauSpinner/examples/testsERW/ex4.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
Funded by SCOAP3
About this article
Cite this article
Przedzinski, T., Richter-Was, E. & Was, Z. Documentation of TauSpinner algorithms: program for simulating spin effects in \(\uptau \)-lepton production at LHC. Eur. Phys. J. C 79, 91 (2019). https://doi.org/10.1140/epjc/s10052-018-6527-0
Received:
Accepted:
Published:
DOI: https://doi.org/10.1140/epjc/s10052-018-6527-0