/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/DQA/DiGamAlg/DiGamAlg-00-10-02/src/Parameter.cxx

Go to the documentation of this file.
00001 #include <iostream>
00002 #include <fstream>
00003 #include <sstream>
00004 #include <string>
00005 #include <stdlib.h>
00006 #include "DiGamAlg/Parameter.h"
00007 
00008 void Parameter::parameters(double E_cms)
00009 {
00010         std::string digamPath = getenv("DIGAMALGROOT");
00011         digamPath += "/DiGamAlg/parameters.txt";
00012         std::ifstream fin;
00013         fin.open(digamPath.c_str());
00014 
00015         int i = 0;
00016         std::string temp;                                               
00017         while (getline(fin, temp))
00018         {
00019                 std::istringstream word(temp);
00020                 word >> m_E_start >> m_E_stop >> m_CrossSection >> m_MCEff >> m_MCEffBoost >> m_boostMinEmin >> m_boostMinEmax;
00021                 if(m_E_start <= E_cms && m_E_stop > E_cms)
00022                         break;
00023                 i++;
00024         }                                                                               
00025         fin.close();
00026 }
00027 

Generated on Tue Nov 29 22:58:03 2016 for BOSS_7.0.2 by  doxygen 1.4.7