From 88d542a703a8d69ee841c5d3136c30c7b7a0f9fb Mon Sep 17 00:00:00 2001
From: Alexandru Bercuci <abercuci@niham.nipne.ro>
Date: Fri, 19 Aug 2022 11:48:47 +0300
Subject: [PATCH] apply suggestions of FU
 https://git.cbm.gsi.de/computing/cbmroot/-/merge_requests/918#note_23641

---
 reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx b/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx
index 19a3fdb0ca..2186db2829 100644
--- a/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx
+++ b/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx
@@ -47,7 +47,6 @@ CbmTrdUnpackFaspAlgo::~CbmTrdUnpackFaspAlgo() {}
 //_________________________________________________________________________________
 Bool_t CbmTrdUnpackFaspAlgo::initParSet(FairParGenericSet* parset)
 {
-  printf("AB :: CbmTrdUnpackFaspAlgo::initParSet\n");
   FairParamList parList;
   Int_t nModules(0);
   if (strcmp(parset->ClassName(), "CbmTrdParSetAsic") == 0) {
@@ -309,9 +308,8 @@ bool CbmTrdUnpackFaspAlgo::pushDigis(std::vector<CbmTrdUnpackFaspAlgo::CbmTrdFas
       }
     }
     else {  // init pad position in map and build digi for message
-      CbmTrdDigi digi(pad, lchT, lchR, lTime);
-      digi.SetAddressModule(fMod);
-      fDigiBuffer[fCrob][pad].push_back(digi);
+      fDigiBuffer[fCrob][pad].emplace_back(pad, lchT, lchR, lTime);
+      fDigiBuffer[fCrob][pad].back().SetAddressModule(fMod);
     }
   }
   messes.clear();
-- 
GitLab