HepPDT Reference Documentation

HepPDT

spinitod.cc

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------
00002 //
00003 // spinitod.cc
00004 // Author: Lynn Garren
00005 //
00006 // ----------------------------------------------------------------------
00007 
00008 #include "HepPDT/defs.h"
00009 #include "HepPDT/ParticleID.hh"
00010 
00011 namespace HepPDT {
00012 
00013 double spinitod( int js )
00014 {
00015     int spin = abs(js);
00016     if( spin == 0 ) {
00017         return 0;
00018     } else {
00019         return double(spin-1)/2.0;
00020     }
00021 }
00022 
00023 } // HepPDT

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