Skip to content
Snippets Groups Projects
Commit 8124d461 authored by Alexandru Bercuci's avatar Alexandru Bercuci
Browse files

add default Fasp mapping also for the online unpacker

parent 02fecf0e
No related branches found
No related tags found
1 merge request!747add default mapping for FASP on module 5
Pipeline #16433 passed
......@@ -210,13 +210,16 @@ void run_unpack_online(std::vector<std::string> publisher = {"tcp://localhost:55
trdfasp2dconfig->SetDoWriteOutput();
// Activate the line below to write Trd1D digis to a separate "TrdFaspDigi" branch. Can be used to separate between Fasp and Spadic digis
//trdfasp2dconfig->SetOutputBranchName("TrdFaspDigi");
uint8_t map[NFASPMOD];
if (runid <= 1588) {
uint8_t map[NFASPMOD], map21[] = {9, 2, 3, 11, 10, 7, 8, 0, 1, 4, 6, 5};
uint8_t map21[] = {9, 2, 3, 11, 10, 7, 8, 0, 1, 4, 6, 5};
for (int i(0); i < NFASPMOD; i++)
map[i] = (i < 12 ? map21[i] : i);
trdfasp2dconfig->SetFaspMapping(5, map);
}
else
for (int i(0); i < NFASPMOD; i++)
map[i] = i;
trdfasp2dconfig->SetFaspMapping(5, map);
std::string parfilesbasepathTrdfasp2d = Form("%s/parameters/trd", srcDir.Data());
trdfasp2dconfig->SetParFilesBasePath(parfilesbasepathTrdfasp2d);
trdfasp2dconfig->SetSystemTimeOffset(-1800); // [ns] value to be updated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment