00001 //-------------------------------------------------------------------------- 00002 // 00003 // Environment: 00004 // This software is part of models developed at BES collaboration 00005 // based on the EvtGen framework. If you use all or part 00006 // of it, please give an appropriate acknowledgement. 00007 // 00008 // Copyright Information: See EvtGen/BesCopyright 00009 // Copyright (A) 2006 Ping Rong-Gang @IHEP 00010 // 00011 // Module: EvtAngSam.cc 00012 // 00013 // Description: Routine to decay a particle to two bodies by sampling angular distribution in Lab 00014 // system. 00015 // 00016 // Modification history: 00017 // 00018 // Ping R.-G. December, 2006 Module created 00019 // 00020 //------------------------------------------------------------------------ 00021 #ifndef EVTAngSam_HH 00022 #define EVTAngSam_HH 00023 00024 #include "EvtGenBase/EvtDecayIncoherent.hh" 00025 00026 class EvtParticle; 00027 00028 class EvtAngSam:public EvtDecayIncoherent { 00029 00030 public: 00031 00032 EvtAngSam() {} 00033 virtual ~EvtAngSam(); 00034 00035 void getName(std::string& name); 00036 00037 EvtDecayBase* clone(); 00038 00039 void initProbMax(); 00040 00041 void init(); 00042 00043 void decay(EvtParticle *p); 00044 00045 }; 00046 00047 #endif 00048