![]() |
HepPDT Reference DocumentationHepPDT |
00001 // ---------------------------------------------------------------------- 00002 // 00003 // spindtoi.cc 00004 // Author: Lynn Garren 00005 // 00006 // ---------------------------------------------------------------------- 00007 00008 #include "HepPDT/defs.h" 00009 #include "HepPDT/ParticleID.hh" 00010 00011 namespace HepPDT { 00012 00013 int spindtoi( double spin ) 00014 { 00015 int is = (int)(spin*2.0); 00016 return abs(is)+1; 00017 } 00018 00019 } // HepPDT