]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TMEVSIM/AliMevSimParticle.cxx
- Adapted comments for Doxygen
[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
803d1ab0 16/* $Id$ */
36b81802 17
18#include "AliMevSimParticle.h"
19
20
21ClassImp(AliMevSimParticle)
22
23
24///////////////////////////////////////////////////////////////////////////////////////
25
26AliMevSimParticle::AliMevSimParticle()
27 : TMevSimPartTypeParams() {
28 fConv = 0;
29}
30
31///////////////////////////////////////////////////////////////////////////////////////
32
33AliMevSimParticle::AliMevSimParticle(PDG_t pdg, Int_t multmean, Int_t multvc,
34 Float_t tempmean, Float_t tempstdev, Float_t sigmamean,
35 Float_t sigmastdev, Float_t expvelmean, Float_t expvelstdev)
36
37 : TMevSimPartTypeParams(0, multmean, multvc, tempmean, tempstdev,
38 sigmamean, sigmastdev, expvelmean, expvelstdev) {
39
40
41 // Calculate geant ID from pdg
42 fConv = new TMevSimConverter();
43 fPdg = pdg;
44 if (fConv) fGPid = fConv->IdFromPDG(pdg);
45
46}
47
48///////////////////////////////////////////////////////////////////////////////////////
49
50AliMevSimParticle::~AliMevSimParticle() {
51}
52
53///////////////////////////////////////////////////////////////////////////////////////
54
55void AliMevSimParticle::SetPDG(PDG_t pdg) {
56
57 fPdg = pdg;
58 fGPid = fConv->IdFromPDG(pdg);
59}
60
61///////////////////////////////////////////////////////////////////////////////////////
62
63PDG_t AliMevSimParticle::GetPDG() {
64
65 fPdg = (PDG_t)fConv->PDGFromId(fGPid);
66 return fPdg;
67}
68
69///////////////////////////////////////////////////////////////////////////////////////
70
71
72
73