FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
UserDecay.C
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
void
UserDecayConfig
()
9
{
10
cout <<
"Loading User Decay Config from macro"
<< endl;
11
TDatabasePDG *db = TDatabasePDG::Instance();
12
TParticlePDG *p = 0;
13
14
Int_t mode[6][3];
15
Float_t bratio[6];
16
Int_t AlphaPDG, He5PDG;
17
p = db->GetParticle(
"Alpha"
);
18
if
(p)
19
AlphaPDG = p->PdgCode();
20
p = db->GetParticle(
"He5"
);
21
22
if
(p)
23
He5PDG = p->PdgCode();
24
for
(Int_t kz = 0; kz < 6; kz++) {
25
bratio[kz] = 0.;
26
mode[kz][0] = 0;
27
mode[kz][1] = 0;
28
mode[kz][2] = 0;
29
// cout << mode[kz][0] << " " << mode[kz][1] << " " << mode[kz][2] << endl;
30
}
31
bratio[0] = 100.;
32
mode[0][0] = 2112;
33
mode[0][1] = AlphaPDG;
34
35
/* bratio[1] = 50.;
36
mode[1][0] =2212 ;
37
mode[1][1] =AlphaPDG ;
38
39
*/
40
TVirtual::GetMC()->SetDecayMode(He5PDG, bratio, mode);
41
}
UserDecayConfig
void UserDecayConfig()
Definition:
UserDecay.C:8
FairRoot
examples
common
gconfig
UserDecay.C
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5