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