Skip to content

Commit 4beb80b

Browse files
committed
Switch to MemPrintSplit input files for Future SW
1 parent 9d95849 commit 4beb80b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

TrackletAlgorithm/MemoryTemplateTPROJ.h

+2-7
Original file line numberDiff line numberDiff line change
@@ -180,23 +180,18 @@ class MemoryTemplateTPROJ
180180

181181
bool write_mem(BunchXingT ibx, const std::string& line, int base=16)
182182
{
183-
#ifdef CMSSW_1FPGA
184-
const std::string& datastr = line;
185-
unsigned int page = 0;
186-
#else
187183
assert(split(line,' ').size()==4);
188184

189185
const std::string datastr = split(line,' ').back();
190186

191187
const std::string pagestr = split(line,' ').front();
192188

193-
unsigned int page = 4;
189+
unsigned int page = NPAGE;
194190
if (pagestr=="0x00") page = 0;
195191
if (pagestr=="0x01") page = 1;
196192
if (pagestr=="0x02") page = 2;
197193
if (pagestr=="0x03") page = 3;
198-
assert(page<4);
199-
#endif
194+
assert(page < NPAGE);
200195

201196
if(!NBIT_BX) ibx = 0;
202197
DataType data(datastr.c_str(), base);

0 commit comments

Comments
 (0)