Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EvtAmpSubIndex Class Reference

#include <EvtAmpSubIndex.hh>

List of all members.

Public Member Functions

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

Private Attributes

EvtAmpIndex_ind
std::vector< int > _nstate
int _size
std::vector< int > _sub


Constructor & Destructor Documentation

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

00028                                                                  :
00029   _ind(ind),
00030   _sub(sub),
00031   _size(sub.size()),
00032   _nstate(sub.size())
00033 {
00034   int i;
00035   
00036   for(i=0;i<_size;i++) {
00037     if (i==0){
00038       _nstate[i]=1;
00039     }
00040     else{
00041       _nstate[i]=_nstate[i-1]*_ind->_ind[sub[i-1]];
00042     }
00043   }
00044 }

virtual EvtAmpSubIndex::~EvtAmpSubIndex  )  [inline, virtual]
 

00033 {}


Member Function Documentation

int EvtAmpSubIndex::index  ) 
 

00047                          {
00048 
00049   int i;
00050   int ind=0;
00051 
00052   for(i=0;i<_size;i++) {
00053     ind+=_ind->_state[_ind->_ind[i]]*_nstate[i];
00054   }
00055 
00056   return ind;
00057 
00058 }


Member Data Documentation

EvtAmpIndex* EvtAmpSubIndex::_ind [private]
 

std::vector<int> EvtAmpSubIndex::_nstate [private]
 

int EvtAmpSubIndex::_size [private]
 

std::vector<int> EvtAmpSubIndex::_sub [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:03:11 2011 for BOSS6.5.5 by  doxygen 1.3.9.1