BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
Parameter.cxx
Go to the documentation of this file.
1#include <iostream>
2#include <fstream>
3#include <sstream>
4#include <string>
5#include <stdlib.h>
7
8void Parameter::parameters(double E_cms)
9{
10 std::string digamPath = getenv("DIGAMALGROOT");
11 digamPath += "/DiGamAlg/parameters.txt";
12 std::ifstream fin;
13 fin.open(digamPath.c_str());
14
15 int i = 0;
16 std::string temp;
17 while (getline(fin, temp))
18 {
19 std::istringstream word(temp);
21 if(m_E_start <= E_cms && m_E_stop > E_cms)
22 break;
23 i++;
24 }
25 fin.close();
26}
27
double m_MCEffBoost
Definition: Parameter.h:12
double m_E_stop
Definition: Parameter.h:8
double m_boostMinEmax
Definition: Parameter.h:14
void parameters(double E_cms)
Definition: Parameter.cxx:8
double m_boostMinEmin
Definition: Parameter.h:13
double m_E_start
Definition: Parameter.h:7
double m_MCEff
Definition: Parameter.h:11
double m_CrossSection
Definition: Parameter.h:10