BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSVVCP.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: EvtSVVCP.cc
12//
13// Description: The decay of a scalar to two vector particles are
14// performed with CP violation. E.g. B->J/psi K*.
15//
16// Modification history:
17//
18// RYD January 19, 1997 Module created
19//
20//------------------------------------------------------------------------
21//
22#include "EvtGenBase/EvtPatches.hh"
23#include <stdlib.h>
24#include "EvtGenBase/EvtParticle.hh"
25#include "EvtGenBase/EvtGenKine.hh"
26#include "EvtGenBase/EvtCPUtil.hh"
27#include "EvtGenBase/EvtPDL.hh"
28#include "EvtGenModels/EvtSVVHelAmp.hh"
29#include "EvtGenBase/EvtReport.hh"
30#include "EvtGenModels/EvtSVVCP.hh"
31#include "EvtGenBase/EvtId.hh"
32#include <string>
33#include "EvtGenBase/EvtConst.hh"
34
36
37void EvtSVVCP::getName(std::string& model_name){
38
39 model_name="SVV_CP";
40
41}
42
43
45
46 return new EvtSVVCP;
47
48}
49
51
52 // check that there are 9 arguments
53 checkNArg(9);
54 checkNDaug(2);
55
57
60
61}
62
64
65 //This is probably not quite right, but it should do as a start...
66 //Anders
67
68 setProbMax(2*(getArg(3)*getArg(3)+getArg(5)*getArg(5)+getArg(7)*getArg(7)));
69
70}
71
73
74 //added by Lange Jan4,2000
75 static EvtId B0=EvtPDL::getId("B0");
76 static EvtId B0B=EvtPDL::getId("anti-B0");
77
78 double t;
79 EvtId other_b;
80
81 EvtCPUtil::OtherB(p,t,other_b);
82
83 EvtComplex G0P,G1P,G1M;
84
85 G1P=EvtComplex(getArg(3)*cos(getArg(4)),getArg(3)*sin(getArg(4)));
86 G0P=EvtComplex(getArg(5)*cos(getArg(6)),getArg(5)*sin(getArg(6)));
87 G1M=EvtComplex(getArg(7)*cos(getArg(8)),getArg(7)*sin(getArg(8)));
88
89 EvtComplex lambda_km=EvtComplex(cos(-2*getArg(0)),sin(-2*getArg(0)));
90
91 double cdmt=cos(getArg(1)*t/(2*EvtConst::c));
92 double sdmt=sin(getArg(1)*t/(2*EvtConst::c));
93
94 EvtComplex cG0P,cG1P,cG1M;
95
96 if (other_b==B0B){
97 cG0P=G0P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
98 cG1P=G1P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
99 cG1M=G1M*(cdmt-lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
100 }
101 if (other_b==B0){
102 cG0P=G0P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
103 cG1P=G1P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
104 cG1M=-G1M*(cdmt-(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
105
106 }
107
108 EvtComplex A0,AP,AM;
109
110 A0=cG0P/sqrt(2.0);
111 AP=(cG1P+cG1M)/sqrt(2.0);
112 AM=(cG1P-cG1M)/sqrt(2.0);
113
114 EvtSVVHelAmp::SVVHel(p,_amp2,getDaug(0),getDaug(1),AP,A0,AM);
115
116 return ;
117}
118
double sin(const BesAngle a)
Definition: BesAngle.h:210
double cos(const BesAngle a)
Definition: BesAngle.h:213
TTree * t
Definition: binning.cxx:23
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
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)
static void SVVHel(EvtParticle *parent, EvtAmp &amp, EvtId n_v1, EvtId n_v2, const EvtComplex &hp, const EvtComplex &h0, const EvtComplex &hm)