/[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.1 by pam-fi, Thu Mar 11 19:11:28 2010 UTC revision 1.2 by pam-fi, Fri May 27 14:05:00 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);
55        outTextFile << GetLTInfBin() << endl;
56      for (unsigned int i = 0; i < GetHisto().size(); i++)      for (unsigned int i = 0; i < GetHisto().size(); i++)
57        outTextFile << GetHisto()[i] << "\n";        outTextFile << GetHisto()[i] << "\n";
58      outTextFile.close();      outTextFile.close();
59      outTextFile.open((_outFileBase + "-InfBin.txt").Data(), ios_base::out);      //outTextFile.open((_outFileBase + "-InfBin.txt").Data(), ios_base::out);
60      outTextFile << GetLTInfBin() << endl;      //outTextFile << GetLTInfBin() << endl;
61      outTextFile.close();      //outTextFile.close();
62      outTextFile.precision(oldPrec);      outTextFile.precision(oldPrec);
63      outTextFile << resetiosflags(ios::floatfield);      outTextFile << resetiosflags(ios::floatfield);
64    

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

  ViewVC Help
Powered by ViewVC 1.1.23