Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64439
b: "refs/heads/CMSSW_7_1_X"
c: e7f5810
h: "refs/heads/CMSSW_7_1_X"
i:
  64437: 2d087e4
  64435: 42e275a
  64431: 6701092
v: v3
  • Loading branch information
Robert Frazier committed Apr 7, 2009
1 parent 1c85deb commit 38cad5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 82f76fd1a3f5d9423d7c163d852a0c36647fc4ea
"refs/heads/CMSSW_7_1_X": 541059c11afa5d664b591762fc278040a3d52715
"refs/heads/CMSSW_7_1_X": e7f5810b037a1c47984b55ecd1a553ac7fbd918a
11 changes: 6 additions & 5 deletions trunk/EventFilter/GctRawToDigi/src/GctFormatTranslateMCLegacy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ using std::cout;
using std::endl;
using std::pair;
using std::make_pair;
using std::vector;

// INITIALISE STATIC VARIABLES
GctFormatTranslateMCLegacy::BlockLengthMap GctFormatTranslateMCLegacy::m_blockLength = GctFormatTranslateMCLegacy::BlockLengthMap();
Expand Down Expand Up @@ -336,18 +337,18 @@ void GctFormatTranslateMCLegacy::writeRctEmCandBlocks(unsigned char * d, const L
// Now run the conversion
for(unsigned c = 0 ; c < 18 ; ++c)
{
srcCardRouting_.EMUtoSFP(emuToSfpData[c].eIsoRank, emuToSfpData[c].eIsoCardId, emuToSfpData[c].eIsoRegionId,
emuToSfpData[c].eNonIsoRank, emuToSfpData[c].eNonIsoCardId, emuToSfpData[c].eNonIsoRegionId,
emuToSfpData[c].mipBits, emuToSfpData[c].qBits, emuToSfpData[c].sfp);
srcCardRouting().EMUtoSFP(emuToSfpData[c].eIsoRank, emuToSfpData[c].eIsoCardId, emuToSfpData[c].eIsoRegionId,
emuToSfpData[c].eNonIsoRank, emuToSfpData[c].eNonIsoCardId, emuToSfpData[c].eNonIsoRegionId,
emuToSfpData[c].mipBits, emuToSfpData[c].qBits, emuToSfpData[c].sfp);
}

// Now pack up the data into the RAW format.
RctCrateMap::iterator blockStartCrateIter;
BlkToRctCrateMap::iterator blockStartCrateIter;
for(blockStartCrateIter = rctCrate_.begin() ; blockStartCrateIter != rctCrate_.end() ; ++blockStartCrateIter)
{
unsigned blockId = blockStartCrateIter->first;
unsigned startCrate = blockStartCrateIter->second;
unsigned blockLength_32bit = GctBlockHeaderV2(blockId, 1, 0, 0).length();
unsigned blockLength_32bit = blockLengthMap()[blockId];

writeRawHeader(d, blockId, 1);
d+=4; // move past header.
Expand Down

0 comments on commit 38cad5f

Please sign in to comment.