BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtTaulnunu.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of the EvtGen package developed jointly
5// for the BaBar and CLEO collaborations. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtTaulnunu.cc
12//
13// Description: The leptonic decay of the tau meson.
14// E.g., tau- -> e- nueb nut
15//
16// Modification history:
17//
18// RYD January 17, 1997 Module created
19//
20//------------------------------------------------------------------------
21//
23#include <stdlib.h>
24#include <iostream>
25#include <string>
27#include "EvtGenBase/EvtPDL.hh"
33
35
36void EvtTaulnunu::getName(std::string& model_name){
37
38 model_name="TAULNUNU";
39
40}
41
42
44
45 return new EvtTaulnunu;
46
47}
48
50
51 // check that there are 0 arguments
52 checkNArg(0);
53 checkNDaug(3);
54
56
60
61}
62
64
65 setProbMax(650.0);
66
67}
68
70 static EvtId TAUM=EvtPDL::getId("tau-");
71
73
74 EvtParticle *l, *nul, *nut;
75
76 l = p->getDaug(0);
77 nul = p->getDaug(1);
78 nut = p->getDaug(2);
79
80 EvtVector4C l1, l2, tau1, tau2;
81
82 if (p->getId()==TAUM) {
83
84 tau1=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(0));
85 tau2=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(1));
88
89 }
90 else{
91 tau1=EvtLeptonVACurrent(p->sp(0),nut->spParentNeutrino());
92 tau2=EvtLeptonVACurrent(p->sp(1),nut->spParentNeutrino());
95 }
96
97 vertex(0,0,tau1*l1);
98 vertex(0,1,tau1*l2);
99 vertex(1,0,tau2*l1);
100 vertex(1,1,tau2*l2);
101
102 return;
103
104}
105
EvtVector4C EvtLeptonVACurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition: EvtId.hh:27
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
EvtId getId() const
Definition: EvtParticle.cc:113
virtual EvtDiracSpinor spParentNeutrino() const
Definition: EvtParticle.cc:633
virtual EvtDiracSpinor spParent(int) const
Definition: EvtParticle.cc:607
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
virtual EvtDiracSpinor sp(int) const
Definition: EvtParticle.cc:620
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
void decay(EvtParticle *p)
Definition: EvtTaulnunu.cc:69
void initProbMax()
Definition: EvtTaulnunu.cc:63
void getName(std::string &name)
Definition: EvtTaulnunu.cc:36
virtual ~EvtTaulnunu()
Definition: EvtTaulnunu.cc:34
EvtDecayBase * clone()
Definition: EvtTaulnunu.cc:43
void init()
Definition: EvtTaulnunu.cc:49