BOSS 7.0.3
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>
6#include "DiGamAlg/Parameter.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
void parameters(double E_cms)
Definition: Parameter.cxx:8