SetCuts.C 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /** Configuration macro for setting common cuts and processes for G3, G4 and Fluka (M. Al-Turany 27.03.2008)
  2. specific cuts and processes to g3 or g4 should be set in the g3Config.C, g4Config.C or flConfig.C
  3. */
  4. void SetCuts()
  5. {
  6. cout << "SetCuts Macro: Setting Processes.." <<endl;
  7. // ------>>>> IMPORTANT!!!!
  8. // For a correct comparison between GEANE and MC (pull distributions)
  9. // or for a simulation without the generation of secondary particles:
  10. // 1. set LOSS = 2, DRAY = 0, BREM = 1
  11. // 2. set the following cut values: CUTGAM, CUTELE, CUTNEU, CUTHAD, CUTMUO = 1 MeV or less
  12. // BCUTE, BCUTM, DCUTE, DCUTM, PPCUTM = 10 TeV
  13. // (For an explanation of the chosen values, please refer to the GEANT User's Guide
  14. // or to message #5362 in the PandaRoot Forum >> Monte Carlo Engines >> g3Config.C thread)
  15. //
  16. // The default settings refer to a complete simulation which generates and follows also the secondary particles.
  17. gMC->SetProcess("PAIR",1); /** pair production*/
  18. gMC->SetProcess("COMP",1); /**Compton scattering*/
  19. gMC->SetProcess("PHOT",1); /** photo electric effect */
  20. gMC->SetProcess("PFIS",0); /**photofission*/
  21. gMC->SetProcess("DRAY",1); /**delta-ray*/
  22. gMC->SetProcess("ANNI",1); /**annihilation*/
  23. gMC->SetProcess("BREM",1); /**bremsstrahlung*/
  24. gMC->SetProcess("HADR",3); /**hadronic process*/
  25. gMC->SetProcess("MUNU",1); /**muon nuclear interaction*/
  26. gMC->SetProcess("DCAY",1); /**decay*/
  27. gMC->SetProcess("LOSS",1); /**energy loss*/
  28. gMC->SetProcess("MULS",1); /**multiple scattering*/
  29. Double_t cut1 = 1.0E-3; // GeV --> 1 MeV
  30. Double_t tofmax = 1.E10; // seconds
  31. cout << "SetCuts Macro: Setting cuts.." <<endl;
  32. gMC->SetCut("CUTGAM",cut1); /** gammas (GeV)*/
  33. gMC->SetCut("CUTELE",cut1); /** electrons (GeV)*/
  34. gMC->SetCut("CUTNEU",cut1); /** neutral hadrons (GeV)*/
  35. gMC->SetCut("CUTHAD",cut1); /** charged hadrons (GeV)*/
  36. gMC->SetCut("CUTMUO",cut1); /** muons (GeV)*/
  37. gMC->SetCut("BCUTE",cut1); /** electron bremsstrahlung (GeV)*/
  38. gMC->SetCut("BCUTM",cut1); /** muon and hadron bremsstrahlung(GeV)*/
  39. gMC->SetCut("DCUTE",cut1); /** delta-rays by electrons (GeV)*/
  40. gMC->SetCut("DCUTM",cut1); /** delta-rays by muons (GeV)*/
  41. gMC->SetCut("PPCUTM",cut1); /** direct pair production by muons (GeV)*/
  42. gMC->SetCut("TOFMAX",tofmax); /**time of flight cut in seconds*/
  43. }