diff --git a/InnerDetector/InDetConditions/SCT_ConditionsAlgorithms/src/SCT_DetectorElementCondAlg.cxx b/InnerDetector/InDetConditions/SCT_ConditionsAlgorithms/src/SCT_DetectorElementCondAlg.cxx index 71e32561880c702001e94b2613c3b52df52e99e4..8dc7f623ac57327f1b87d8f7a169de1b82f03397 100644 --- a/InnerDetector/InDetConditions/SCT_ConditionsAlgorithms/src/SCT_DetectorElementCondAlg.cxx +++ b/InnerDetector/InDetConditions/SCT_ConditionsAlgorithms/src/SCT_DetectorElementCondAlg.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ #include "SCT_DetectorElementCondAlg.h" @@ -8,6 +8,7 @@ #include "InDetReadoutGeometry/SiDetectorElement.h" #include "TrkGeometry/Layer.h" #include "TrkSurfaces/Surface.h" +#include "AthenaKernel/IOVInfiniteRange.h" #include <map> @@ -75,6 +76,9 @@ StatusCode SCT_DetectorElementCondAlg::execute(const EventContext& ctx) const return StatusCode::FAILURE; } + // Make sure we make a mixed IOV. + writeHandle.addDependency (IOVInfiniteRange::infiniteMixed()); + // Add dependency writeHandle.addDependency(readHandle); // Additional dependencies for IOV range to limit lifetime to TrackingGeometry lifetime diff --git a/InnerDetector/InDetDetDescr/InDetReadoutGeometry/InDetReadoutGeometry/SiDetectorElementCollection.h b/InnerDetector/InDetDetDescr/InDetReadoutGeometry/InDetReadoutGeometry/SiDetectorElementCollection.h index 3dc612481b30ee993d81661be7093d484a7e0380..8261a05f0280ee1ef6c5c46285281c1bde638874 100755 --- a/InnerDetector/InDetDetDescr/InDetReadoutGeometry/InDetReadoutGeometry/SiDetectorElementCollection.h +++ b/InnerDetector/InDetDetDescr/InDetReadoutGeometry/InDetReadoutGeometry/SiDetectorElementCollection.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ /////////////////////////////////////////////////////////////////// @@ -38,6 +38,6 @@ namespace InDetDD { #include "AthenaKernel/CLASS_DEF.h" CLASS_DEF( InDetDD::SiDetectorElementCollection , 1330395642 , 1 ) #include "AthenaKernel/CondCont.h" -CONDCONT_DEF( InDetDD::SiDetectorElementCollection, 1098715294 ); +CONDCONT_MIXED_DEF( InDetDD::SiDetectorElementCollection, 1098715294 ); #endif // INDETREADOUTGEOMETRY_SIDETECTORELEMENTCOLLECTION_H