BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSLN.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: EvtSLN.cc
12//
13// Description: B ==> tau + nu
14//
15// Modification history:
16//
17// RYD/SHY April 23, 1997 Module created
18//
19//------------------------------------------------------------------------
20//
22#include <stdlib.h>
23#include <iostream>
24#include <string>
26#include "EvtGenBase/EvtPDL.hh"
32
34
35void EvtSLN::getName(std::string& model_name){
36
37 model_name="SLN";
38
39}
40
42
43 return new EvtSLN;
44
45}
46
47
49
50 // check that there are 0 arguments
51 checkNArg(0);
52 checkNDaug(2);
53
55
58
59}
60
61
63
65 double m=EvtPDL::getMeanMass(getDaug(0));
66
67 double probMax=8.0*(M*M-m*m)*m*m;
68
69 setProbMax(probMax);
70
71}
72
73
75
76 static EvtId EM=EvtPDL::getId("e-");
77 static EvtId MUM=EvtPDL::getId("mu-");
78 static EvtId TAUM=EvtPDL::getId("tau-");
79
81
82 EvtParticle *l, *nul;
83 l= p->getDaug(0);
84 nul= p->getDaug(1);
85
86 EvtVector4R p4_p;
87 p4_p.set(p->mass(),0.0,0.0,0.0);
88
89 EvtVector4C l1, l2;
90
91 if (getDaug(0)==TAUM || getDaug(0)==MUM || getDaug(0)==EM) {
94 }
95 else{
98 }
99
100 vertex(0,p4_p*l1);
101 vertex(1,p4_p*l2);
102
103 return;
104
105}
106
107
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)
EvtId getParentId()
Definition: EvtDecayBase.hh:60
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)
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
Definition: EvtId.hh:27
static double getMeanMass(EvtId i)
Definition: EvtPDL.hh:45
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
virtual EvtDiracSpinor spParentNeutrino() const
Definition: EvtParticle.cc:634
virtual EvtDiracSpinor spParent(int) const
Definition: EvtParticle.cc:608
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:84
double mass() const
Definition: EvtParticle.cc:126
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
void initProbMax()
Definition: EvtSLN.cc:62
virtual ~EvtSLN()
Definition: EvtSLN.cc:33
EvtDecayBase * clone()
Definition: EvtSLN.cc:41
void getName(std::string &name)
Definition: EvtSLN.cc:35
void decay(EvtParticle *p)
Definition: EvtSLN.cc:74
EvtSLN()
Definition: EvtSLN.hh:34
void init()
Definition: EvtSLN.cc:48
void set(int i, double d)
Definition: EvtVector4R.hh:183