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) 2002 Caltech 00010 // 00011 // Module: EvtAmpSubIndex.hh 00012 // 00013 // Description:This class keeps track of indices on amplitude objects. 00014 // Used for a subset of indices in an EvtAmpIndex object. 00015 // 00016 // Modification history: 00017 // 00018 // Ryd Nov 22, 2002 Module created 00019 // 00020 //------------------------------------------------------------------------ 00021 00022 #ifndef EVTAMPSUBINDEX_HH 00023 #define EVTAMPSUBINDEX_HH 00024 00025 #include <vector> 00026 class EvtAmpIndex; 00027 00028 class EvtAmpSubIndex { 00029 00030 public: 00031 00032 EvtAmpSubIndex(EvtAmpIndex* ind,std::vector<int> sub); 00033 virtual ~EvtAmpSubIndex() {} 00034 00035 int index(); 00036 00037 private: 00038 00039 EvtAmpIndex* _ind; 00040 std::vector<int> _sub; 00041 int _size; 00042 std::vector<int> _nstate; 00043 00044 }; 00045 00046 00047 #endif 00048