21 return StatusCode::SUCCESS;
31 return StatusCode::SUCCESS;
41 std::vector<SG::ReadHandle<CaloCalibrationHitContainer> > calibrationHitReadHandles;
44 if (!tileActiveCaloCalibrationHitReadHandle.
isValid())
ATH_MSG_WARNING(
"Could not retrieve CaloCalibrationHitContainer with key " << tileActiveCaloCalibrationHitReadHandle.
key());
45 else calibrationHitReadHandles.push_back(tileActiveCaloCalibrationHitReadHandle);
48 if (!tileInactiveCaloCalibrationHitReadHandle.
isValid())
ATH_MSG_WARNING(
"Could not retrieve CaloCalibrationHitContainer with key " << tileInactiveCaloCalibrationHitReadHandle.
key());
49 else calibrationHitReadHandles.push_back(tileInactiveCaloCalibrationHitReadHandle);
52 if (!tileDMCaloCalibrationHitReadHandle.
isValid())
ATH_MSG_WARNING(
"Could not retrieve CaloCalibrationHitContainer with key " << tileDMCaloCalibrationHitReadHandle.
key());
53 else calibrationHitReadHandles.push_back(tileDMCaloCalibrationHitReadHandle);
56 if (!lArActiveCaloCalibrationHitReadHandle.
isValid())
ATH_MSG_WARNING(
"Could not retrieve CaloCalibrationHitContainer with key " << lArActiveCaloCalibrationHitReadHandle.
key());
57 else calibrationHitReadHandles.push_back(lArActiveCaloCalibrationHitReadHandle);
60 if (!lArInactiveCaloCalibrationHitReadHandle.
isValid())
ATH_MSG_WARNING(
"Could not retrieve CaloCalibrationHitContainer with key " << lArInactiveCaloCalibrationHitReadHandle.
key());
61 else calibrationHitReadHandles.push_back(lArInactiveCaloCalibrationHitReadHandle);
64 if (!lArDMCaloCalibrationHitReadHandle.
isValid())
ATH_MSG_WARNING(
"Could not retrieve CaloCalibrationHitContainer with key " << lArDMCaloCalibrationHitReadHandle.
key());
65 else calibrationHitReadHandles.push_back(lArDMCaloCalibrationHitReadHandle);
67 for (
auto& thisCalibrationHitReadHandle : calibrationHitReadHandles){
68 for (
const auto *thisCalibrationHit : *thisCalibrationHitReadHandle){
70 if (!thisCalibrationHit) {
71 ATH_MSG_WARNING(
"Got invalid pointer to CaloCalibrationHit in container with key :" << thisCalibrationHitReadHandle.key());
76 Identifier thisIdentifier = thisCalibrationHit->cellID();
78 int count = identifierToCaloHitMap.count(thisIdentifier);
79 if (0 ==
count) identifierToCaloHitMap[thisIdentifier] = std::vector<const CaloCalibrationHit*>{thisCalibrationHit};
80 else identifierToCaloHitMap[thisIdentifier].push_back(thisCalibrationHit);