Skip to content
Commit 530dcab8 authored by Scott Snyder's avatar Scott Snyder Committed by Adam Edward Barton
Browse files

CaloDetDescr: Preparing to make CaloDD immutable.

Previously, we were creating the CaloDD via a converter, then applying
alignments via conditions callbacks.  This this meant that the CaloDD
will be different depending on whether we're looking before or after
alignments have been applied.  This can then lead to problems if the
CaloDD is retrieved too early.  The const_cast'ing needed is also
problematic for MT.

Instead of building CaloDD via a converter, we want to move to creating
it explicitly as part of doing alignments.

However, this means that in general, we shouldn't be trying to retrieve
CaloDetDescrManager during initialize().  Rework to avoid this.
Change CaloDepthTool to retrieve CaloDD lazily, using CachedPointer.
parent 398c41a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment