BOSS 8.0.0
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 27 of file EvtAmpSubIndex.cc.

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

◆ ~EvtAmpSubIndex()

virtual EvtAmpSubIndex::~EvtAmpSubIndex ( )
inlinevirtual

Definition at line 32 of file EvtAmpSubIndex.hh.

32{}

Member Function Documentation

◆ index()

int EvtAmpSubIndex::index ( )

Definition at line 38 of file EvtAmpSubIndex.cc.

38 {
39
40 int i;
41 int ind = 0;
42
43 for ( i = 0; i < _size; i++ ) { ind += _ind->_state[_ind->_ind[i]] * _nstate[i]; }
44
45 return ind;
46}

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