]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TEvtGen/EvtGenBase/EvtAmpIndex.hh
AliDecayer realisation for the EvtGen code and EvtGen itself.
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtAmpIndex.hh
1 //--------------------------------------------------------------------------
2 //
3 // Environment:
4 //      This software is part of the EvtGen package developed jointly
5 //      for the BaBar and CLEO collaborations.  If you use all or part
6 //      of it, please give an appropriate acknowledgement.
7 //
8 // Copyright Information: See EvtGen/COPYRIGHT
9 //      Copyright (C) 2002      Caltech, UCSB
10 //
11 // Module: EvtGen/EvtAmpIndex.hh
12 //
13 // Description:This class keeps track of indices on amplitude objects.
14 //
15 // Modification history:
16 //
17 //    Ryd     Nov 22, 2002         Module created
18 //
19 //------------------------------------------------------------------------
20
21 #ifndef EVTAMPINDEX_HH
22 #define EVTAMPINDEX_HH
23
24 #include <vector>
25
26 class EvtAmpIndex {
27
28   friend class EvtAmpSubIndex;
29
30 public:
31
32   EvtAmpIndex(std::vector<int> ind);
33   virtual ~EvtAmpIndex() {}
34
35   void reset();
36   bool next();
37
38   int index();
39
40 private:
41
42   std::vector<int> _ind;
43   int _size;
44   std::vector<int> _state;
45   std::vector<int> _nstate;
46
47 };
48
49
50 #endif
51