]>
Commit | Line | Data |
---|---|---|
56050439 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | /* | |
17 | $Log$ | |
41fc1188 | 18 | Revision 1.2 2001/01/31 14:32:42 morsch |
19 | Some B mesons added | |
20 | ||
7f13be08 | 21 | Revision 1.1 2000/12/21 16:48:39 morsch |
22 | AliPDG class, first commit. | |
23 | ||
56050439 | 24 | */ |
25 | ||
26 | // Class to encapsulate the ALICE updates to TDatabasePDG.h | |
27 | // Can be used by TGeant3 and TGeant4 | |
28 | // It contains also the constants for the PDG particle IDs. | |
29 | // Should evolve towards dynamical loading from external data base. | |
30 | // Comments to: andreas.morsch@cern.ch | |
31 | ||
32 | #include "AliPDG.h" | |
33 | #include "TDatabasePDG.h" | |
34 | ||
35 | ClassImp(AliPDG) | |
36 | ||
37 | void AliPDG::AddParticlesToPdgDataBase() | |
38 | { | |
39 | ||
40 | // | |
41 | // Add particles to the PDG data base | |
42 | ||
43 | TDatabasePDG *pdgDB = TDatabasePDG::Instance(); | |
44 | ||
45 | const Int_t kion=10000000; | |
46 | const Int_t kspe=50000000; | |
47 | ||
48 | const Double_t kAu2Gev=0.9314943228; | |
49 | const Double_t khSlash = 1.0545726663e-27; | |
50 | const Double_t kErg2Gev = 1/1.6021773349e-3; | |
51 | const Double_t khShGev = khSlash*kErg2Gev; | |
52 | const Double_t kYear2Sec = 3600*24*365.25; | |
53 | // | |
54 | // Bottom mesons | |
55 | // mass and life-time from PDG | |
56050439 | 56 | // |
41fc1188 | 57 | // Done by default now from Pythia6 table! |
58 | // | |
56050439 | 59 | // |
60 | // Ions | |
61 | // | |
62 | ||
63 | pdgDB->AddParticle("Deuteron","Deuteron",2*kAu2Gev+8.071e-3,kTRUE, | |
41fc1188 | 64 | 0,1,"Ion",kion+10020); |
56050439 | 65 | pdgDB->AddParticle("Triton","Triton",3*kAu2Gev+14.931e-3,kFALSE, |
41fc1188 | 66 | khShGev/(12.33*kYear2Sec),1,"Ion",kion+10030); |
56050439 | 67 | pdgDB->AddParticle("Alpha","Alpha",4*kAu2Gev+2.424e-3,kTRUE, |
41fc1188 | 68 | khShGev/(12.33*kYear2Sec),2,"Ion",kion+20040); |
56050439 | 69 | pdgDB->AddParticle("HE3","HE3",3*kAu2Gev+14.931e-3,kFALSE, |
41fc1188 | 70 | 0,2,"Ion",kion+20030); |
71 | // Special particles | |
56050439 | 72 | // |
73 | pdgDB->AddParticle("Cherenkov","Cherenkov",0,kFALSE, | |
74 | 0,0,"Special",kspe+50); | |
75 | pdgDB->AddParticle("FeedbackPhoton","FeedbackPhoton",0,kFALSE, | |
76 | 0,0,"Special",kspe+51); | |
41fc1188 | 77 | |
56050439 | 78 | } |
41fc1188 | 79 | |
80 |