BOSS
7.0.2
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::m_MCEffBoost
double m_MCEffBoost
Definition:
DQA/DiGamAlg/DiGamAlg-00-10-02/DiGamAlg/Parameter.h:12
Parameter::m_E_stop
double m_E_stop
Definition:
DQA/DiGamAlg/DiGamAlg-00-10-02/DiGamAlg/Parameter.h:8
Parameter::m_boostMinEmax
double m_boostMinEmax
Definition:
DQA/DiGamAlg/DiGamAlg-00-10-02/DiGamAlg/Parameter.h:14
Parameter::parameters
void parameters(double E_cms)
Definition:
Parameter.cxx:8
Parameter::m_boostMinEmin
double m_boostMinEmin
Definition:
DQA/DiGamAlg/DiGamAlg-00-10-02/DiGamAlg/Parameter.h:13
Parameter::m_E_start
double m_E_start
Definition:
DQA/DiGamAlg/DiGamAlg-00-10-02/DiGamAlg/Parameter.h:7
Parameter::m_MCEff
double m_MCEff
Definition:
DQA/DiGamAlg/DiGamAlg-00-10-02/DiGamAlg/Parameter.h:11
Parameter::m_CrossSection
double m_CrossSection
Definition:
DQA/DiGamAlg/DiGamAlg-00-10-02/DiGamAlg/Parameter.h:10
source
DQA
DiGamAlg
DiGamAlg-00-10-02
src
Parameter.cxx
Generated by
1.9.6