/[PAMELA software]/PamCut/CollectionActions/Histo1DActions/LiveTimeAction/LiveTimeAction.cpp
ViewVC logotype

Diff of /PamCut/CollectionActions/Histo1DActions/LiveTimeAction/LiveTimeAction.cpp

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

revision 1.2 by pam-fi, Fri May 27 14:05:00 2011 UTC revision 1.3 by pam-fi, Fri May 27 14:11:37 2011 UTC
# Line 52  void LiveTimeAction::Finalize() { Line 52  void LiveTimeAction::Finalize() {
52      streamsize newPrec = 4;      streamsize newPrec = 4;
53      outTextFile.precision(newPrec);      outTextFile.precision(newPrec);
54      outTextFile.setf(ios::fixed, ios::floatfield);      outTextFile.setf(ios::fixed, ios::floatfield);
     outTextFile << GetLTInfBin() << endl;  
55      for (unsigned int i = 0; i < GetHisto().size(); i++)      for (unsigned int i = 0; i < GetHisto().size(); i++)
56        outTextFile << GetHisto()[i] << "\n";        outTextFile << GetHisto()[i] << "\n";
57      outTextFile.close();      outTextFile.close();
58      //outTextFile.open((_outFileBase + "-InfBin.txt").Data(), ios_base::out);      outTextFile.open((_outFileBase + "-InfBin.txt").Data(), ios_base::out);
59      //outTextFile << GetLTInfBin() << endl;      outTextFile << GetLTInfBin() << endl;
60      //outTextFile.close();      outTextFile.close();
61      outTextFile.precision(oldPrec);      outTextFile.precision(oldPrec);
62      outTextFile << resetiosflags(ios::floatfield);      outTextFile << resetiosflags(ios::floatfield);
63    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23