Mult2Cent.c 535 B

123456789101112131415161718192021
  1. //
  2. // Created by peter on 8/27/19.
  3. //
  4. // Based on 200 GeV Au+Au PHSD
  5. int cent8(int mult)
  6. {
  7. int fcent;
  8. if (mult >= 671) fcent = 0; // 0-10%
  9. if (mult >= 402 && mult < 671) fcent = 1; //10-20%
  10. if (mult >= 245 && mult < 402) fcent = 2; //20-30%
  11. if (mult >= 146 && mult < 245) fcent = 3; //30-40%
  12. if (mult >= 80 && mult < 146) fcent = 4; //40-50%
  13. if (mult >= 38 && mult < 80) fcent = 5; //50-60%
  14. if (mult >= 16 && mult < 38) fcent = 6; //60-70%
  15. if (mult >= 6 && mult < 16) fcent = 7; //70-80%
  16. return fcent;
  17. }