From 987442bd0717c24d2fd34e4cb981fa30e3343e30 Mon Sep 17 00:00:00 2001 From: Yuri Fisyak Date: Wed, 11 Sep 2024 16:39:18 -0400 Subject: [PATCH] use St_tpcTimeBucketCor only for new schema --- StRoot/StTpcHitMoverMaker/StTpcHitMoverMaker.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/StRoot/StTpcHitMoverMaker/StTpcHitMoverMaker.cxx b/StRoot/StTpcHitMoverMaker/StTpcHitMoverMaker.cxx index fcb31616b08..cdbe0b56d98 100644 --- a/StRoot/StTpcHitMoverMaker/StTpcHitMoverMaker.cxx +++ b/StRoot/StTpcHitMoverMaker/StTpcHitMoverMaker.cxx @@ -49,8 +49,11 @@ Int_t StTpcHitMover::Make() { return kStSkip; } static StGlobalCoordinate coorG; - static St_tpcTimeBucketCorC *tpcTimeBucketCor = St_tpcTimeBucketCorC::instance(); - if (tpcTimeBucketCor && (tpcTimeBucketCor->nrows() == 0 || StTpcDb::IsOldScheme())) tpcTimeBucketCor = 0; + static St_tpcTimeBucketCorC *tpcTimeBucketCor = 0; + if (! StTpcDb::IsOldScheme()) { + tpcTimeBucketCor = St_tpcTimeBucketCorC::instance(); + if (tpcTimeBucketCor && (tpcTimeBucketCor->nrows() == 0)) tpcTimeBucketCor = 0; + } Bool_t EmbeddingShortCut = IAttr("EmbeddingShortCut"); StEvent* pEvent = dynamic_cast (GetInputDS("StEvent")); Double_t triggerOffset = 0;