Skip to content

Commit

Permalink
Revert "do not clone geometry"
Browse files Browse the repository at this point in the history
This reverts commit fe94f36.
  • Loading branch information
plexoos committed Jan 17, 2024
1 parent fe94f36 commit ec7c4a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions StRoot/Sti/StiMasterDetectorBuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ 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 @@ -34,6 +35,12 @@ 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 @@ -77,6 +84,9 @@ void StiMasterDetectorBuilder::build(StMaker&source)
row++;
}
}
if (gGeoManagerSV) {
gGeoManager = gGeoManagerSV;
}
cout << "StiMasterDetectorBuilder::build() -I- Done"<<endl;
}

Expand Down

0 comments on commit ec7c4a2

Please sign in to comment.