Commit 4ac440de authored by Robert Langenberg's avatar Robert Langenberg
Browse files

add dep on both Pixel and SCT GeoAlignmentStores

parent acea5513
......@@ -90,6 +90,12 @@ StatusCode PixelDetectorElementCondAlg::execute(const EventContext& ctx) const
} else{
ATH_MSG_INFO("TRT DetEls not found, ignoring TRT for PixelDetElement lifetime");
}
SG::ReadCondHandle<GeoAlignmentStore> sctDependency{m_SCT_readKey, ctx};
if(*sctDependency != nullptr){
writeHandle.addDependency(sctDependency);
} else{
ATH_MSG_INFO("SCT AlignmentStore not found, ignoring SCT for PixelDetElement lifetime");
}
// ____________ Update writeCdo using readCdo ____________
std::map<const InDetDD::SiDetectorElement*, const InDetDD::SiDetectorElement*> oldToNewMap;
......
......@@ -46,9 +46,11 @@ class PixelDetectorElementCondAlg : public AthReentrantAlgorithm
// The DetElement Collection must have a life time <= the Tracking Geometry due to DetElt-> Surface -> Layer connection,
// which is why we intersect with the IOV Ranges from the TG's dependencies.
SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_muonManagerKey
{this, "MuonManagerKey", "MuonDetectorManager", "MuonManager for IOV Range intersection"};
{this, "MuonManagerKey", "MuonDetectorManager", "MuonManager ReadKey for IOV Range intersection"};
SG::ReadCondHandleKey<InDetDD::TRT_DetElementContainer> m_trtDetElContKey
{this, "TRT_DetEltContKey", "TRT_DetElementContainer", "Key of output to store detector element structures for TRT"};
{this, "TRT_DetEltContKey", "TRT_DetElementContainer", "TRT ReadKey for IOV Range intersection"};
SG::ReadCondHandleKey<GeoAlignmentStore> m_SCT_readKey
{this, "SCTAlignmentStore", "SCTAlignmentStore", "SCTAlignmentStore ReadKey for IOV Range intersection "};
ServiceHandle<ICondSvc> m_condSvc{this, "CondSvc", "CondSvc"};
......
......@@ -89,6 +89,12 @@ StatusCode SCT_DetectorElementCondAlg::execute(const EventContext& ctx) const
} else{
ATH_MSG_INFO("TRT DetEls not found, ignoring TRT for PixelDetElement lifetime");
}
SG::ReadCondHandle<GeoAlignmentStore> pixelDependency{m_pixelReadKey, ctx};
if(*pixelDependency != nullptr){
writeHandle.addDependency(pixelDependency);
} else{
ATH_MSG_INFO("Pixel AlignmentStore not found, ignoring Pixel for SCT_DetElement lifetime");
}
// ____________ Update writeCdo using readCdo ____________
std::map<const InDetDD::SiDetectorElement*, const InDetDD::SiDetectorElement*> oldToNewMap;
......
......@@ -44,9 +44,11 @@ class SCT_DetectorElementCondAlg : public AthReentrantAlgorithm
// The DetElement Collection must have a life time <= the Tracking Geometry due to DetElt-> Surface -> Layer connection,
// which is why we intersect with the IOV Ranges from the TG's dependencies.
SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_muonManagerKey
{this, "MuonManagerKey", "MuonDetectorManager", "MuonManager for IOV Range intersection"};
{this, "MuonManagerKey", "MuonDetectorManager", "MuonManager ReadKey for IOV Range intersection"};
SG::ReadCondHandleKey<InDetDD::TRT_DetElementContainer> m_trtDetElContKey
{this, "TRT_DetEltContKey", "TRT_DetElementContainer", "Key of output to store detector element structures for TRT"};
{this, "TRT_DetEltContKey", "TRT_DetElementContainer", "TRT ReadKey for IOV Range intersection"};
SG::ReadCondHandleKey<GeoAlignmentStore> m_pixelReadKey
{this, "PixelAlignmentStore", "PixelAlignmentStore", "PixelAlignmentStore ReadKey for IOV Range intersection"};
ServiceHandle<ICondSvc> m_condSvc{this, "CondSvc", "CondSvc"};
std::string m_detManagerName;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment