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

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 //
00004 // Copyright Information: See EvtGen/COPYRIGHT
00005 //
00006 // Environment:
00007 //      This software is part of the EvtGen package developed jointly
00008 //      for the BaBar and CLEO collaborations.  If you use all or part
00009 //      of it, please give an appropriate acknowledgement.
00010 //
00011 // Module: EvtBtoXsgammaAliGreub.cc
00012 //
00013 // Description: Routine to perform two-body non-resonant B->Xs,gamma decays.
00014 // It generates an X_s mass spectrum based on a parameterisation of the
00015 // b->s,gamma photon spectrum of Ali-Greub. The resultant X_s particles may
00016 // be decayed by JETSET.
00017 //
00018 // Modification history:
00019 //
00020 //    Mark Ian Williams       July 20, 2000       Module created
00021 //    Mark Ian Williams       July 21, 2000       Module works
00022 //    Mark Ian Williams       July 25, 2000       Works for all Xs modes
00023 //    Mark Ian Williams       Aug  09, 2000       New values for mass minima
00024 //    Mark Ian Williams       Sept 06, 2000       14 parameter M_Xs function
00025 //    Mark Ian Williams       Sept 07, 2000       18 parameter M_Xs function
00026 //    Mark Ian Williams       Sept 07, 2000       Tidied up the code
00027 //    Mark Ian Williams       Sept 10, 2000       Updated parameters
00028 //    Mark Ian Williams       Sept 11, 2000       Finalised code
00029 //    Jane Tinslay            March 21, 2000      Separated from EvtBtoXsgamma 
00030 //                                                class to allow choice of input models.
00031 //------------------------------------------------------------------------
00032 //
00033 #include "EvtGenBase/EvtPatches.hh"
00034 
00035 #include <stdlib.h>
00036 #include "EvtGenBase/EvtRandom.hh"
00037 #include "EvtGenModels/EvtBtoXsgammaAliGreub.hh"
00038 #include <string>
00039 #include "EvtGenBase/EvtConst.hh"
00040 #include "EvtGenBase/EvtParticle.hh"
00041 #include "EvtGenBase/EvtGenKine.hh"
00042 #include "EvtGenBase/EvtPDL.hh"
00043 #include "EvtGenBase/EvtReport.hh"
00044 using std::endl;
00045 
00046 
00047 EvtBtoXsgammaAliGreub::~EvtBtoXsgammaAliGreub(){}
00048 
00049 void EvtBtoXsgammaAliGreub::init(int nArg, double* args){
00050  
00051   if ((nArg - 1) != 0) {
00052     
00053     report(ERROR,"EvtGen") << "EvtBtoXsgamma generator model "
00054                            << "EvtBtoXsgammaAliGreub expected " 
00055                            << "zero arguments but found: "<<nArg-1<<endl;
00056     report(ERROR,"EvtGen") << "Will terminate execution!"<<endl;
00057     ::abort();
00058   
00059   }
00060  
00061 }
00062 
00063 double EvtBtoXsgammaAliGreub::GetMass(int Xscode) {
00064 
00065   // The special lineshape for strange hadrons X_s in b -> s gamma:
00066   // An 18 parameter function fitted to the theoretical mass spectrum
00067   // of Ali & Greub for a B meson mass of 5.279 GeV; top quark mass of
00068   // 174.3 GeV; strange quark mass of 0.48 GeV (tuned to give minimum 
00069   // M_Xs of 0.64 GeV) and Fermi momentum of 265 MeV for spectator quark
00070   // mass of 150 MeV (from CLEO fit). Truncated at max on high side
00071   // and min (just above K pi or KK thresold) on low side.
00072   double min=0.64;
00073   double max=4.5;
00074   double xbox, ybox, alifit;
00075   double mass=0.0;
00076 
00077   double par[18];
00078   if ((Xscode == 30343) || (Xscode == -30343) || 
00079       (Xscode == 30353) || (Xscode == -30353)) { // Xsu or Xsd
00080     min=0.6373; //  Just above K pi threshold for Xsd/u
00081     //min=0.6333; //  K pi threshold for neutral Xsd
00082     par[0]=-2057.2380371094;
00083     par[1]=2502.2556152344;
00084     par[2]=1151.5632324219;
00085     par[3]=0.82431584596634;
00086     par[4]=-4110.5234375000;
00087     par[5]=8445.6757812500;
00088     par[6]=-3034.1894531250;
00089     par[7]=1.1557708978653;
00090     par[8]=1765.9311523438;
00091     par[9]=1.3730158805847;
00092     par[10]=0.51371538639069;
00093     par[11]=2.0056934356689;
00094     par[12]=37144.097656250;
00095     par[13]=-50296.781250000;
00096     par[14]=27319.095703125;
00097     par[15]=-7408.0678710938;
00098     par[16]=1000.8093261719;
00099     par[17]=-53.834449768066;
00100   } else if ((Xscode == 30363) || (Xscode == -30363)) {
00101     min = 0.9964; // Just above KK threshold for Xss
00102     par[0]=-32263.908203125;
00103     par[1]=57186.589843750;
00104     par[2]=-24230.728515625;
00105     par[3]=1.1155973672867;
00106     par[4]=-12161.131835938;
00107     par[5]=20162.146484375;
00108     par[6]=-7198.8564453125;
00109     par[7]=1.3783323764801;
00110     par[8]=1995.1691894531;
00111     par[9]=1.4655895233154;
00112     par[10]=0.48869228363037;
00113     par[11]=2.1038570404053;
00114     par[12]=55100.058593750;
00115     par[13]=-75201.703125000;
00116     par[14]=41096.066406250;
00117     par[15]=-11205.986328125;
00118     par[16]=1522.4024658203;
00119     par[17]=-82.379623413086;
00120   } else {
00121     report(DEBUG,"EvtGen") << "In EvtBtoXsgammaAliGreub: Particle with id " << Xscode << " is not a Xss particle"<<endl;
00122     return 0;
00123   }
00124 
00125   double boxheight=par[8];
00126   double boxwidth=max-min;
00127 
00128   while ((mass > max) || (mass < min)){
00129     xbox = EvtRandom::Flat(boxwidth)+min;
00130     ybox=EvtRandom::Flat(boxheight);
00131     if (xbox<par[3]) {
00132       alifit=par[0]+par[1]*xbox+par[2]*pow(xbox,2);
00133     } else if (xbox<par[7]) {
00134       alifit=par[4]+par[5]*xbox+par[6]*pow(xbox,2);
00135     } else if (xbox<par[11]) {
00136       alifit=par[8]*exp(-0.5*pow((xbox-par[9])/par[10],2));
00137     } else {
00138       alifit=par[12]+par[13]*xbox+par[14]*pow(xbox,2)+par[15]*pow(xbox,3)+par[16]*pow(xbox,4)+par[17]*pow(xbox,5);
00139     }
00140     if (ybox>alifit) {
00141       mass=0.0;
00142     } else {
00143       mass=xbox;
00144     }
00145   }
00146   return mass;
00147 }

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