Skip to content

Commit 87d05f3

Browse files
authored
[EMCAL-1120] Encode trailer in decimal format instead of hex format. (#12996)
Since working with plain text all instructions must be encoded in decimal format, as the decoder requires decimal format as well.
1 parent 8690200 commit 87d05f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Detectors/EMCAL/calibration/src/EMCALPedestalHelper.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ std::vector<char> EMCALPedestalHelper::createInstructionString(const int runNum)
8484
std::stringstream fout;
8585

8686
if (runNum > 0) {
87-
fout << runNum << "\n";
87+
fout << runNum << std::endl;
8888
}
8989

9090
unsigned int lineValue = 0;
@@ -93,6 +93,8 @@ std::vector<char> EMCALPedestalHelper::createInstructionString(const int runNum)
9393
// const unsigned int FECwordCode = 0x80000000;
9494
const unsigned int FEClineCode = 0x40000000;
9595

96+
const unsigned int TrailerLineCode = 0xFFFFFFFF;
97+
9698
short iSM = 0;
9799
short iRCU = 0;
98100
short ibranch = 0;
@@ -181,7 +183,7 @@ std::vector<char> EMCALPedestalHelper::createInstructionString(const int runNum)
181183
} // iSM
182184

183185
if (runNum > 0) {
184-
fout << 0xFFFFFFFF << std::endl;
186+
fout << TrailerLineCode << std::endl;
185187
}
186188

187189
const std::string instructionString(fout.str());

0 commit comments

Comments
 (0)