#include <Parameter.h>
Public Member Functions | |
void | parameters (double E_cms) |
Public Attributes | |
double | m_E_start |
double | m_E_stop |
double | m_CrossSection |
double | m_MCEff |
double | m_MCEffBoost |
double | m_boostMinEmin |
double | m_boostMinEmax |
Definition at line 4 of file Parameter.h.
void Parameter::parameters | ( | double | E_cms | ) |
Definition at line 8 of file Parameter.cxx.
References genRecEmupikp::i, m_boostMinEmax, m_boostMinEmin, m_CrossSection, m_E_start, m_E_stop, m_MCEff, m_MCEffBoost, deljobs::string, subSeperate::temp, and prepareCalib::word.
Referenced by DiGam::execute().
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 }
double Parameter::m_boostMinEmax |
double Parameter::m_boostMinEmin |
double Parameter::m_CrossSection |
double Parameter::m_E_start |
double Parameter::m_E_stop |
double Parameter::m_MCEff |
double Parameter::m_MCEffBoost |