C++InterfacetoTauola
mainpage.h
1 /**
2 
3  @mainpage C++ Interface to Tauola
4  @brief Description of Tauola Interface in C++. WARNING for Doxygen sub-pages: Namespaces, Data Structures, Files, Directorises. All describe the development version. For the release of particular choice, its doxygen documentation is included in the corresponding distribution tar-ball.
5 
6  @authors Nadia Davidson, Gizo Nanava, Tomasz Przedzinski, Elzbieta Richter-Was, Zbigniew Was
7 
8 
9 
10  @section download1 New release
11 
12  The source code and documentation for Tauola release 1.1.8 (and of TauSpinner release 2.0.6)
13  - <a href="resources/TAUOLA.1.1.8/Tauola_interface_design.1.1.8.pdf">Tauola_interface_design.1.1.8.pdf</a> full software documentation includes updates with respect to
14 the preprint version.
15  - <a href="resources/TAUOLA.1.1.8/TAUOLA.1.1.8-LHC.tar.gz">TAUOLA source code for the LHC</a>
16 (or <a href="resources/TAUOLA.1.1.8/TAUOLA.1.1.8.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
17  enabling changes of code/models for tau decay hadronic currents)
18 tarball and its <a href="resources/TAUOLA.1.1.8/svn_info_tauola.1.1.8.txt">revision info</a> SVN tag, tarball
19 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.8/changelog.1.1.8.txt">changelog.txt</a>, for Tauspinner technical documentation see also arXiv:1802.05459.
20 
21  <b>IMPORTANT NOTE:</b> Starting from release v1.1.8 we have added HepMC3 support (HepMC3 is avialble on the official <a href="https://hepmc.web.cern.ch/hepmc/">HepMC website</a>).
22  HEPEVT and HepMC libraries are now separated, which means <b>changes to the list of linked libraries are necessary</b>.
23 
24  @section developement Developement version
25 
26  The source code and documentation are updated daily from the repository as well. The following files are provided for download of the developement version:
27  - <a href="resources/TAUOLA.development.version/Tauola_interface_design.development.version.pdf">Tauola_interface_design.pdf</a> full software documentation.
28  - <a href="resources/TAUOLA.development.version/TAUOLA.development.version-LHC.tar.gz">TAUOLA source code for the LHC</a>
29 (or <a href="resources/TAUOLA.development.version/TAUOLA.development.version.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>) tarball and its <a href="resources/TAUOLA.development.version/svn_info_tauola.development.version.txt">revision info</a> SVN tag, tarball creation date/time, etc.
30 For updates with respect to release 1.0 see <a href="resources/TAUOLA.development.version/changelog.development.version.txt">changelog.txt</a>, for Tauspinner technical documentation on electroweak corrections see also arXiv:1808.08616 .
31 
32  @section download Older releases
33 
34  The source code and documentation for release 1.0. The following files are provided for download:
35  - <a href="http://arxiv.org/abs/1002.0543">arXiv:1002.0543</a> full software documentation.
36  - <a href="resources/TAUOLA.1.0.tar.gz">TAUOLA source code </a> tarball.
37 
38  The source code and documentation for release 1.0.2
39  - <a href="resources/TAUOLA.1.0.2/Tauola_interface_design.1.0.2.pdf">Tauola_interface_design.1.0.2.pdf</a> full software documentation includes updates with respect to
40 the preprint version.
41  - <a href="resources/TAUOLA.1.0.2/TAUOLA.1.0.2-LHC.tar.gz">TAUOLA source code for LHC</a>
42 (or <a href="resources/TAUOLA.1.0.2/TAUOLA.1.0.2.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
43  enabling changes of code/models for tau decay hadronic currents)
44 tarball and its <a href="resources/TAUOLA.1.0.2/svn_info_tauola.1.0.2.txt">revision info</a> SVN tag, tarball
45 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.0.2/changelog.1.0.2.txt">changelog.txt</a>.
46 
47  The source code and documentation for release 1.0.4
48  - <a href="resources/TAUOLA.1.0.4/Tauola_interface_design.1.0.4.pdf">Tauola_interface_design.1.0.4.pdf</a> full software documentation includes updates with respect to
49 the preprint version.
50  - <a href="resources/TAUOLA.1.0.4/TAUOLA.1.0.4-LHC.tar.gz">TAUOLA source code for the LHC</a>
51 (or <a href="resources/TAUOLA.1.0.4/TAUOLA.1.0.4.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
52  enabling changes of code/models for tau decay hadronic currents)
53 tarball and its <a href="resources/TAUOLA.1.0.4/svn_info_tauola.1.0.4.txt">revision info</a> SVN tag, tarball
54 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.0.4/changelog.1.0.4.txt">changelog.txt</a>.
55 
56  The source code and documentation for release 1.0.5
57  - <a href="resources/TAUOLA.1.0.5/Tauola_interface_design.1.0.5.pdf">Tauola_interface_design.1.0.5.pdf</a> full software documentation includes updates with respect to
58 the preprint version.
59  - <a href="resources/TAUOLA.1.0.5/TAUOLA.1.0.5-LHC.tar.gz">TAUOLA source code for the LHC</a>
60 (or <a href="resources/TAUOLA.1.0.5/TAUOLA.1.0.5.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
61  enabling changes of code/models for tau decay hadronic currents)
62 tarball and its <a href="resources/TAUOLA.1.0.5/svn_info_tauola.1.0.5.txt">revision info</a> SVN tag, tarball
63 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.0.5/changelog.1.0.5.txt">changelog.txt</a>.
64 
65  The source code and documentation for release 1.0.6
66  - <a href="resources/TAUOLA.1.0.6/Tauola_interface_design.1.0.6.pdf">Tauola_interface_design.1.0.6.pdf</a> full software documentation includes updates with respect to
67 the preprint version.
68  - <a href="resources/TAUOLA.1.0.6/TAUOLA.1.0.6-LHC.tar.gz">TAUOLA source code for the LHC</a>
69 (or <a href="resources/TAUOLA.1.0.6/TAUOLA.1.0.6.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
70  enabling changes of code/models for tau decay hadronic currents)
71 tarball and its <a href="resources/TAUOLA.1.0.6/svn_info_tauola.1.0.6.txt">revision info</a> SVN tag, tarball
72 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.0.6/changelog.1.0.6.txt">changelog.txt</a>.
73 
74  The source code and documentation for release 1.0.7
75  - <a href="resources/TAUOLA.1.0.7/Tauola_interface_design.1.0.7.pdf">Tauola_interface_design.1.0.7.pdf</a> full software documentation includes updates with respect to
76 the preprint version.
77  - <a href="resources/TAUOLA.1.0.7/TAUOLA.1.0.7-LHC.tar.gz">TAUOLA source code for the LHC</a>
78 (or <a href="resources/TAUOLA.1.0.7/TAUOLA.1.0.7.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
79  enabling changes of code/models for tau decay hadronic currents)
80 tarball and its <a href="resources/TAUOLA.1.0.7/svn_info_tauola.1.0.7.txt">revision info</a> SVN tag, tarball
81 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.0.7/changelog.1.0.7.txt">changelog.txt</a>.
82 
83  The source code and documentation for release 1.1.0
84  - <a href="resources/TAUOLA.1.1.0/Tauola_interface_design.1.1.0.pdf">Tauola_interface_design.1.1.0.pdf</a> full software documentation includes updates with respect to
85 the preprint version.
86  - <a href="resources/TAUOLA.1.1.0/TAUOLA.1.1.0-LHC.tar.gz">TAUOLA source code for the LHC</a>
87 (or <a href="resources/TAUOLA.1.1.0/TAUOLA.1.1.0.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
88  enabling changes of code/models for tau decay hadronic currents)
89 tarball and its <a href="resources/TAUOLA.1.1.0/svn_info_tauola.1.1.0.txt">revision info</a> SVN tag, tarball
90 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.0/changelog.1.1.0.txt">changelog.txt</a>. Starting from this version <a href="http://arxiv.org/abs/1201.0117">TauSpinner </a>was merged into TAUOLA source code.
91 
92  The source code and documentation for release 1.1.1
93  - <a href="resources/TAUOLA.1.1.1/Tauola_interface_design.1.1.1.pdf">Tauola_interface_design.1.1.1.pdf</a> full software documentation includes updates with respect to
94 the preprint version.
95  - <a href="resources/TAUOLA.1.1.1/TAUOLA.1.1.1-LHC.tar.gz">TAUOLA source code for the LHC</a>
96 (or <a href="resources/TAUOLA.1.1.1/TAUOLA.1.1.1.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
97  enabling changes of code/models for tau decay hadronic currents)
98 tarball and its <a href="resources/TAUOLA.1.1.1/svn_info_tauola.1.1.1.txt">revision info</a> SVN tag, tarball
99 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.1/changelog.1.1.1.txt">changelog.txt</a>.
100 
101 - \b NOTE: this version was erroneously made public for three days (Nov 20-22) and lacks numerical protecting code against rounding errors for TauSpinner operation on events with bremsstrahlung in leptonic decays.
102 Version 1.1.1a should be used instead.
103 For the period of time Nov 23 - Nov 27 this (1.1.1) version number was attributed to the code of version 1.1.1a but svn label was not updated at that time.
104 
105  The source code and documentation for release 1.1.1a
106  - <a href="resources/TAUOLA.1.1.1a/Tauola_interface_design.1.1.1a.pdf">Tauola_interface_design.1.1.1a.pdf</a> full software documentation includes updates with respect to
107 the preprint version.
108  - <a href="resources/TAUOLA.1.1.1a/TAUOLA.1.1.1a-LHC.tar.gz">TAUOLA source code for the LHC</a>
109 (or <a href="resources/TAUOLA.1.1.1a/TAUOLA.1.1.1a.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
110  enabling changes of code/models for tau decay hadronic currents)
111 tarball and its <a href="resources/TAUOLA.1.1.1a/svn_info_tauola.1.1.1a.txt">revision info</a> SVN tag, tarball
112 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.1a/changelog.1.1.1a.txt">changelog.txt</a>.
113 
114  - \b NOTE: for downloads Nov 20-27 2012 please check note for version 1.1.1.
115 
116  The source code and documentation for release 1.1.3
117  - <a href="resources/TAUOLA.1.1.3/Tauola_interface_design.1.1.3.pdf">Tauola_interface_design.1.1.3.pdf</a> full software documentation includes updates with respect to
118 the preprint version.
119  - <a href="resources/TAUOLA.1.1.3/TAUOLA.1.1.3-LHC.tar.gz">TAUOLA source code for the LHC</a>
120 (or <a href="resources/TAUOLA.1.1.3/TAUOLA.1.1.3.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
121  enabling changes of code/models for tau decay hadronic currents)
122 tarball and its <a href="resources/TAUOLA.1.1.3/svn_info_tauola.1.1.3.txt">revision info</a> SVN tag, tarball
123 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.3/changelog.1.1.3.txt">changelog.txt</a>.
124 
125  The source code and documentation for release 1.1.4
126  - <a href="resources/TAUOLA.1.1.4/Tauola_interface_design.1.1.4.pdf">Tauola_interface_design.1.1.4.pdf</a> full software documentation includes updates with respect to
127 the preprint version.
128  - <a href="resources/TAUOLA.1.1.4/TAUOLA.1.1.4-LHC.tar.gz">TAUOLA source code for the LHC</a>
129 (or <a href="resources/TAUOLA.1.1.4/TAUOLA.1.1.4.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
130  enabling changes of code/models for tau decay hadronic currents)
131 tarball and its <a href="resources/TAUOLA.1.1.4/svn_info_tauola.1.1.4.txt">revision info</a> SVN tag, tarball
132 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.4/changelog.1.1.4.txt">changelog.txt</a>.
133 
134  The source code and documentation for release 1.1.5
135  - <a href="resources/TAUOLA.1.1.5/Tauola_interface_design.1.1.5.pdf">Tauola_interface_design.1.1.5.pdf</a> full software documentation includes updates with respect to
136 the preprint version.
137  - <a href="resources/TAUOLA.1.1.5/TAUOLA.1.1.5-LHC.tar.gz">TAUOLA source code for the LHC</a>
138 (or <a href="resources/TAUOLA.1.1.5/TAUOLA.1.1.5.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
139  enabling changes of code/models for tau decay hadronic currents)
140 tarball and its <a href="resources/TAUOLA.1.1.5/svn_info_tauola.1.1.5.txt">revision info</a> SVN tag, tarball
141 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.5/changelog.1.1.5.txt">changelog.txt</a>.
142 
143  The source code and documentation for Tauola release 1.1.6 (and of TauSpinner release 2.0.0)
144  - <a href="resources/TAUOLA.1.1.6/Tauola_interface_design.1.1.6.pdf">Tauola_interface_design.1.1.6.pdf</a> full software documentation includes updates with respect to
145 the preprint version.
146  - <a href="resources/TAUOLA.1.1.6/TAUOLA.1.1.6-LHC.tar.gz">TAUOLA source code for the LHC</a>
147 (or <a href="resources/TAUOLA.1.1.6/TAUOLA.1.1.6.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
148  enabling changes of code/models for tau decay hadronic currents)
149 tarball and its <a href="resources/TAUOLA.1.1.6/svn_info_tauola.1.1.6.txt">revision info</a> SVN tag, tarball
150 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.6/changelog.1.1.6.txt">changelog.txt</a>.
151 
152  The source code and documentation for Tauola release 1.1.6b (and of TauSpinner release 2.0.1)
153  - <a href="resources/TAUOLA.1.1.6b/Tauola_interface_design.1.1.6b.pdf">Tauola_interface_design.1.1.6b.pdf</a> full software documentation includes updates with respect to
154 the preprint version.
155  - <a href="resources/TAUOLA.1.1.6b/TAUOLA.1.1.6b-LHC.tar.gz">TAUOLA source code for the LHC</a>
156 (or <a href="resources/TAUOLA.1.1.6b/TAUOLA.1.1.6b.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
157  enabling changes of code/models for tau decay hadronic currents)
158 tarball and its <a href="resources/TAUOLA.1.1.6b/svn_info_tauola.1.1.6b.txt">revision info</a> SVN tag, tarball
159 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.6b/changelog.1.1.6b.txt">changelog.txt</a>.
160 
161  The source code and documentation for Tauola release 1.1.6c (and of TauSpinner release 2.0.3)
162  - <a href="resources/TAUOLA.1.1.6c/Tauola_interface_design.1.1.6c.pdf">Tauola_interface_design.1.1.6c.pdf</a> full software documentation includes updates with respect to
163 the preprint version.
164  - <a href="resources/TAUOLA.1.1.6c/TAUOLA.1.1.6c-LHC.tar.gz">TAUOLA source code for the LHC</a>
165 (or <a href="resources/TAUOLA.1.1.6c/TAUOLA.1.1.6c.tar.gz">TAUOLA source code with full TAUOLA FORTRAN</a>
166  enabling changes of code/models for tau decay hadronic currents)
167 tarball and its <a href="resources/TAUOLA.1.1.6c/svn_info_tauola.1.1.6c.txt">revision info</a> SVN tag, tarball
168 creation date/time, etc. For updates with respect to release 1.0 see <a href="resources/TAUOLA.1.1.6c/changelog.1.1.6c.txt">changelog.txt</a>.
169  - Note: on some platforms the cpp pre-compiler which we use for archiving versions of fortran add into the code gnu licence in c++ comment format. This issue started with gcc 4.8.2. It has been fixed in new release.
170  - Solution: in TAUOLA/make.inc set: CPPFLAGS= -C -P -traditional-cpp -nostdinc
171 
172  @section intro Introduction/Status
173 
174  At present (since Feb 2 2010) the C++ interface functionality for TAUOLA is complete.
175  Longitudinal spin correlation are checked using <a href="http://mc-tester.web.cern.ch/MC-TESTER/">
176  MC-TESTER</a> now. Transverse spin correlations and full functionality of TAUOLA Universal Interface
177  are coded. Genuine electroweak corrections for processes mediated by Z/gamma are implemented as well.
178 
179  The tar file contains the C++ interface along with the source code for tauola itself (as available from <a href="http://wasm.web.cern.ch/wasm/goodies.html">old web page</a>; version Oct 11 2005).
180  The developement version contains the latest source code for the interface from our subversion repository. Note that
181  revision numbers, dates and other info for this development version can be found in the revision information file listed above.
182 
183  At present, the tar ball includes everything that is needed for installation. The user is advised to use HepMC 2.04+ libraries as described below.
184 
185  @section setup Requirements
186 
187  For compilation, and to run the simple example, the interface requires:
188  - <a href="http://lcgapp.cern.ch/project/simu/HepMC/">HepMC v2.04</a> or later.
189 
190  For further examples, one need to also install:
191  - <a href="http://root.cern.ch/drupal/">ROOT v5.18</a> or later
192  - <a href="http://home.thep.lu.se/~torbjorn/Pythia.html">PYTHIA 8.1</a> or later. PYTHIA must be compiled with HepMC 2 so that the PYTHIA library hepmcinterface exists.
193  - <a href="http://mc-tester.web.cern.ch/MC-TESTER/">MC-TESTER v1.24</a> or later. Do not forget to compile the additional HepMC library libHepMCEvent as well.
194 
195  Examples of TAUOLA C++ combined with PHOTOS and its C++ interface are available from:
196 - <a href="http://photospp.web.cern.ch/">
197 PHOTOS C++</a> official webpage.
198 
199 
200 
201  @section compile Configuration and Compilation
202 
203  In order to compile the TAUOLA C++ interface:
204  - Execute './configure' with additional command line options:
205  - '--with-hepmc=<path> ' provides the path to HepMC installation directory. One can set HEPMCLOCATION variable instead of using this directive. This options is required for interface to compile. To compile without HepMC use '--without-hepmc'
206  - '--prefix=<path>' provides the installation path. The 'include' and 'lib' directories will be copied there if 'make install' is executed later. If none has been provided, the default directory for installation is '/usr/local'.
207  - Execute 'make'
208  - Optionally, execute 'make install' to copy files to the directory provided during configuration.
209 
210  After compiling the 'tauola-fortran' part, the TAUOLA C++ interface will be compiled and the '/lib' and '/include' directories will contain the appropriate library and include files.
211 
212  In order to compile the examples, enter the 'examples' directory, and:
213  - execute './configure' to determine which examples can be compiled. Additional paths can be provided as command line options:
214  - '--with-pythia8=<path>' provides the path to the Pythia8 installation directory. One can set the PYTHIALOCATION variable instead of using this directive. This path is required for all additional examples and tests.
215  - '--with-mc-tester=<path>' provides the path to the MC-Tester installation directory (libHepMCEvent must be compiled as well, check MC-Tester documentation for more details). One can set the MCTESTERLOCATION variable instead of using this directive. This path is required for all additional examples and tests. It is assumed that using this option also implies that ROOT has already been installed (since it's required by MC-TESTER). The location of its binaries should be listed in the PATH variable.
216  - execute 'make'
217 
218  Note that for examples working with PYTHIA 8.1, the PYTHIA8DATA global variable must be set (refer to instructions provided during configuration).
219  Similarly, for examples in the examples/testing directory to work, the MCTESTERLOCATION global variable must be set.
220  If neither PYTHIA nor MC-TESTER are present, only the simple example will be provided. The '/examples' directory will contain the compiled example files.
221 
222  If you prefer not to use configuration scripts,
223  you may find <a href="resources/doxygen/README-NO-CONFIG.txt">README-NO-CONFIG.txt</a> useful.
224 
225  @section testing Testing
226 
227  In order to run some more specific tests both PYTHIA and MC-TESTER must be installed.
228  - Compile TAUOLA C++ interface as well as examples.
229  - Check that the appropriate system variables are set: normally set by the script
230  configure.paths.sh [.csh] (the configuration step mentions this script).
231  - Enter the /examples/testing directory. Modify test.inc if needed.
232  - Enter the selected directory and execute 'make'.
233 
234  The appropriate .root files as well as .pdf files generated by MC-TESTER will be created inside the chosen directory. You can execute 'make clobber' to clean the directory. You can also execute 'make' inside the 'TAUOLA/examples/testing' directory to run all available tests one after another.
235 
236  @section sanc SANC
237  Electroweak corrections may affect spin correlations between tau+ and tau- in a significant way. This is the case at high energies,
238 far above WW threshold. At present we use the alpha scheme for electroweak calculations, this choice may not be optimal for the
239 cross section weight aiming at implementation of electroweak corrections. For this, the end scheme should be consistent with the choice
240 of the host generator. On the other hand this is not the problem for spin correlations, our prime interest. In addition, if tables are used, transverse spin correlations for processes mediated by Z and gamma are taken into account.
241 
242 Changes to the tables generated by the SANC module can be implemented by modifying the interface located in the '/SANC' directory. Details regarding the structure and initialization variables of the interface are described in the documentation. In order to generate new tables:
243  - execute 'make' in the '/SANC' directory to compile the library and tools.
244  - Adjust the initialization in the SANC tables calculation if needed.
245  - execute 'make tables' in the '/SANC' directory to generate the tables.
246  - move tables to the directory from which your main program is executed.
247 
248  <hr>
249  @section description Description of the code
250 
251  @image html tauola_interface_design.png "Design of Interface. Components are described in more detail below."
252 
253  @subsection outline Algorithm Outline
254 
255  The simplified version of the main program structure including the tauola decay routines would consist of:
256  - initialize the Monte Carlo generator and all other generators / analysis tools.
257  - set the appropriate parameters for the Tauola interface.
258  - invoke the Tauola::initialize() routine.
259  - for each event to be generated:
260  - generate an event using any Monte Carlo generator
261  - convert a generated event to the HepMC event record
262  - create a TauolaHepMCEvent from a HepMC event object
263  - invoke decayTaus() for the TauolaHepMCEvent object. If a tau has already been decayed by a MC generator, use undecayTaus() first.
264  - the HepMC event is now prepared and can be used in the analysis
265  - finalize the analysis
266  - print any summary output if needed and exit
267 
268  @subsection flow Flow of Control
269 
270  The following is a more detailed example point by point of how a tau, or set of taus, are decayed using the interface with the HepMC event record implementation.
271 
272  Starting from the main program:
273  - At the initialization step, appropriate configuration routines via the 'Tauola' class methods can be executed.
274  - The Tauola::initialize() method must be invoked, which calls the Initialize() methods in f_Init, which in turn calls the initilization routines of TAUOLA.
275 
276  In the main event loop, after the HepMC event is filled by a Monte Carlo generator:
277  - An appropriate implementation of the abstract class TauolaEvent - TauolaHepMCEvent object must be created, taking a HepMC::GenEvent object as its parameter.
278  - The method decayTaus() for the created TauolaHepMCEvent object must be invoked. If the Monte Carlo generator has already performed the decays of a tau, the undecayTaus() method can be executed just before the decayTaus() method.
279 
280  After executing decayTaus(), the following procedure takes place:
281  - The HepMC event record is traversed and a list of stable taus in the event is created.
282  - the taus from the list are paired with other decay products (e.g. tau neutrino or second tau). If the pair consists of two taus, the second tau is removed from the previous list.
283  - TauolaParticlePairs are then created from these pairings.
284  - For each pair, the spin density matrix is calculated using information about the production process.
285  - The decayTauPairs() method is called for each pair. Within this method:
286  - For each tau in the pair, decay() is called.
287  - the decay method in TauolaParticle is responsible for adding itself
288  (the tau) to the DecayList in the first position. It then calls
289  decay() in f_Decay which in turn calls the dekay_() routine of TAUOLA.
290  - dekay_() in TAUOLA generates a set of daughter particles with
291  momentum as though the tau was decayed in its rest frame.
292  - The dekay_() also provides a polarimetric vector, which is used in combination with spin density matrix to calculate the spin weight. It is used to determine whether the decay is accepted or not.
293  - If rejected, the list of decay products is cleared and the pair is decayed anew. This way unweighting of spin effects is performed.
294  - Once accepted, for each tau in the pair the routine addDecayToEventRecord() is executed, which in turn calls TAUOLA dekay_() with an option set to write to the event record.
295  - For each daughter TAUOLA calls filhep_() in the file f_FilHep.c.
296  - filhep_() adds a new TauolaHepMCParticle to DecayList with all necessary information taken from TAUOLA.
297  - The DecayList data structure translates the parent index given by TAUOLA to a pointer to the TauolaParticle(TauolaHepMCParticle) object.
298  - The parents are set via the TauolaParticle methods (setMother, etc.) By setting the mothers it is automatically assigned a barcode and added to the HepMC event.
299  - The particle is boosted by the tau's momentum.
300  - The position of the vertex of the particle is modified accordingly to the tau lifetime.
301  - Control is then returned to TauolaHepMCEvent which proceeds onto the next pair.
302  - When all pairs are decayed, the TauolaHepMCEvent converts the HepMC::GenEvent to the units selected by the user (GeV/MeV mm/cm) and finalizes execution. The loop in the main program proceeds to the next event.
303 
304 <!--
305  @section event_rec Notes About the Event Record
306  This section in future will describe examples of events, particularly unusual ones,
307  which the TAUOLA Interface will nonetheless need to be able to handle, but which were not discussed at the time
308 of writing the documentation. At present this point is basically empty, except one example. Such type of events is already discussed in
309 the documentation.
310  - <a href="resources/pythia_event.pdf">example of a pythia event</a> with
311  non-conservation of momentum and tau->tau type vertices.
312 
313  @section to_do Things to do
314 
315 See software documentation in pdf form.
316 -->
317 
318  <hr>
319 Last update; usually last night by the robot, see the doxygen time below and revision info of the development version.
320 */