BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtAmpSubIndex Class Reference

#include <EvtAmpSubIndex.hh>

Public Member Functions

 EvtAmpSubIndex (EvtAmpIndex *ind, std::vector< int > sub)
 
virtual ~EvtAmpSubIndex ()
 
int index ()
 

Detailed Description

Definition at line 28 of file EvtAmpSubIndex.hh.

Constructor & Destructor Documentation

◆ EvtAmpSubIndex()

EvtAmpSubIndex::EvtAmpSubIndex ( EvtAmpIndex ind,
std::vector< int >  sub 
)

Definition at line 28 of file EvtAmpSubIndex.cc.

28 :
29 _ind(ind),
30 _sub(sub),
31 _size(sub.size()),
32 _nstate(sub.size())
33{
34 int i;
35
36 for(i=0;i<_size;i++) {
37 if (i==0){
38 _nstate[i]=1;
39 }
40 else{
41 _nstate[i]=_nstate[i-1]*_ind->_ind[sub[i-1]];
42 }
43 }
44}

◆ ~EvtAmpSubIndex()

virtual EvtAmpSubIndex::~EvtAmpSubIndex ( )
inlinevirtual

Definition at line 33 of file EvtAmpSubIndex.hh.

33{}

Member Function Documentation

◆ index()

int EvtAmpSubIndex::index ( )

Definition at line 47 of file EvtAmpSubIndex.cc.

47 {
48
49 int i;
50 int ind=0;
51
52 for(i=0;i<_size;i++) {
53 ind+=_ind->_state[_ind->_ind[i]]*_nstate[i];
54 }
55
56 return ind;
57
58}

The documentation for this class was generated from the following files: