Skip to content

Commit

Permalink
Move geometry initialization in ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
fisyak committed Nov 6, 2023
1 parent b71b19e commit 311607a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions StRoot/StGenericVertexMaker/StiPPVertex/BtofHitList.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 311607a

Please sign in to comment.