Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is how you would select what physics generator you want to use (for normal DY or J/Psi use pythia):

const bool gen_pythia8  = true;
const bool gen_cosmic   = false;
const bool gen_gun      = false;
const bool gen_particle = false;
const bool read_hepmc   = false;
const bool gen_e906legacy = false;

Basic Configurations for the simulations:

const double target_coil_pos_z = -300;
  const int nmu = 1;
  int embedding_opt = 0;
  const bool genlegacy_rec_pythia8 container = true;

  const bool do_collimator = true;
  const bool gendo_cosmic   = false;
target = true;
  const bool do_e1039_shielding = true;
  const bool do_fmag = true;
  const bool gendo_gun     kmag = true;
  const bool do_absorber = true;
  const bool do_dphodo = falsetrue;
  const bool gendo_particlestation1DC = false;       //station-1 drift chamber should be turned off by default

  const double target_l = 7.9; //cm
  const bool read_hepmc   = false;
const bool gen_e906legacy = false double target_z = (7.9-target_l)/2.; //cm
  const int use_g4steps = 1;

  const double FMAGSTR = -1.044;
  const double KMAGSTR = -1.025;


gen_pythia8:

   1. If you want to use Pythia8, you can load the config file using this function. pythia8->set_config_file("phpythia8_DY.cfg") or pythia8->set_config_file("phpythia8_Jpsi.cfg"); 
depending on your work.
2. In the configuration file, you can change the configuration based on your need. For example, you can set the mass cut at Pythia8 by putting this line: PhaseSpace:mHatMin = 4.0.

...