/[PAMELA software]/PamCut/Collections/EffCollection/EffCollection.cpp
ViewVC logotype

Diff of /PamCut/Collections/EffCollection/EffCollection.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by pam-fi, Fri Sep 25 15:02:03 2009 UTC revision 1.7 by pam-fi, Thu Oct 1 10:34:34 2009 UTC
# Line 64  void EffCollection::Finalize() { Line 64  void EffCollection::Finalize() {
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.;
# Line 82  void EffCollection::Finalize() { Line 82  void EffCollection::Finalize() {
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    
# Line 96  void EffCollection::Finalize() { Line 96  void EffCollection::Finalize() {
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);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23