BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtTauVectornu.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: EvtTauVectornu.cc
12//
13// Description: The vector decay of the tau meson.
14// E.g., tau- -> rho- + nut
15//
16// Modification history:
17//
18// RYD/SHY April 23, 1997 Module created
19//
20//------------------------------------------------------------------------
21//
22#include "EvtGenBase/EvtPatches.hh"
23#include <stdlib.h>
24#include <iostream>
25#include <string>
26#include "EvtGenBase/EvtParticle.hh"
27#include "EvtGenBase/EvtPDL.hh"
28#include "EvtGenBase/EvtGenKine.hh"
29#include "EvtGenModels/EvtTauVectornu.hh"
30#include "EvtGenBase/EvtDiracSpinor.hh"
31#include "EvtGenBase/EvtReport.hh"
32#include "EvtGenBase/EvtVector4C.hh"
33
35
36void EvtTauVectornu::getName(std::string& model_name){
37
38 model_name="TAUVECTORNU";
39
40}
41
42
44
45 return new EvtTauVectornu;
46
47}
48
50
51 // check that there are 0 arguments
52 checkNArg(0);
53 checkNDaug(2);
54
56
59}
60
62
63 setProbMax(55.0);
64
65}
66
68
69 static EvtId TAUM=EvtPDL::getId("tau-");
71
72 EvtParticle *v, *nut;
73 v=p->getDaug(0);
74 nut=p->getDaug(1);
75 double mvec = v->mass();
76 EvtVector4C tau1, tau2;
77
78 if (p->getId()==TAUM) {
79 tau1=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(0));
80 tau2=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(1));
81 }
82 else{
83 tau1=EvtLeptonVACurrent(p->sp(0),nut->spParentNeutrino());
84 tau2=EvtLeptonVACurrent(p->sp(1),nut->spParentNeutrino());
85 }
86
87 double norm=mvec*sqrt(mvec);
88
89 vertex(0,0,norm*tau1*(v->epsParent(0).conj()));
90 vertex(0,1,norm*tau1*(v->epsParent(1).conj()));
91 vertex(0,2,norm*tau1*(v->epsParent(2).conj()));
92 vertex(1,0,norm*tau2*(v->epsParent(0).conj()));
93 vertex(1,1,norm*tau2*(v->epsParent(1).conj()));
94 vertex(1,2,norm*tau2*(v->epsParent(2).conj()));
95
96 return;
97
98}
99
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
EvtVector4C EvtLeptonVACurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
static EvtId getId(const std::string &name)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)