Skip to content

Commit 484e93b

Browse files
committed
Refresh nodes and lock geometry after the alignment
1 parent 5f3a6c7 commit 484e93b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Detectors/Base/src/Aligner.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ void Aligner::applyAlignment(long timestamp, DetID::mask_t addMask) const
3535
if (!gGeoManager) {
3636
throw std::runtime_error("Geometry is not loaded, cannot apply alignment");
3737
}
38+
if (gGeoManager->IsLocked()) {
39+
throw std::runtime_error("Geometry is locked, cannot apply alignment");
40+
}
41+
3842
auto& ccdbmgr = o2::ccdb::BasicCCDBManager::instance();
3943
if (timestamp == 0) {
4044
timestamp = getTimeStamp();
@@ -58,6 +62,7 @@ void Aligner::applyAlignment(long timestamp, DetID::mask_t addMask) const
5862
LOGP(INFO, "skipping empty alignment for {}", DetID::getName(id));
5963
}
6064
}
65+
gGeoManager->RefreshPhysicalNodes(false);
6166
}
6267

6368
long Aligner::getTimeStamp() const

0 commit comments

Comments
 (0)