From 82c41335633c916d305fd151943bba3095f11b75 Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Wed, 12 Feb 2025 16:30:07 +0200 Subject: [PATCH] apply digi time convention for simulations --- sim/detectors/trd/CbmTrdModuleSim2D.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sim/detectors/trd/CbmTrdModuleSim2D.cxx b/sim/detectors/trd/CbmTrdModuleSim2D.cxx index eb96e40625..1152308b08 100644 --- a/sim/detectors/trd/CbmTrdModuleSim2D.cxx +++ b/sim/detectors/trd/CbmTrdModuleSim2D.cxx @@ -561,8 +561,7 @@ void CbmTrdModuleSim2D::AddDigi(Int_t pad, Double_t* charge, Double_t time /*, D // make digi CbmTrdDigi *digi(NULL), *sdigi(NULL); CbmMatch* digiMatch(NULL); - digi = new CbmTrdDigi(pad, charge[0], charge[1], - ULong64_t(TMath::Ceil(time / CbmTrdDigi::Clk(CbmTrdDigi::eCbmTrdAsicType::kFASP)))); + digi = new CbmTrdDigi(pad, charge[0], charge[1], uint64_t(time)); digi->SetAddressModule(fModAddress); // may not be needed in the future digiMatch = new CbmMatch(); Double_t weighting = fChmbPar->EfCkeV(charge[0] * 0.1); // save th. energy which is seen by pads; -- GitLab