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