FairRoot/PandaRoot
Functions
UserDecay.C File Reference

Go to the source code of this file.

Functions

void UserDecayConfig ()
 

Function Documentation

void UserDecayConfig ( )

Definition at line 1 of file UserDecay.C.

References mode, and p.

1  {
2  cout << "Loading User Decay Config from macro"<< endl;
3  TDatabasePDG *db= TDatabasePDG::Instance();
4  TParticlePDG *p=0;
5 
6  Int_t mode[6][3];
7  Float_t bratio[6];
8  Int_t AlphaPDG, He5PDG;
9  p= db->GetParticle("Alpha");
10  if(p) AlphaPDG=p->PdgCode();
11  p=db->GetParticle("He5");
12 
13  if(p) He5PDG=p->PdgCode();
14  for (Int_t kz = 0; kz < 6; kz++) {
15  bratio[kz] = 0.;
16  mode[kz][0] = 0;
17  mode[kz][1] = 0;
18  mode[kz][2] = 0;
19  // cout << mode[kz][0] << " " << mode[kz][1] << " " << mode[kz][2] << endl;
20  }
21  bratio[0] = 100.;
22  mode[0][0] =2112 ;
23  mode[0][1] =AlphaPDG ;
24 
25  /* bratio[1] = 50.;
26  mode[1][0] =2212 ;
27  mode[1][1] =AlphaPDG ;
28 
29  */
30  gMC->SetDecayMode(He5PDG,bratio,mode);
31 
32 
33 
34 }
Double_t p
Definition: anasim.C:58
Int_t mode
Definition: autocutx.C:47