FairRoot
 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 
10 {
11  cout << "Loading User Decay Config from macro" << endl;
12  TDatabasePDG *db = TDatabasePDG::Instance();
13  TParticlePDG *p = 0;
14 
15  Int_t mode[6][3];
16  Float_t bratio[6];
17  Int_t AlphaPDG, He5PDG;
18  p = db->GetParticle("Alpha");
19  if (p)
20  AlphaPDG = p->PdgCode();
21  p = db->GetParticle("He5");
22 
23  if (p)
24  He5PDG = p->PdgCode();
25  for (Int_t kz = 0; kz < 6; kz++) {
26  bratio[kz] = 0.;
27  mode[kz][0] = 0;
28  mode[kz][1] = 0;
29  mode[kz][2] = 0;
30  // cout << mode[kz][0] << " " << mode[kz][1] << " " << mode[kz][2] << endl;
31  }
32  bratio[0] = 100.;
33  mode[0][0] = 2112;
34  mode[0][1] = AlphaPDG;
35 
36  /* bratio[1] = 50.;
37  mode[1][0] =2212 ;
38  mode[1][1] =AlphaPDG ;
39 
40  */
41  gMC->SetDecayMode(He5PDG, bratio, mode);
42 }
void UserDecayConfig()
Definition: UserDecay.C:8