/[PAMELA software]/quicklook/dataToXML/TabDumpToXML.cpp
ViewVC logotype

Diff of /quicklook/dataToXML/TabDumpToXML.cpp

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

revision 1.1.1.1 by kusanagi, Tue Apr 25 09:00:20 2006 UTC revision 1.2 by kusanagi, Wed Jun 14 07:25:24 2006 UTC
# Line 18  Line 18 
18  #include <tabDump/TabDumpEvent.h>  #include <tabDump/TabDumpEvent.h>
19  #include <PscuHeader.h>  #include <PscuHeader.h>
20  #include <EventHeader.h>  #include <EventHeader.h>
21    #include <yodaUtility.h>
22  #include <fstream>  #include <fstream>
23    
24  #include <TFile.h>  #include <TFile.h>
# Line 31  void TabDumpToXML(TString base, TString Line 32  void TabDumpToXML(TString base, TString
32    Int_t         tmpSize, nrow, ncol;    Int_t         tmpSize, nrow, ncol;
33    ofstream      outputFile;    ofstream      outputFile;
34    stringstream  oss;    stringstream  oss;
35      UInt_t k_data = 0;
36        
37    pamela::TabDumpEvent  *tde = 0;    pamela::TabDumpEvent  *tde = 0;
38    pamela::TabDumpRecord *tdr = 0;    pamela::TabDumpRecord *tdr = 0;
# Line 88  void TabDumpToXML(TString base, TString Line 90  void TabDumpToXML(TString base, TString
90          for (int k  = 0; k < nrow; k++){          for (int k  = 0; k < nrow; k++){
91                  outputFile << "\t\t\t<ROW> \n";                  outputFile << "\t\t\t<ROW> \n";
92                  for (int z  = 0; z < ncol; z++){                  for (int z  = 0; z < ncol; z++){
93                          outputFile << "\t\t\t<COL>"      << (unsigned int)Data->At((k*ncol) + z)    << "</COL>\n";                          k_data = (UInt_t)Data->At((k*ncol) + z);
94                            Utility::endian_swap(k_data);
95                            outputFile << "\t\t\t<COL>"      << k_data  << "</COL>\n";
96                  }                  }
97                  outputFile << "\t\t\t</ROW> \n";                  outputFile << "\t\t\t</ROW> \n";
98          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.23