]>
Commit | Line | Data |
---|---|---|
8d29edbe | 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$ | |
2685bf00 | 18 | Revision 1.2 2001/03/24 10:08:30 morsch |
19 | Log tag and copyright notice added. | |
20 | ||
8d29edbe | 21 | */ |
b7e18fda | 22 | |
23 | #include "AliMevSimParticle.h" | |
24 | ||
25 | ||
26 | ClassImp(AliMevSimParticle) | |
27 | ||
28 | ||
29 | /////////////////////////////////////////////////////////////////////////////////////// | |
30 | ||
31 | AliMevSimParticle::AliMevSimParticle() | |
32 | : TMevSimPartTypeParams() { | |
2685bf00 | 33 | fConv = 0; |
b7e18fda | 34 | } |
35 | ||
36 | /////////////////////////////////////////////////////////////////////////////////////// | |
37 | ||
38 | AliMevSimParticle::AliMevSimParticle(PDG_t pdg, Int_t multmean, Int_t multvc, | |
39 | Float_t tempmean, Float_t tempstdev, Float_t sigmamean, | |
40 | Float_t sigmastdev, Float_t expvelmean, Float_t expvelstdev) | |
41 | ||
42 | : TMevSimPartTypeParams(0, multmean, multvc, tempmean, tempstdev, | |
43 | sigmamean, sigmastdev, expvelmean, expvelstdev) { | |
44 | ||
45 | ||
46 | // Calculate geant ID from pdg | |
47 | fConv = new TMevSimConverter(); | |
48 | fPdg = pdg; | |
49 | if (fConv) fGPid = fConv->IdFromPDG(pdg); | |
50 | ||
51 | } | |
52 | ||
53 | /////////////////////////////////////////////////////////////////////////////////////// | |
54 | ||
55 | AliMevSimParticle::~AliMevSimParticle() { | |
56 | } | |
57 | ||
58 | /////////////////////////////////////////////////////////////////////////////////////// | |
59 | ||
60 | void AliMevSimParticle::SetPDG(PDG_t pdg) { | |
61 | ||
62 | fPdg = pdg; | |
63 | fGPid = fConv->IdFromPDG(pdg); | |
64 | } | |
65 | ||
66 | /////////////////////////////////////////////////////////////////////////////////////// | |
67 | ||
68 | PDG_t AliMevSimParticle::GetPDG() { | |
69 | ||
70 | fPdg = (PDG_t)fConv->PDGFromId(fGPid); | |
71 | return fPdg; | |
72 | } | |
73 | ||
74 | /////////////////////////////////////////////////////////////////////////////////////// | |
75 | ||
76 | ||
77 | ||
78 |