/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtVSSMix.cc

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Environment:
00004 //      This software is part of the EvtGen package developed jointly
00005 //      for the BaBar and CLEO collaborations.  If you use all or part
00006 //      of it, please give an appropriate acknowledgement.
00007 //
00008 // Copyright Information: See EvtGen/COPYRIGHT
00009 //      Copyright (C) 1998      Caltech, UCSB
00010 //
00011 // Module: EvtVSSMix.cc
00012 //
00013 // Description: Routine to decay vector-> scalar scalar
00014 //
00015 // Modification history:
00016 //
00017 //    RYD       November 24, 1996       Module created
00018 //
00019 //------------------------------------------------------------------------
00020 // 
00021 #include "EvtGenBase/EvtPatches.hh"
00022 #include <stdlib.h>
00023 #include "EvtGenBase/EvtParticle.hh"
00024 #include "EvtGenBase/EvtGenKine.hh"
00025 #include "EvtGenBase/EvtPDL.hh"
00026 #include "EvtGenBase/EvtReport.hh"
00027 #include "EvtGenBase/EvtVector4C.hh"
00028 #include "EvtGenModels/EvtVSSMix.hh"
00029 #include "EvtGenBase/EvtId.hh"
00030 #include <string>
00031 #include "EvtGenBase/EvtConst.hh"
00032 
00033 EvtVSSMix::~EvtVSSMix() {}
00034 
00035 void EvtVSSMix::getName(std::string& model_name){
00036 
00037   model_name="VSS_MIX";     
00038 
00039 }
00040 
00041 
00042 EvtDecayBase* EvtVSSMix::clone(){
00043 
00044   return new EvtVSSMix;
00045 
00046 }
00047 
00048 void EvtVSSMix::init(){
00049 
00050   // check that there are 1 arguments
00051   checkNArg(1);
00052   checkNDaug(2);
00053 
00054   checkSpinParent(EvtSpinType::VECTOR);
00055     
00056   checkSpinDaughter(0,EvtSpinType::SCALAR);
00057   checkSpinDaughter(1,EvtSpinType::SCALAR);
00058 
00059 }
00060 
00061 void EvtVSSMix::initProbMax(){
00062 
00063   setProbMax(0.5);
00064 
00065 }
00066 
00067 void EvtVSSMix::decay( EvtParticle *p ){
00068 
00069   //added by Lange Jan4,2000
00070   static EvtId B0=EvtPDL::getId("B0");
00071   static EvtId B0B=EvtPDL::getId("anti-B0");
00072 
00073   p->initializePhaseSpace(getNDaug(),getDaugs());
00074   EvtParticle *s1,*s2;
00075   s1 = p->getDaug(0);
00076   s2 = p->getDaug(1);
00077   EvtVector4R s1mom = s1->getP4();
00078 
00079   double t1,t2,dm;
00080 
00081   s1->setLifetime();
00082   s2->setLifetime();
00083 
00084   t1=s1->getLifetime();
00085   t2=s2->getLifetime();
00086 
00087   //dm should probably be a parameter to this model.
00088 
00089   dm=getArg(0)/EvtConst::c;
00090 
00091   EvtId d1,d2;
00092 
00093   d1=s1->getId();
00094   d2=s2->getId();
00095 
00096   double mix_amp=0.;
00097   if (d1==B0&&d2==B0B) mix_amp=cos(0.5*dm*(t1-t2));
00098   if (d1==B0B&&d2==B0) mix_amp=cos(0.5*dm*(t1-t2));
00099   if (d1==B0&&d2==B0) mix_amp=sin(0.5*dm*(t1-t2));
00100   if (d1==B0B&&d2==B0B) mix_amp=sin(0.5*dm*(t1-t2));
00101 
00102   double norm=1.0/s1mom.d3mag();
00103 
00104   vertex(0,norm*mix_amp*s1mom*(p->eps(0)));
00105   vertex(1,norm*mix_amp*s1mom*(p->eps(1)));
00106   vertex(2,norm*mix_amp*s1mom*(p->eps(2)));
00107 
00108   return ;
00109 }
00110 

Generated on Tue Nov 29 23:12:23 2016 for BOSS_7.0.2 by  doxygen 1.4.7