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/EvtSecondary.hh 00012 // 00013 // Description:Class store decays of secondary particles 00014 // 00015 // Modification history: 00016 // 00017 // RYD March. 12, 1998 Module created 00018 // 00019 //------------------------------------------------------------------------ 00020 00021 #ifndef EVTSECONDARY_HH 00022 #define EVTSECONDARY_HH 00023 00024 00025 const int EVTSECONDARYLENGTH =100; 00026 00027 class EvtParticle; 00028 #include <iosfwd> 00029 00030 class EvtSecondary { 00031 00032 public: 00033 00034 EvtSecondary(){} 00035 ~EvtSecondary(){} 00036 00037 void init(); 00038 00039 int getStdHepIndex(int i) {return _stdhepindex[i];} 00040 int getD1(int i) {return _id1[i];} 00041 int getD2(int i) {return _id2[i];} 00042 int getD3(int i) {return _id3[i];} 00043 00044 int getNPart(); 00045 void createSecondary(int stdhepindex,EvtParticle* prnt); 00046 00047 friend std::ostream& operator<<(std::ostream& s, const EvtSecondary& secondary); 00048 00049 private: 00050 00051 int _npart; 00052 int _stdhepindex[EVTSECONDARYLENGTH]; 00053 int _id1[EVTSECONDARYLENGTH]; 00054 int _id2[EVTSECONDARYLENGTH]; 00055 int _id3[EVTSECONDARYLENGTH]; 00056 00057 }; 00058 00059 #endif 00060