From 1d14c0ed3b9c9b63a2c3ceeb06f32cab092fcf02 Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Fri, 21 Jan 2022 13:26:07 +0200 Subject: [PATCH] fix initialization of default task configuration --- reco/detectors/trd/CbmTrdHitProducer.h | 2 +- reco/detectors/trd/CbmTrdModuleRec2D.cxx | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/reco/detectors/trd/CbmTrdHitProducer.h b/reco/detectors/trd/CbmTrdHitProducer.h index a965557bcf..1a4838cafd 100644 --- a/reco/detectors/trd/CbmTrdHitProducer.h +++ b/reco/detectors/trd/CbmTrdHitProducer.h @@ -146,7 +146,7 @@ private: * [6] - * [7] - */ - uint8_t fTaskConfig; + uint8_t fTaskConfig = 0; /** @brief Number of processed time slices */ UInt_t fNrTs = 0; diff --git a/reco/detectors/trd/CbmTrdModuleRec2D.cxx b/reco/detectors/trd/CbmTrdModuleRec2D.cxx index f127b8bda2..cd730515d1 100644 --- a/reco/detectors/trd/CbmTrdModuleRec2D.cxx +++ b/reco/detectors/trd/CbmTrdModuleRec2D.cxx @@ -68,8 +68,8 @@ CbmTrdModuleRec2D::CbmTrdModuleRec2D(Int_t mod, Int_t ly, Int_t rot) , vx() , vxe() { - //printf("AddModuleT @ %d\n", mod); Config(1,0); - SetNameTitle(Form("Trd2dReco%d", mod), "Reconstructor for triangular read-out."); + SetNameTitle(Form("Trd2dReco%d", mod), "Reconstructor for triangular pads."); + // printf("%s (%s)\n", GetName(), GetTitle()); Config(1,0); } //_______________________________________________________________________________ @@ -128,16 +128,17 @@ Bool_t CbmTrdModuleRec2D::AddDigi(const CbmTrdDigi* d, Int_t id) if (itc != fBuffer[row].end() && itc != fBuffer[row].begin()) { itc--; fBuffer[row].insert(itc, cl = new CbmTrdCluster(fModAddress, id, ch, row, tm)); - if (CWRITE()) cout << " => Cl (I) " << cl->ToString(); + if (CWRITE()) cout << " => Cl (I) "; } else { fBuffer[row].push_back(cl = new CbmTrdCluster(fModAddress, id, ch, row, tm)); - if (CWRITE()) cout << " => Cl (Pb) " << cl->ToString(); + if (CWRITE()) cout << " => Cl (Pb) "; } cl->SetFaspDigis((d->GetType() == CbmTrdDigi::eCbmTrdAsicType::kFASP)); if (terminator < 0) cl->SetProfileStart(); else if (terminator > 0) cl->SetProfileStop(); + if (CWRITE()) cout << cl->ToString(); } } else { @@ -218,7 +219,7 @@ Bool_t CbmTrdModuleRec2D::PreProcessHits() */ Int_t nhits = fHits->GetEntriesFast(); - if (CWRITE()) LOG(info) << "\n" << GetName() << "::PreProcessHits(" << nhits << ")"; + if (CWRITE()) LOG(info) << GetName() << "::PreProcessHits(" << nhits << ")"; CbmTrdHit* hit(NULL); for (Int_t ih(0); ih < nhits; ih++) { @@ -227,7 +228,7 @@ Bool_t CbmTrdModuleRec2D::PreProcessHits() nhits += Deconvolute(hit); } nhits = fHits->GetEntriesFast(); - if (CWRITE()) LOG(info) << "\n" << GetName() << "::Deconvolute(" << nhits << ")"; + if (CWRITE()) LOG(info) << GetName() << "::Deconvolute(" << nhits << ")"; return kTRUE; } @@ -296,7 +297,7 @@ Bool_t CbmTrdModuleRec2D::PostProcessHits() } fDigis.clear(); - if (CWRITE()) LOG(info) << "\n" << GetName() << "::MergeHits(" << nhits << ")"; + if (CWRITE()) LOG(info) << GetName() << "::MergeHits(" << nhits << ")"; return kTRUE; } -- GitLab