64 |
Int_t sel = (Int_t) _sel; |
Int_t sel = (Int_t) _sel; |
65 |
Int_t det = (Int_t) _det; |
Int_t det = (Int_t) _det; |
66 |
Double_t eff, errLow, errHigh; |
Double_t eff, errLow, errHigh; |
67 |
if (_errMethod == EFFRIG_ROOT) { |
if (_errMethod == EFFERR_ROOT) { |
68 |
if (sel < 8) { |
if (sel < 8) { |
69 |
eff = 1.1; |
eff = 1.1; |
70 |
errLow = errHigh = 0.; |
errLow = errHigh = 0.; |
82 |
errHigh = errGraph.GetErrorYhigh(0); |
errHigh = errGraph.GetErrorYhigh(0); |
83 |
} |
} |
84 |
} |
} |
85 |
if (_errMethod == EFFRIG_SERGIO) { |
if (_errMethod == EFFERR_SERGIO) { |
86 |
efficiency_(&sel, &det, &eff, &errLow, &errHigh); |
efficiency_(&sel, &det, &eff, &errLow, &errHigh); |
87 |
} |
} |
88 |
|
|
96 |
// Write the output file |
// Write the output file |
97 |
if (_outFileBase != "") { |
if (_outFileBase != "") { |
98 |
|
|
99 |
ofstream outTextFile((_outFileBase + "-eff.txt").Data(), ios_base::out); |
ofstream outTextFile((_outFileBase + "-" + GetName() + ".txt").Data(), ios_base::out); |
100 |
streamsize newPrec = 4; |
streamsize newPrec = 4; |
101 |
outTextFile.precision(newPrec); |
outTextFile.precision(newPrec); |
102 |
outTextFile.setf(ios::fixed, ios::floatfield); |
outTextFile.setf(ios::fixed, ios::floatfield); |