/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtJPE.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: EvtJPE.cc
00012 //
00013 // Description: Routine to decay Vector->photon +pseudoscalar, e.g. J/psi to gamma eta or eta_c
00014 //
00015 // Modification history:
00016 //
00017 //    Ping R.-G.       Apr., 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 "EvtJPE.hh"
00033 #include <string>
00034 using std::endl;
00035 
00036 EvtJPE::~EvtJPE() {}
00037 
00038 void EvtJPE::getName(std::string& model_name){
00039 
00040   model_name="JPE";     
00041 
00042 }
00043 
00044 
00045 EvtDecayBase* EvtJPE::clone(){
00046 
00047   return new EvtJPE;
00048 
00049 }
00050 
00051 void EvtJPE::init(){
00052 static EvtId GAM=EvtPDL::getId("gamma");
00053 // check that there are 0 arguments
00054  checkNArg(0); 
00055  checkNDaug(2);
00056  checkSpinParent(EvtSpinType::VECTOR);
00057  checkSpinDaughter(0,EvtSpinType::PHOTON);
00058  checkSpinDaughter(1,EvtSpinType::SCALAR);
00059  if (!(getDaug(0)==GAM)) {
00060  report(ERROR,"EvtGen") << "EvtJPE generator radiative decays expected "<<endl;
00061  ::abort();
00062 }
00063  }
00064 
00065 
00066 /*
00067 void EvtJPE::initProbMax() {
00068 
00069 //Hard coded... should not be hard to calculate...
00070 setProbMax(1.0);
00071 
00072 }      
00073 */
00074 
00075 void EvtJPE::decay( EvtParticle *p){
00076 
00077   p->initializePhaseSpace(getNDaug(),getDaugs());
00078 
00079   EvtParticle *v,*s1;
00080   EvtVector4R pv,ps,ppr;
00081   
00082   v =p->getDaug(0);  //gamma
00083   s1=p->getDaug(1); //eta_c
00084   pv=v->getP4();
00085   ps=s1->getP4();
00086   ppr=p->getP4();
00087   EvtVector4R pvcm=v->getP4();
00088   
00089 //  Put phase space results into the daughters.
00090   EvtHelSys angles(ppr,pv); //using helicity sys. angles
00091   double theta =angles.getHelAng(1); 
00092   double phi  =angles.getHelAng(2);
00093   double gamma=0;
00094 
00095   double mass_M = EvtPDL::getMass(getParentId());
00096   double Mpsip=fabs(mass_M-3.686);
00097   double Mpsipp=fabs(mass_M-3.771);
00098   double FP=pvcm.d3mag(); //for J/psi and psi(3770) decays, M1 transition  assumed with form factor =1. P-wave gives the p_gamma factor
00099   if(Mpsip<0.1) {FP=FP*FP;} else{FP=1;} //for psi(2S) decays, M1 transition assumed with form factor=k_gamma^2
00100 
00101 
00102   double FM=-FP;
00103  vertex(0,0,Djmn(1, 1, 1,phi,theta,gamma)*FP);  // Jpsi helicity =1 corresponding index=0
00104  vertex(0,1,Djmn(1, 1,-1,phi,theta,gamma)*FM);
00105  vertex(1,0,Djmn(1,-1, 1,phi,theta,gamma)*FP); // Jpsi helicity =-1 corresponding index=1 
00106  vertex(1,1,Djmn(1,-1,-1,phi,theta,gamma)*FM);
00107  vertex(2,0,Djmn(1, 0, 1,phi,theta,gamma)*FP); // Jpsi helicity =0 corresponding index=2
00108  vertex(2,1,Djmn(1, 0,-1,phi,theta,gamma)*FM);
00109 
00110 
00111   return ;
00112 
00113 }
00114 
00115 
00116 
00117 

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