Line data Source code
1 : #include "TauolaEvent.h"
2 : #include "Plots.h"
3 :
4 : using namespace std;
5 :
6 : namespace Tauolapp
7 : {
8 :
9 : void TauolaEvent::undecayTaus(){
10 :
11 0 : std::vector<TauolaParticle*> particle_list;
12 0 : particle_list = findParticles(Tauola::getDecayingParticle());
13 :
14 0 : for(int p=0; p < (int) particle_list.size(); p++)
15 0 : particle_list.at(p)->findLastSelf()->undecay();
16 :
17 0 : }
18 :
19 : void TauolaEvent::decayTaus(){
20 :
21 0 : std::vector<TauolaParticle*> particle_list;
22 0 : particle_list = findStableParticles(Tauola::getDecayingParticle());
23 :
24 0 : while(particle_list.size()!=0){
25 :
26 : // tau and its matching tau-like partner is removed from the list here:
27 0 : TauolaParticlePair t_pair(particle_list);
28 :
29 : //t_pair.print();
30 0 : t_pair.decayTauPair();
31 0 : t_pair.checkMomentumConservation();
32 0 : }
33 :
34 : // Final event record modifications
35 0 : eventEndgame();
36 0 : }
37 :
38 : } // namespace Tauolapp
|