CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSVVCPLH.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) 1999 Caltech, UCSB
10//
11// Module: EvtSVVCPLH.cc
12//
13// Description: The decay of a scalar to two vector particles are
14// performed with CP violation and different widths for
15// the cpe even and od states. E.g. Bs->J/psi phi.
16//
17// Modification history:
18//
19// RYD November 5, 1999 Module created
20//
21//------------------------------------------------------------------------
22//
24#include <stdlib.h>
28#include "EvtGenBase/EvtPDL.hh"
32#include "EvtGenBase/EvtId.hh"
33#include <string>
35using std::endl;
36
38
39void EvtSVVCPLH::getName(std::string& model_name){
40
41 model_name="SVV_CPLH";
42
43}
44
45
47
48 return new EvtSVVCPLH;
49
50}
51
53
54 // check that there are 9 arguments
55 checkNArg(9);
56 checkNDaug(2);
57
59
62
63}
64
66
67 //This is probably not quite right, but it should do as a start...
68 //Anders
69
70 setProbMax(2*(getArg(3)*getArg(3)+getArg(5)*getArg(5)+getArg(7)*getArg(7)));
71
72}
73
75
76 //added by Lange Jan4,2000
77 static EvtId BS0=EvtPDL::getId("B_s0");
78 static EvtId BSB=EvtPDL::getId("anti-B_s0");
79
80 double t;
81 EvtId other_b;
82
83 EvtCPUtil::OtherB(p,t,other_b);
84
85 EvtComplex G0P,G1P,G1M;
86
87 G1P=EvtComplex(getArg(3)*cos(getArg(4)),getArg(3)*sin(getArg(4)));
88 G0P=EvtComplex(getArg(5)*cos(getArg(6)),getArg(5)*sin(getArg(6)));
89 G1M=EvtComplex(getArg(7)*cos(getArg(8)),getArg(7)*sin(getArg(8)));
90
91 EvtComplex lambda_km=EvtComplex(cos(2*getArg(0)),sin(2*getArg(0)));
92
93 double cdmt=cos(getArg(1)*t/(2*EvtConst::c));
94 double sdmt=sin(getArg(1)*t/(2*EvtConst::c));
95
96 EvtComplex cG0P,cG1P,cG1M;
97
98 static double ctauL=EvtPDL::getctau(EvtPDL::getId("B_s0L"));
99 static double ctauH=EvtPDL::getctau(EvtPDL::getId("B_s0H"));
100 static double ctau=ctauL<ctauH?ctauH:ctauL;
101
102
103 //I'm not sure if the fabs() is right when t can be
104 //negative as in the case of Bs produced coherently.
105 double pt=1;
106 double mt=exp(-fabs(t*(ctauL-ctauH)/(ctauL*ctauH)));
107
108 if (other_b==BSB){
109 cG0P=pt*G0P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
110 cG1P=pt*G1P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
111 cG1M=mt*G1M*(cdmt-lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
112 }
113 else if (other_b==BS0){
114 cG0P=pt*G0P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
115 cG1P=pt*G1P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
116 cG1M=-mt*G1M*(cdmt-(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
117 }
118 else{
119 report(ERROR,"EvtGen") << "other_b was not BSB or BS0!"<<endl;
120 ::abort();
121 }
122
123 EvtComplex A0,AP,AM;
124
125 A0=cG0P/sqrt(2.0);
126 AP=(cG1P+cG1M)/sqrt(2.0);
127 AM=(cG1P-cG1M)/sqrt(2.0);
128
129 EvtSVVHelAmp::SVVHel(p,_amp2,getDaug(0),getDaug(1),AP,A0,AM);
130
131 return ;
132}
133
134
135
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49
double sin(const BesAngle a)
double cos(const BesAngle a)
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition: EvtCPUtil.cc:229
static const double c
Definition: EvtConst.hh:32
EvtAmp _amp2
Definition: EvtDecayAmp.hh:66
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
double getArg(int j)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
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 EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
static double getctau(EvtId i)
Definition: EvtPDL.hh:55
void getName(std::string &name)
Definition: EvtSVVCPLH.cc:39
void init()
Definition: EvtSVVCPLH.cc:52
void decay(EvtParticle *p)
Definition: EvtSVVCPLH.cc:74
void initProbMax()
Definition: EvtSVVCPLH.cc:65
virtual ~EvtSVVCPLH()
Definition: EvtSVVCPLH.cc:37
EvtDecayBase * clone()
Definition: EvtSVVCPLH.cc:46
static void SVVHel(EvtParticle *parent, EvtAmp &amp, EvtId n_v1, EvtId n_v2, const EvtComplex &hp, const EvtComplex &h0, const EvtComplex &hm)
Definition: EvtSVVHelAmp.cc:85
int t()
Definition: t.c:1