]>
Commit | Line | Data |
---|---|---|
0ca57c2f | 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 | std::vector<TauolaParticle*> particle_list; | |
12 | particle_list = findParticles(Tauola::getDecayingParticle()); | |
13 | ||
14 | for(int p=0; p < (int) particle_list.size(); p++) | |
15 | particle_list.at(p)->findLastSelf()->undecay(); | |
16 | ||
17 | } | |
18 | ||
19 | void TauolaEvent::decayTaus(){ | |
20 | ||
21 | std::vector<TauolaParticle*> particle_list; | |
22 | particle_list = findStableParticles(Tauola::getDecayingParticle()); | |
23 | ||
24 | while(particle_list.size()!=0){ | |
25 | ||
26 | // tau and its matching tau-like partner is removed from the list here: | |
27 | TauolaParticlePair t_pair(particle_list); | |
28 | ||
29 | //t_pair.print(); | |
30 | t_pair.decayTauPair(); | |
31 | t_pair.checkMomentumConservation(); | |
32 | } | |
33 | ||
34 | // Final event record modifications | |
35 | eventEndgame(); | |
36 | } | |
37 | ||
38 | } // namespace Tauolapp |