]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STARLIGHT/starlight/src/starlightparticlecodes.cpp
STARLIGHT code and interface
[u/mrichter/AliRoot.git] / STARLIGHT / starlight / src / starlightparticlecodes.cpp
CommitLineData
da32329d
AM
1///////////////////////////////////////////////////////////////////////////
2//
3// Copyright 2010
4//
5// This file is part of starlight.
6//
7// starlight is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11//
12// starlight is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with starlight. If not, see <http://www.gnu.org/licenses/>.
19//
20///////////////////////////////////////////////////////////////////////////
21//
22// File and Version Information:
23// $Rev:: 90 $: revision of last commit
24// $Author:: jnystrand $: author of last commit
25// $Date:: 2012-06-04 16:21:17 +0200 #$: date of last commit
26//
27// Description:
28//
29//
30//
31///////////////////////////////////////////////////////////////////////////
32
33
34#include "starlightparticlecodes.h"
35
36
37int starlightParticleCodes::jetsetToGeant(int particleid)
38{
39//this function takes a jetset particle number and converts it to GEANT
40 int jtogx =0;
41 if(particleid==22) jtogx = 1;
42 if(particleid==-11) jtogx = 2;
43 if(particleid==11) jtogx = 3;
44 if(particleid==12||particleid==-12||particleid==14||particleid==-14||particleid==16||particleid==-16) jtogx = 4;
45 if(particleid==-13) jtogx = 5;
46 if(particleid==13) jtogx = 6;
47 if(particleid==111) jtogx = 7;
48 if(particleid==211) jtogx = 8;
49 if(particleid==-211) jtogx = 9;
50 if(particleid==130) jtogx = 10;
51 if(particleid==321) jtogx = 11;
52 if(particleid==-321) jtogx = 12;
53 if(particleid==2112) jtogx = 13;
54 if(particleid==2212) jtogx = 14;
55 if(particleid==-2212) jtogx = 15;
56 if(particleid==310) jtogx = 16;
57 if(particleid==-310) jtogx = 10;
58 if(particleid==221) jtogx = 17;
59 if(particleid==3122) jtogx = 18;
60 if(particleid==3222) jtogx = 19;
61 if(particleid==3212) jtogx = 20;
62 if(particleid==3112) jtogx = 21;
63 if(particleid==3322) jtogx = 22;
64 if(particleid==3312) jtogx = 23;
65 if(particleid==3334) jtogx = 24;
66 if(particleid==-2112) jtogx = 25;
67 if(particleid==-3122) jtogx = 26;
68 if(particleid==-3222) jtogx = 27;
69 if(particleid==-3212) jtogx = 28;
70 if(particleid==-3112) jtogx = 29;
71 if(particleid==-3322) jtogx = 30;
72 if(particleid==-3312) jtogx = 31;
73 if(particleid==-3334) jtogx = 32;
74 return jtogx;
75}