1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtGenBase/EvtSpinType.cc
13 // Description: Class for enumarating the different types of
14 // particles and the number of states they have.
16 // Modification history:
18 // RYD Jan 26, 2006 Module created
20 //------------------------------------------------------------------------
23 #include "EvtGenBase/EvtPatches.hh"
24 #include "EvtGenBase/EvtReport.hh"
25 #include "EvtGenBase/EvtSpinType.hh"
28 int EvtSpinType::getSpin2(spintype stype){
31 case SCALAR: case STRING:
33 case DIRAC: case NEUTRINO:
35 case VECTOR: case PHOTON:
50 report(ERROR,"EvtGen")<<"Unknown spintype in EvtSpinType!"<<std::endl;
58 int EvtSpinType::getSpinStates(spintype stype){
61 case SCALAR: case STRING: case NEUTRINO:
63 case DIRAC: case PHOTON:
80 report(ERROR,"EvtGen")<<"Unknown spintype in EvtSpinType!"<<std::endl;