/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtdFunction.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: EvtKine.cc
00012 //
00013 // Description: Evaluates the Wigner d-Functions.
00014 //
00015 // Modification history:
00016 //
00017 //    RYD            March 14, 1999         Module created
00018 //
00019 //------------------------------------------------------------------------
00020 // 
00021 #include "EvtGenBase/EvtPatches.hh"
00022 #include <stdlib.h>
00023 #include <math.h>
00024 #include <iostream>
00025 #include <assert.h>
00026 #include "EvtGenBase/EvtdFunction.hh"
00027 #include "EvtGenBase/EvtdFunctionSingle.hh"
00028 
00029 
00030 double EvtdFunction::d(int j,int m1,int m2, double theta){
00031 
00032 
00033   int m1p=m1;
00034   int m2p=m2;
00035 
00036 
00037   int signp=1;
00038   //make |m2p|>|m1p|
00039   if (abs(m2p)<abs(m1p)) {
00040     int tmp=m1p;
00041     m1p=m2p;
00042     m2p=tmp;
00043     if ((m1p-m2p)%4!=0) signp=-signp;
00044   } 
00045 
00046   //make m2p non-negative
00047   if (m2p<0) {
00048     m1p=-m1p;
00049     m2p=-m2p;
00050     if ((m1p-m2p)%4!=0) signp=-signp;
00051   }
00052 
00053 
00054   EvtdFunctionSingle df;
00055 
00056   df.init(j,m1p,m2p);
00057 
00058   double d=df.d(j,m1p,m2p,theta)*signp;
00059 
00060   return d;
00061   
00062 }
00063 
00064 
00065 

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