HepPDT Reference Documentation

HepPDT

spindtoi.cc

Go to the documentation of this file.
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

Generated on Fri Dec 4 14:05:23 2009 for HepPDT by  doxygen 1.4.7