10 #include "Tauola/Tauola.h"
11 #include "Tauola/TauolaHEPEVTParticle.h"
12 #include "Tauola/TauolaHEPEVTEvent.h"
14 #include "tauola_print_parameters.h"
16 using namespace Tauolapp;
24 double e_mass_sq = parmas_.amell*parmas_.amell;
25 double tau_mass_sq = parmas_.amtau*parmas_.amtau;
29 double e1_e = sqrt(e1_pz*e1_pz + e_mass_sq);
30 double e2_e = sqrt(e2_pz*e2_pz + e_mass_sq);
43 TauolaHEPEVTParticle *cms_boost =
new TauolaHEPEVTParticle( 0, 0, 0., 0., e1_pz+e2_pz,e1_e+e2_e,0., -1, -1, -1, -1);
45 TauolaHEPEVTParticle *first_e =
new TauolaHEPEVTParticle(-11, 3, 0., 0., e1_pz, e1_e, parmas_.amell, -1, -1, 2, 3);
46 TauolaHEPEVTParticle *second_e =
new TauolaHEPEVTParticle( 11, 3, 0., 0., e2_pz, e2_e, parmas_.amell, -1, -1, 2, 3);
47 TauolaHEPEVTParticle *first_tau =
new TauolaHEPEVTParticle(-15, 1, 0., 0., 0., 0., parmas_.amtau, 0, 1, -1, -1);
48 TauolaHEPEVTParticle *second_tau =
new TauolaHEPEVTParticle( 15, 1, 0., 0., 0., 0., parmas_.amtau, 0, 1, -1, -1);
60 double tau_energy = 0.5*sqrt( (e1_e+e2_e)*(e1_e+e2_e) - (e1_pz+e2_pz)*(e1_pz+e2_pz) );
62 first_tau->
setE (tau_energy);
63 first_tau->
setPx ((1.0/sqrt(2.0))*sqrt(tau_energy*tau_energy-tau_mass_sq));
64 first_tau->
setPy ((1.0/sqrt(2.0))*sqrt(tau_energy*tau_energy-tau_mass_sq));
66 second_tau->
setE (tau_energy);
67 second_tau->
setPx(-1*(1.0/sqrt(2.0))*sqrt(tau_energy*tau_energy-tau_mass_sq));
68 second_tau->
setPy(-1*(1.0/sqrt(2.0))*sqrt(tau_energy*tau_energy-tau_mass_sq));
82 int NumberOfEvents = 10;
85 Tauola::setDecayingParticle(15);
86 Tauola::setSameParticleDecayMode(0);
87 Tauola::setOppositeParticleDecayMode(0);
91 tauola_print_parameters();
94 for (
int iEvent = 0; iEvent < NumberOfEvents; ++iEvent) {
99 cout <<
"event BEFORE decays:"<<endl;
104 cout <<
"event AFTER decays:"<<endl;
void boostFromRestFrame(TauolaParticle *boost)
void addParticle(TauolaHEPEVTParticle *p)