00001 //-------------------------------------------------------------------------- 00002 // 00003 // Environment: 00004 // This software is part of the EvtGen package developed jointly 00005 // for the BaBar and CLEO collaborations. If you use all or part 00006 // of it, please give an appropriate acknowledgement. 00007 // 00008 // Copyright Information: See EvtGen/COPYRIGHT 00009 // Copyright (C) 1998 Caltech, UCSB 00010 // 00011 // Module: EvtGen/EvtParticleFactory.hh 00012 // 00013 // Description:Class to describe all particles 00014 // 00015 // Modification history: 00016 // 00017 // DJL December 27, 1999 Module created. 00018 // 00019 //------------------------------------------------------------------------ 00020 00021 #ifndef EVTPARTICLEFACTORY_HH 00022 #define EVTPARTICLEFACTORY_HH 00023 00024 #include "EvtGenBase/EvtSpinType.hh" 00025 00026 class EvtParticle; 00027 class EvtId; 00028 class EvtVector4R; 00029 class EvtSpinDensity; 00030 00031 class EvtParticleFactory{ 00032 00033 public: 00034 00035 00036 static EvtParticle* particleFactory(EvtSpinType::spintype spinType); 00037 00038 static EvtParticle* particleFactory(EvtId id, 00039 EvtVector4R p4); 00040 00041 static EvtParticle* particleFactory(EvtId id, 00042 EvtVector4R p4, 00043 EvtSpinDensity rho); 00044 00045 }; 00046 00047 00048 #endif