Skip to content

Commit

Permalink
refactor: do not clone geometry for Sti detector builder (star-bnl#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos authored and dkapukchyan committed Mar 11, 2024
1 parent f3d92de commit a7ae7ee
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions StRoot/Sti/StiMasterDetectorBuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ void StiMasterDetectorBuilder::build(StMaker&source)
{
if (! gGeoManager) StiVMCToolKit::GetVMC();

TGeoManager *gGeoManagerSV = gGeoManager; gGeoManager = 0;
StMaker *chain=StMaker::GetChain();

LOG_INFO << "We are StiMasterDetectorBuilder::build() and will clone the geometry if exists" << endm;
Expand All @@ -35,12 +34,6 @@ void StiMasterDetectorBuilder::build(StMaker&source)
}

#if 1
if ( gGeoManagerSV ){
LOG_INFO << "Create a clone of VmcGeometry for reconstruction" << endm;
gGeoManagerSV->Clone("CloneGeom");
} else {
LOG_INFO << "Could not get a pointer to gGeoManager " << endm;
}
#else
if ( chain ) {
LOG_INFO << "StiMasterDetectorBuilder::build() : Create clone of VmcGeometry by reinitialization for reconstruction" <<endm;
Expand Down Expand Up @@ -84,9 +77,6 @@ void StiMasterDetectorBuilder::build(StMaker&source)
row++;
}
}
if (gGeoManagerSV) {
gGeoManager = gGeoManagerSV;
}
cout << "StiMasterDetectorBuilder::build() -I- Done"<<endl;
}

Expand Down

0 comments on commit a7ae7ee

Please sign in to comment.