1 //--------------------------------------------------------------------------
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.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtSSSCP.cc
13 // Description: Routine to decay scalar -> 2 scalars
15 // Modification history:
17 // RYD November 24, 1996 Module created
19 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
23 #include "EvtGenBase/EvtParticle.hh"
24 #include "EvtGenBase/EvtGenKine.hh"
25 #include "EvtGenBase/EvtCPUtil.hh"
26 #include "EvtGenBase/EvtPDL.hh"
27 #include "EvtGenBase/EvtReport.hh"
28 #include "EvtGenModels/EvtSSSCP.hh"
30 #include "EvtGenBase/EvtConst.hh"
32 EvtSSSCP::~EvtSSSCP() {}
34 std::string EvtSSSCP::getName(){
41 EvtDecayBase* EvtSSSCP::clone(){
47 void EvtSSSCP::init(){
49 // check that there are 7 arguments
52 checkSpinParent(EvtSpinType::SCALAR);
54 checkSpinDaughter(0,EvtSpinType::SCALAR);
55 checkSpinDaughter(1,EvtSpinType::SCALAR);
59 void EvtSSSCP::initProbMax(){
61 //This is probably not quite right, but it should do as a start...
64 setProbMax(2*(getArg(3)*getArg(3)+getArg(5)*getArg(5)));
68 void EvtSSSCP::decay( EvtParticle *p ){
70 //added by Lange Jan4,2000
71 static EvtId B0=EvtPDL::getId("B0");
72 static EvtId B0B=EvtPDL::getId("anti-B0");
77 EvtCPUtil::OtherB(p,t,other_b);
79 p->initializePhaseSpace(getNDaug(),getDaugs());
86 A=EvtComplex(getArg(3)*cos(getArg(4)),getArg(3)*sin(getArg(4)));
87 Abar=EvtComplex(getArg(5)*cos(getArg(6)),getArg(5)*sin(getArg(6)));
90 amp=A*cos(getArg(1)*t/(2*EvtConst::c))+
91 EvtComplex(cos(-2.0*getArg(0)),sin(-2.0*getArg(0)))*
92 getArg(2)*EvtComplex(0.0,1.0)*Abar*sin(getArg(1)*t/(2*EvtConst::c));
95 amp=A*EvtComplex(cos(2.0*getArg(0)),sin(2.0*getArg(0)))*
96 EvtComplex(0.0,1.0)*sin(getArg(1)*t/(2*EvtConst::c))+
97 getArg(2)*Abar*cos(getArg(1)*t/(2*EvtConst::c));