FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DecayConfigPythia8.C
Go to the documentation of this file.
1
void
DecayConfigPythia8
()
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
21
void
DecayConfig
() {
DecayConfigPythia8
(); }
DecayConfigPythia8
void DecayConfigPythia8()
Definition:
DecayConfigPythia8.C:1
DecayConfig
void DecayConfig()
Definition:
DecayConfig.C:8
FairRoot
examples
common
gconfig
DecayConfigPythia8.C
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5