20 |
#include <arrDump/ArrDumpEvent.h> |
#include <arrDump/ArrDumpEvent.h> |
21 |
#include <PscuHeader.h> |
#include <PscuHeader.h> |
22 |
#include <EventHeader.h> |
#include <EventHeader.h> |
23 |
|
#include <yodaUtility.h> |
24 |
#include <fstream> |
#include <fstream> |
25 |
|
|
26 |
#include <TFile.h> |
#include <TFile.h> |
65 |
|
|
66 |
TTree *tr = (TTree*)rootFile->Get("ArrDump"); |
TTree *tr = (TTree*)rootFile->Get("ArrDump"); |
67 |
Long64_t nevents = tr->GetEntries(); |
Long64_t nevents = tr->GetEntries(); |
68 |
|
UInt_t k_data = 0; |
69 |
tr->SetBranchAddress("ArrDump", &ade); |
tr->SetBranchAddress("ArrDump", &ade); |
70 |
tr->SetBranchAddress("Header", &eh); |
tr->SetBranchAddress("Header", &eh); |
71 |
outputFile << "<?xml version='1.0' encoding='ISO-8859-1'?>\n"; |
outputFile << "<?xml version='1.0' encoding='ISO-8859-1'?>\n"; |
87 |
outputFile << "\t\t\t<ARR_ID>" << (short)adr->Arr_ID << "</ARR_ID>\n"; |
outputFile << "\t\t\t<ARR_ID>" << (short)adr->Arr_ID << "</ARR_ID>\n"; |
88 |
TArrayI *Data = (TArrayI*)adr->Data; |
TArrayI *Data = (TArrayI*)adr->Data; |
89 |
for (int k = 0; k < adr->Arr_len; k++){ |
for (int k = 0; k < adr->Arr_len; k++){ |
90 |
outputFile << "\t\t\t<ARR_VALUE>" << (unsigned int)Data->At(k) << "</ARR_VALUE>\n"; |
k_data = (UInt_t)Data->At(k); |
91 |
|
Utility::endian_swap(k_data); |
92 |
|
outputFile << "\t\t\t<ARR_VALUE>" << k_data << "</ARR_VALUE>\n"; |
93 |
} |
} |
94 |
outputFile << "\t\t</ARRDUMP_RECORD>\n"; |
outputFile << "\t\t</ARRDUMP_RECORD>\n"; |
95 |
} |
} |