mexvex_els_calculate.cc
412 Bytes
#include "mexvex_els_calculate.hh"
std::vector<float> mexvex_els_calculate(const std::vector<short>& ELS,const short& TimeCompres, const short& EnergyCompres, unsigned int Angle)
{
std::vector<float> lElsCalculate;
for (unsigned int iEn = 0; iEn < 128; iEn++) {// 128 Energy Steps
lElsCalculate.push_back(((float)ELS[iEn + Angle *128])/(float)TimeCompres/(float)EnergyCompres);
}
return lElsCalculate;
}