BOSS
7.0.7
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
8
void
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);
20
word >>
m_E_start
>>
m_E_stop
>>
m_CrossSection
>>
m_MCEff
>>
m_MCEffBoost
>>
m_boostMinEmin
>>
m_boostMinEmax
;
21
if
(m_E_start <= E_cms && m_E_stop > E_cms)
22
break
;
23
i++;
24
}
25
fin.close();
26
}
27
Parameter.h
Parameter::m_MCEffBoost
double m_MCEffBoost
Definition:
Parameter.h:12
Parameter::m_E_stop
double m_E_stop
Definition:
Parameter.h:8
Parameter::m_boostMinEmax
double m_boostMinEmax
Definition:
Parameter.h:14
Parameter::parameters
void parameters(double E_cms)
Definition:
Parameter.cxx:8
Parameter::m_boostMinEmin
double m_boostMinEmin
Definition:
Parameter.h:13
Parameter::m_E_start
double m_E_start
Definition:
Parameter.h:7
Parameter::m_MCEff
double m_MCEff
Definition:
Parameter.h:11
Parameter::m_CrossSection
double m_CrossSection
Definition:
Parameter.h:10
source
DQA
DiGamAlg
DiGamAlg-00-10-03
src
Parameter.cxx
Generated by
1.9.6