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

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Environment:
00004 //      This software is part of models developed at BES collaboration
00005 //      based on the EvtGen framework.  If you use all or part
00006 //      of it, please give an appropriate acknowledgement.
00007 //
00008 // Copyright Information: See EvtGen/BesCopyright
00009 //      Copyright (A) 2006      Ping Rong-Gang @IHEP
00010 //
00011 // Module: EvtChi2BB1.cc
00012 //
00013 // Description: Routine to decay Chi2 to B8 B8bar.
00014 //              
00015 // Modification history:
00016 //
00017 // Pang C.Y. and Ping R.-G.       April, 2007       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/EvtVector4C.hh"
00027 #include "EvtGenBase/EvtVector4R.hh"
00028 #include "EvtGenBase/EvtTensor4C.hh"
00029 #include "EvtGenBase/EvtReport.hh"
00030 #include "EvtGenBase/EvtdFunction.hh"
00031 #include "EvtGenBase/EvtHelSys.hh"
00032 #include "EvtChi2BB1.hh"
00033 #include <string>
00034 using std::endl;
00035 
00036 EvtChi2BB1::~EvtChi2BB1() {}
00037 
00038 void EvtChi2BB1::getName(std::string& model_name){
00039 
00040   model_name="Chi2BB1";     
00041 
00042 }
00043 
00044 
00045 EvtDecayBase* EvtChi2BB1::clone(){
00046 
00047   return new EvtChi2BB1;
00048 
00049 }
00050 
00051 void EvtChi2BB1::init(){
00052 // check that there are 0 arguments
00053  checkNArg(2); 
00054  checkNDaug(2);
00055  checkSpinParent(EvtSpinType::TENSOR);
00056  checkSpinDaughter(0,EvtSpinType::DIRAC);
00057  checkSpinDaughter(1,EvtSpinType::DIRAC);
00058 
00059  }
00060 
00061 /*
00062 void EvtChi2BB1::initProbMax() {
00063 
00064   //Hard coded... should not be hard to calculate...
00065  setProbMax(100.0);
00066 
00067 }      
00068 */
00069 
00070 void EvtChi2BB1::decay( EvtParticle *p){
00071 
00072   p->initializePhaseSpace(getNDaug(),getDaugs());
00073 
00074   EvtParticle *v,*s1;
00075   EvtVector4R pv,ps,ppr;
00076   
00077   v =p->getDaug(0);  
00078   s1=p->getDaug(1); 
00079   pv=v->getP4();
00080   ps=s1->getP4();
00081   ppr=p->getP4();
00082 
00083 //  Put phase space results into the daughters.
00084   EvtHelSys angles(ppr,pv); //using helicity sys. angles
00085   double theta =angles.getHelAng(1); 
00086   double phi  =angles.getHelAng(2);
00087   double gamma=0;
00088 
00089   double F01=getArg(0);
00090   double F00=getArg(1); 
00091   double F10=F01;
00092   double F11=F00;
00093 
00094  vertex(0,0,0,Djmn(2, 0, 0,phi,theta,gamma)*F00);//Chi1  helicity =0 corresponding index=0
00095  vertex(0,0,1,Djmn(2, 0, 1,phi,theta,gamma)*F01);
00096  vertex(0,1,0,Djmn(2, 0,-1,phi,theta,gamma)*F10);
00097  vertex(0,1,1,Djmn(2, 0, 0,phi,theta,gamma)*F11);
00098 
00099  vertex(1,0,0,Djmn(2, 2, 0,phi,theta,gamma)*F00);//Chi1  helicity =2 corresponding index=1
00100  vertex(1,0,1,Djmn(2, 2, 1,phi,theta,gamma)*F01);
00101  vertex(1,1,0,Djmn(2, 2,-1,phi,theta,gamma)*F10);
00102  vertex(1,1,1,Djmn(2, 2, 0,phi,theta,gamma)*F11);
00103 
00104  vertex(2,0,0,Djmn(2,-2, 0,phi,theta,gamma)*F00);//Chi1  helicity =-2 corresponding index=2
00105  vertex(2,0,1,Djmn(2,-2, 1,phi,theta,gamma)*F01);
00106  vertex(2,1,0,Djmn(2,-2,-1,phi,theta,gamma)*F10);
00107  vertex(2,1,1,Djmn(2,-2, 0,phi,theta,gamma)*F11);
00108 
00109  vertex(3,0,0,Djmn(2, 1, 0,phi,theta,gamma)*F00);//Chi1  helicity =1 corresponding index=3
00110  vertex(3,0,1,Djmn(2, 1, 1,phi,theta,gamma)*F01);
00111  vertex(3,1,0,Djmn(2, 1,-1,phi,theta,gamma)*F10);
00112  vertex(3,1,1,Djmn(2, 1, 0,phi,theta,gamma)*F11);
00113 
00114  vertex(4,0,0,Djmn(2,-1, 0,phi,theta,gamma)*F00);//Chi1  helicity =-1 corresponding index=4
00115  vertex(4,0,1,Djmn(2,-1, 1,phi,theta,gamma)*F01);
00116  vertex(4,1,0,Djmn(2,-1,-1,phi,theta,gamma)*F10);
00117  vertex(4,1,1,Djmn(2,-1, 0,phi,theta,gamma)*F11);
00118 
00119   return ;
00120 
00121 }
00122 
00123 
00124 
00125 

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