BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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 "
EvtTauVectornu.hh
"
23
#include "
../EvtGenBase/EvtDiracSpinor.hh
"
24
#include "
../EvtGenBase/EvtGenKine.hh
"
25
#include "
../EvtGenBase/EvtPDL.hh
"
26
#include "
../EvtGenBase/EvtParticle.hh
"
27
#include "
../EvtGenBase/EvtPatches.hh
"
28
#include "
../EvtGenBase/EvtReport.hh
"
29
#include "
../EvtGenBase/EvtVector4C.hh
"
30
#include <iostream>
31
#include <stdlib.h>
32
#include <string>
33
34
EvtTauVectornu::~EvtTauVectornu
() {}
35
36
void
EvtTauVectornu::getName
( std::string& model_name ) { model_name =
"TAUVECTORNU"
; }
37
38
EvtDecayBase
*
EvtTauVectornu::clone
() {
return
new
EvtTauVectornu
; }
39
40
void
EvtTauVectornu::init
() {
41
42
// check that there are 0 arguments
43
checkNArg
( 0 );
44
checkNDaug
( 2 );
45
46
checkSpinParent
(
EvtSpinType::DIRAC
);
47
48
checkSpinDaughter
( 0,
EvtSpinType::VECTOR
);
49
checkSpinDaughter
( 1,
EvtSpinType::NEUTRINO
);
50
}
51
52
void
EvtTauVectornu::initProbMax
() {
setProbMax
( 55.0 ); }
53
54
void
EvtTauVectornu::decay
(
EvtParticle
* p ) {
55
56
static
EvtId
TAUM =
EvtPDL::getId
(
"tau-"
);
57
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
58
59
EvtParticle
*
v
, *nut;
60
v
= p->
getDaug
( 0 );
61
nut = p->
getDaug
( 1 );
62
double
mvec =
v
->mass();
63
EvtVector4C
tau1, tau2;
64
65
if
( p->
getId
() == TAUM )
66
{
67
tau1 =
EvtLeptonVACurrent
( nut->
spParentNeutrino
(), p->
sp
( 0 ) );
68
tau2 =
EvtLeptonVACurrent
( nut->
spParentNeutrino
(), p->
sp
( 1 ) );
69
}
70
else
71
{
72
tau1 =
EvtLeptonVACurrent
( p->
sp
( 0 ), nut->
spParentNeutrino
() );
73
tau2 =
EvtLeptonVACurrent
( p->
sp
( 1 ), nut->
spParentNeutrino
() );
74
}
75
76
double
norm = mvec * sqrt( mvec );
77
78
vertex
( 0, 0, norm * tau1 * (
v
->epsParent( 0 ).conj() ) );
79
vertex
( 0, 1, norm * tau1 * (
v
->epsParent( 1 ).conj() ) );
80
vertex
( 0, 2, norm * tau1 * (
v
->epsParent( 2 ).conj() ) );
81
vertex
( 1, 0, norm * tau2 * (
v
->epsParent( 0 ).conj() ) );
82
vertex
( 1, 1, norm * tau2 * (
v
->epsParent( 1 ).conj() ) );
83
vertex
( 1, 2, norm * tau2 * (
v
->epsParent( 2 ).conj() ) );
84
85
return
;
86
}
EvtLeptonVACurrent
EvtVector4C EvtLeptonVACurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
Definition
EvtDiracSpinor.cc:162
EvtDiracSpinor.hh
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtTauVectornu.hh
EvtVector4C.hh
v
**********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
EvtDecayAmp::vertex
void vertex(const EvtComplex &)
Definition
EvtDecayAmp.hh:36
EvtDecayBase::checkSpinDaughter
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
Definition
EvtDecayBase.cc:492
EvtDecayBase::checkSpinParent
void checkSpinParent(EvtSpinType::spintype sp)
Definition
EvtDecayBase.cc:479
EvtDecayBase::EvtDecayBase
EvtDecayBase()
Definition
EvtDecayBase.cc:205
EvtDecayBase::setProbMax
void setProbMax(double prbmx)
Definition
EvtDecayBase.cc:261
EvtDecayBase::getNDaug
int getNDaug()
Definition
EvtDecayBase.hh:67
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition
EvtDecayBase.cc:465
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition
EvtDecayBase.hh:68
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition
EvtDecayBase.cc:449
EvtId
Definition
EvtId.hh:27
EvtPDL::getId
static EvtId getId(const std::string &name)
Definition
EvtPDL.cc:272
EvtParticle
Definition
EvtParticle.hh:42
EvtParticle::getId
EvtId getId() const
Definition
EvtParticle.cc:100
EvtParticle::spParentNeutrino
virtual EvtDiracSpinor spParentNeutrino() const
Definition
EvtParticle.cc:648
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition
EvtParticle.cc:80
EvtParticle::sp
virtual EvtDiracSpinor sp(int) const
Definition
EvtParticle.cc:636
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cc:1042
EvtSpinType::NEUTRINO
@ NEUTRINO
Definition
EvtSpinType.hh:36
EvtSpinType::DIRAC
@ DIRAC
Definition
EvtSpinType.hh:34
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:32
EvtTauVectornu::clone
EvtDecayBase * clone()
Definition
EvtTauVectornu.cc:38
EvtTauVectornu::~EvtTauVectornu
virtual ~EvtTauVectornu()
Definition
EvtTauVectornu.cc:34
EvtTauVectornu::initProbMax
void initProbMax()
Definition
EvtTauVectornu.cc:52
EvtTauVectornu::getName
void getName(std::string &name)
Definition
EvtTauVectornu.cc:36
EvtTauVectornu::EvtTauVectornu
EvtTauVectornu()
Definition
EvtTauVectornu.hh:31
EvtTauVectornu::decay
void decay(EvtParticle *p)
Definition
EvtTauVectornu.cc:54
EvtTauVectornu::init
void init()
Definition
EvtTauVectornu.cc:40
EvtVector4C
Definition
EvtVector4C.hh:31
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtTauVectornu.cc
Generated by
1.16.1