From 03451d3cea9b47879ebee52ef1640e9355b4c44b Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Mon, 21 Feb 2022 12:42:04 +0200 Subject: [PATCH] fix format --- macro/run/run_unpack_online.C | 8 ++++---- macro/run/run_unpack_tsa.C | 8 ++++---- reco/detectors/trd/unpack/CbmTrdUnpackConfigFasp2D.cxx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/macro/run/run_unpack_online.C b/macro/run/run_unpack_online.C index 6d067c9c65..831e778aff 100644 --- a/macro/run/run_unpack_online.C +++ b/macro/run/run_unpack_online.C @@ -211,10 +211,10 @@ void run_unpack_online(std::vector<std::string> publisher = {"tcp://localhost:55 // 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"); if (runid <= 1588) { - uint8_t map[NFASPMOD], - 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); + uint8_t map[NFASPMOD], 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); } std::string parfilesbasepathTrdfasp2d = Form("%s/parameters/trd", srcDir.Data()); diff --git a/macro/run/run_unpack_tsa.C b/macro/run/run_unpack_tsa.C index 9683988134..42730679a9 100644 --- a/macro/run/run_unpack_tsa.C +++ b/macro/run/run_unpack_tsa.C @@ -223,10 +223,10 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid // 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"); if (runid <= 1588) { - uint8_t map[NFASPMOD], - 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); + uint8_t map[NFASPMOD], 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); } std::string parfilesbasepathTrdfasp2d = Form("%s/parameters/trd", srcDir.Data()); diff --git a/reco/detectors/trd/unpack/CbmTrdUnpackConfigFasp2D.cxx b/reco/detectors/trd/unpack/CbmTrdUnpackConfigFasp2D.cxx index 51f00f1f19..ad024564da 100644 --- a/reco/detectors/trd/unpack/CbmTrdUnpackConfigFasp2D.cxx +++ b/reco/detectors/trd/unpack/CbmTrdUnpackConfigFasp2D.cxx @@ -35,7 +35,7 @@ void CbmTrdUnpackConfigFasp2D::InitAlgo() { if (fDoLog) LOG(info) << fName << "::InitAlgo - SetFaspMapping"; fAlgo->SetAsicMapping(fFaspMap); - /*if (fDoLog) */fAlgo->PrintAsicMapping(); + /*if (fDoLog) */ fAlgo->PrintAsicMapping(); // Now we have all information required to initialise the algorithm fAlgo->Init(); -- GitLab