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/EvtStdHep.hh 00012 // 00013 // Description: Class produce the StdHep representation of the decay. 00014 // 00015 // Modification history: 00016 // 00017 // RYD March. 11, 1998 Module created 00018 // 00019 //------------------------------------------------------------------------ 00020 00021 #ifndef EVTSTDHEP_HH 00022 #define EVTSTDHEP_HH 00023 00024 //#include <iostream.h> 00025 #include "EvtGenBase/EvtVector4R.hh" 00026 #include <iosfwd> 00027 00028 const int EVTSTDHEPLENGTH =1000; 00029 00030 class EvtStdHep { 00031 00032 public: 00033 00034 EvtStdHep(){} 00035 ~EvtStdHep(){} 00036 00037 void init(); 00038 00039 int getFirstMother(int i) { return _prntfirst[i]; } 00040 int getLastMother(int i) { return _prntlast[i]; } 00041 int getFirstDaughter(int i) { return _daugfirst[i]; } 00042 int getLastDaughter(int i) { return _dauglast[i]; } 00043 00044 int getStdHepID(int i) { return _id[i]; } 00045 int getIStat(int i) { return _istat[i]; } 00046 00047 EvtVector4R getP4(int i) { return _p4[i]; } 00048 EvtVector4R getX4(int i) { return _x[i]; } 00049 00050 void translate(EvtVector4R d); 00051 00052 int getNPart(); 00053 void createParticle(EvtVector4R p4,EvtVector4R x,int prntfirst, 00054 int prntlast, int id); 00055 00056 friend std::ostream& operator<<(std::ostream& s, const EvtStdHep& stdhep); 00057 00058 private: 00059 00060 int _npart; 00061 EvtVector4R _p4[EVTSTDHEPLENGTH]; 00062 EvtVector4R _x[EVTSTDHEPLENGTH]; 00063 int _prntfirst[EVTSTDHEPLENGTH]; 00064 int _prntlast[EVTSTDHEPLENGTH]; 00065 int _daugfirst[EVTSTDHEPLENGTH]; 00066 int _dauglast[EVTSTDHEPLENGTH]; 00067 int _id[EVTSTDHEPLENGTH]; 00068 int _istat[EVTSTDHEPLENGTH]; 00069 00070 }; 00071 00072 #endif 00073