crab_interaction_dd.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* These first two numbers describe the number of ident numbers used to
  2. screen phase space pt.s from files that are to be used in the generation
  3. of correlation functions. These codes may be different than those of the
  4. particles you are investigating. For instance, you may wish to do pi-pi-
  5. correlations and use the phase space pt.s for all 3 species of pions */
  6. #define N1TYPES 1
  7. #define N2TYPES 1
  8. /* These are the identifications. See pdg.lbl.gov/rpp/mcdata/all.mc for a
  9. list of identification numbers */
  10. const int IDENT1[N1TYPES]={721};
  11. const int IDENT2[N2TYPES]={721};
  12. #define MASS1 1875.65
  13. #define MASS2 1875.65
  14. /* Define if particles are identical */
  15. #define IDENTICAL
  16. /* Turn off and on the Coulomb Interaction */
  17. #define COULOMB
  18. /* Turn off and on the Strong Interaction */
  19. #define STRONG_INTERACTION
  20. #define Q1Q2 1
  21. #define INTERACTION_WSYM 0.666667
  22. #define INTERACTION_WANTI 0.333333
  23. /* fractions of symmetric and antisym weights of the various spin channels */
  24. #define INTERACTION_DELK 5.0
  25. /* spacing of mom. mesh for calc. of strong/coul. int. given in MeV/c
  26. and mom. is reduced momentum (1/2 Qinv for m1=m2) */
  27. /* these are used to define both the strong and coulomb meshes */
  28. #define INTERACTION_NKMAX 40
  29. /* number of momentum points in mesh for strong/coul. interaction */
  30. /* DEFINE THE STRONG INTERACTION POTENTIAL */
  31. #ifdef STRONG_INTERACTION
  32. /* Potentials can be found the file crab_potentials.cpp */
  33. #define POTENTIAL vboal
  34. /* These are definitions used for calculating wave func.s */
  35. #define STRONG_NSPINS 2
  36. #define STRONG_NETPARTIALS 2
  37. /* these are used to define both the strong and coulomb meshes */
  38. /* number of spatial points is mesh */
  39. #define STRONG_NRMAX 200
  40. /* The strong interaction is calculated for r<rmax. delr=RMAX/NRMAX */
  41. #define STRONG_RMAX 8.0
  42. /* For calculating wave func.s when r > RMAX, asymptotic forms are used */
  43. /* ************************************************************ */
  44. /* The Following are global variables used for the calculation of wave
  45. functions */
  46. const int STRONG_NPARTIALS[STRONG_NSPINS]={1,1};
  47. /* for various spin channels, this is the number of partial waves in
  48. each spin channel. These numbers should sum up to NETPARTIALS*/
  49. const int STRONG_SYMM[STRONG_NSPINS]={1,1};
  50. /* parity required by spin choice, choose -1 for antisym, 1 for symm.,
  51. and 0 for none. for example, in pp, the s=1 waves would have negative,
  52. while the s=0 wave would have positive. for non-identical particles,
  53. one might choose zero. */
  54. const double STRONG_WEIGHT[STRONG_NSPINS]={0.1111111,0.55555556};
  55. /* weight of spin channels */
  56. const int STRONG_L[STRONG_NETPARTIALS]={0,0};
  57. /* ************************************************************ */
  58. double vboal(double r,int ipart);
  59. double vboal(double r,int ipart){
  60. double pmux,f1,f2,f4,f6,f7,vr;
  61. if(ipart==0){
  62. /* l=0, S=1 */
  63. vr=26.0/(1.+exp((r-1.08)/1.25));
  64. }
  65. if(ipart>0){
  66. /* l=0, S=2 */
  67. vr=29.8/(1.+exp((r-4.21)/.134));
  68. }
  69. return vr;
  70. }
  71. #endif