From 311607ad9a46aa48634e105bba495c1d3006bf77 Mon Sep 17 00:00:00 2001 From: Yuri Fisyak Date: Mon, 6 Nov 2023 12:40:15 -0500 Subject: [PATCH] Move geometry initialization in ctor --- StRoot/StGenericVertexMaker/StiPPVertex/BtofHitList.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/StRoot/StGenericVertexMaker/StiPPVertex/BtofHitList.cxx b/StRoot/StGenericVertexMaker/StiPPVertex/BtofHitList.cxx index cd3b5614db8..30f3fe42560 100644 --- a/StRoot/StGenericVertexMaker/StiPPVertex/BtofHitList.cxx +++ b/StRoot/StGenericVertexMaker/StiPPVertex/BtofHitList.cxx @@ -19,7 +19,7 @@ //========================================================== //========================================================== -BtofHitList::BtofHitList() : +BtofHitList::BtofHitList() : geometry(0), // phi, 60 bins // eta, 32*2 bins not with the same width, so eta0,deta are really not used ScintHitList(0.,M_PI/60,60, -0.9,0.028125,64,"Btof",4,0.75) @@ -46,7 +46,6 @@ BtofHitList::initRun(St_db_Maker* db_maker) { // Initialize BTOF geometry TObjectSet *geom = (TObjectSet *) db_maker->GetDataSet("btofGeometry"); - geometry = 0; if (geom) geometry = (StBTofGeometry *) geom->GetObject(); if (geometry) { LOG_INFO << " Found btofGeometry ... " << endm;