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

Diff of /quicklook/dataToXML/LogToXML.cpp

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

revision 1.1 by kusanagi, Tue Apr 25 09:00:20 2006 UTC revision 1.2 by kusanagi, Mon Jun 5 08:26:11 2006 UTC
# Line 82  void LogToXML(TString base, TString outD Line 82  void LogToXML(TString base, TString outD
82        tmpSize = logev->Records->GetEntries();        tmpSize = logev->Records->GetEntries();
83        ph      = eh->GetPscuHeader();        ph      = eh->GetPscuHeader();
84        outputFile << "<LOG_EVENT>\n";        outputFile << "<LOG_EVENT>\n";
85        outputFile << "\t<PACKET_OBT>" << ph->GetOrbitalTime() << "</PACKET_OBT>\n";        outputFile << "\t<PACKET_OBT>" << dec << ph->GetOrbitalTime() << "</PACKET_OBT>\n";
86        outputFile << "\t<PACKET_NUM>" << ph->GetCounter() << "</PACKET_NUM>\n";        outputFile << "\t<PACKET_NUM>" << ph->GetCounter() << "</PACKET_NUM>\n";
87        outputFile << "\t<LOG_RECORDS>\n";        outputFile << "\t<LOG_RECORDS>\n";
88        for (Int_t j = 0; j < tmpSize; j++){        for (Int_t j = 0; j < tmpSize; j++){
89          logrec = (pamela::LogRecord*)logev->Records->At(j);          logrec = (pamela::LogRecord*)logev->Records->At(j);
90          outputFile << "\t\t<LOG_RECORD>\n";          outputFile << "\t\t<LOG_RECORD>\n";
91          outputFile << "\t\t\t<RECORD_OBT>" << logrec->RECORD_OBT      << "</RECORD_OBT>\n";          outputFile << "\t\t\t<RECORD_OBT>" << dec << logrec->RECORD_OBT      << "</RECORD_OBT>\n";
92          outputFile << "\t\t\t<MASKTYPE>"   << (short)logrec->MASKTYPE   << "</MASKTYPE>\n";          outputFile << "\t\t\t<MASKTYPE>"   << (short)logrec->MASKTYPE   << "</MASKTYPE>\n";
93          outputFile << "\t\t\t<FILE_ID>"    << (int)logrec->FILE_ID    << "</FILE_ID>\n";          outputFile << "\t\t\t<FILE_ID>"    << (int)logrec->FILE_ID    << "</FILE_ID>\n";
94          outputFile << "\t\t\t<LINE_NO>"    << logrec->LINE_NO         << "</LINE_NO>\n";          outputFile << "\t\t\t<LINE_NO>"    << logrec->LINE_NO         << "</LINE_NO>\n";

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

  ViewVC Help
Powered by ViewVC 1.1.23