Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-06-01 07:07:28

0001 ///////////////////////////////////////////////////////////////////////////
0002 //
0003 //    Copyright 2010
0004 //
0005 //    This file is part of starlight.
0006 //
0007 //    starlight is free software: you can redistribute it and/or modify
0008 //    it under the terms of the GNU General Public License as published by
0009 //    the Free Software Foundation, either version 3 of the License, or
0010 //    (at your option) any later version.
0011 //
0012 //    starlight is distributed in the hope that it will be useful,
0013 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
0014 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0015 //    GNU General Public License for more details.
0016 //
0017 //    You should have received a copy of the GNU General Public License
0018 //    along with starlight. If not, see <http://www.gnu.org/licenses/>.
0019 //
0020 ///////////////////////////////////////////////////////////////////////////
0021 //
0022 // File and Version Information:
0023 // $Rev:: 90                          $: revision of last commit
0024 // $Author:: jnystrand                $: author of last commit
0025 // $Date:: 2012-06-04 15:21:17 +0100 #$: date of last commit
0026 //
0027 // Description:
0028 //
0029 //
0030 //
0031 ///////////////////////////////////////////////////////////////////////////
0032 
0033 
0034 #include "starlightparticlecodes.h"
0035 
0036 
0037 int starlightParticleCodes::jetsetToGeant(int particleid)
0038 {
0039 //this function takes a jetset particle number and converts it to GEANT
0040     int jtogx =0;
0041     if(particleid==22) jtogx = 1;
0042     if(particleid==-11) jtogx = 2;
0043     if(particleid==11) jtogx = 3;
0044     if(particleid==12||particleid==-12||particleid==14||particleid==-14||particleid==16||particleid==-16) jtogx = 4;
0045     if(particleid==-13) jtogx = 5;
0046     if(particleid==13) jtogx = 6;
0047     if(particleid==111) jtogx = 7;
0048     if(particleid==211) jtogx = 8;
0049     if(particleid==-211) jtogx = 9;
0050     if(particleid==130) jtogx = 10;
0051     if(particleid==321) jtogx = 11;
0052     if(particleid==-321) jtogx = 12;
0053     if(particleid==2112) jtogx = 13;
0054     if(particleid==2212) jtogx = 14;
0055     if(particleid==-2212) jtogx = 15;
0056     if(particleid==310) jtogx = 16;
0057     if(particleid==-310) jtogx = 10;
0058     if(particleid==221) jtogx = 17;
0059     if(particleid==3122) jtogx = 18;
0060     if(particleid==3222) jtogx = 19;
0061     if(particleid==3212) jtogx = 20;
0062     if(particleid==3112) jtogx = 21;
0063     if(particleid==3322) jtogx = 22;
0064     if(particleid==3312) jtogx = 23;
0065     if(particleid==3334) jtogx = 24;
0066     if(particleid==-2112) jtogx = 25;
0067     if(particleid==-3122) jtogx = 26;
0068     if(particleid==-3222) jtogx = 27;
0069     if(particleid==-3212) jtogx = 28;
0070     if(particleid==-3112) jtogx = 29;
0071     if(particleid==-3322) jtogx = 30;
0072     if(particleid==-3312) jtogx = 31;
0073     if(particleid==-3334) jtogx = 32;
0074     return jtogx;
0075 }