FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DecayConfigPythia8.C
Go to the documentation of this file.
2 {
3  // Create a new external decayer instance
4  TPythia8Decayer* decayer = new TPythia8Decayer();
5 
6  // Create a new TPythia8 instance
7  TPythia8* pythia8 = TPythia8::Instance();
8 
9  TVirtualMC::GetMC()->SetExternalDecayer(decayer);
10 
11  const Int_t npartnf = 9;
12  Int_t pdgnf[npartnf] = {13, -13, 211, -211, 321, -321, 130, 3312, 443};
13  for (Int_t ipartnf = 0; ipartnf < npartnf; ipartnf++) {
14  Int_t ipdg = pdgnf[ipartnf];
15  TVirtualMC::GetMC()->SetUserDecay(ipdg); // Force the decay to be done w/external decayer
16  }
17 
18  decayer->Init();
19 }
20 
void DecayConfigPythia8()
void DecayConfig()
Definition: DecayConfig.C:8