Transition to NewIO
[u/mrichter/AliRoot.git] / TMEVSIM / AliMevSimParticle.cxx
CommitLineData
36b81802 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$
88cb7938 18Revision 1.1.2.1 2003/04/14 16:24:06 hristov
19Merging with v3-09-08. Several classes are exported from EVGEN to different directories to resolve the dependencies
20
21Revision 1.1 2003/03/15 14:49:39 morsch
22Classes imported from EVGEN
23
36b81802 24Revision 1.3 2001/10/21 18:35:56 hristov
25Several pointers were set to zero in the default constructors to avoid memory management problems
26
27Revision 1.2 2001/03/24 10:08:30 morsch
28Log tag and copyright notice added.
29
30*/
31
32#include "AliMevSimParticle.h"
33
34
35ClassImp(AliMevSimParticle)
36
37
38///////////////////////////////////////////////////////////////////////////////////////
39
40AliMevSimParticle::AliMevSimParticle()
41 : TMevSimPartTypeParams() {
42 fConv = 0;
43}
44
45///////////////////////////////////////////////////////////////////////////////////////
46
47AliMevSimParticle::AliMevSimParticle(PDG_t pdg, Int_t multmean, Int_t multvc,
48 Float_t tempmean, Float_t tempstdev, Float_t sigmamean,
49 Float_t sigmastdev, Float_t expvelmean, Float_t expvelstdev)
50
51 : TMevSimPartTypeParams(0, multmean, multvc, tempmean, tempstdev,
52 sigmamean, sigmastdev, expvelmean, expvelstdev) {
53
54
55 // Calculate geant ID from pdg
56 fConv = new TMevSimConverter();
57 fPdg = pdg;
58 if (fConv) fGPid = fConv->IdFromPDG(pdg);
59
60}
61
62///////////////////////////////////////////////////////////////////////////////////////
63
64AliMevSimParticle::~AliMevSimParticle() {
65}
66
67///////////////////////////////////////////////////////////////////////////////////////
68
69void AliMevSimParticle::SetPDG(PDG_t pdg) {
70
71 fPdg = pdg;
72 fGPid = fConv->IdFromPDG(pdg);
73}
74
75///////////////////////////////////////////////////////////////////////////////////////
76
77PDG_t AliMevSimParticle::GetPDG() {
78
79 fPdg = (PDG_t)fConv->PDGFromId(fGPid);
80 return fPdg;
81}
82
83///////////////////////////////////////////////////////////////////////////////////////
84
85
86
87