diff --git a/Trigger/TrigT1/TrigT1NSWSimTools/TrigT1NSWSimTools/MMT_struct.h b/Trigger/TrigT1/TrigT1NSWSimTools/TrigT1NSWSimTools/MMT_struct.h index 6092e9a7cd6fc07c6e6eb2020d36340d70be176d..c1303670be43a91034d45a935acba90d328ff06f 100644 --- a/Trigger/TrigT1/TrigT1NSWSimTools/TrigT1NSWSimTools/MMT_struct.h +++ b/Trigger/TrigT1/TrigT1NSWSimTools/TrigT1NSWSimTools/MMT_struct.h @@ -61,8 +61,8 @@ public: } //constructor - float32fixed<T>(const float32fixed<T>&) = default; - float32fixed<T>(float32fixed<T>&&) = default; + float32fixed(const float32fixed<T>&) = default; + float32fixed(float32fixed<T>&&) = default; // assignment float32fixed<T>& operator=(const float32fixed<T> &other) = default; diff --git a/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTdsOfflineTool.cxx b/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTdsOfflineTool.cxx index eda146258ba2b3bcf85c55934e5a08d1eeb7a348..ba63ce25e9183999cb69093dc6e3d2de30a4b83e 100644 --- a/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTdsOfflineTool.cxx +++ b/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTdsOfflineTool.cxx @@ -404,7 +404,11 @@ namespace NSWL1 { ITHistSvc* tHistSvc=nullptr; m_validation_tree.clear_ntuple_variables(); ATH_CHECK(service("THistSvc", tHistSvc)); - std::string algoname = dynamic_cast<const INamedInterface*>(parent())->name(); + auto iname = dynamic_cast<const INamedInterface*>(parent()); + if (!iname) { + return StatusCode::FAILURE; + } + std::string algoname = iname->name(); std::string treename = PadTdsValidationTree::treename_from_algoname(algoname); ATH_CHECK(tHistSvc->getTree(treename, tree)); diff --git a/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTriggerLogicOfflineTool.cxx b/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTriggerLogicOfflineTool.cxx index 1e5b47f9f40fa7807760681778ae480b3f2b3098..895588d50a7b8c5a93e2260c54f0bccc3440b0bf 100644 --- a/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTriggerLogicOfflineTool.cxx +++ b/Trigger/TrigT1/TrigT1NSWSimTools/src/PadTriggerLogicOfflineTool.cxx @@ -249,7 +249,11 @@ StatusCode PadTriggerLogicOfflineTool::get_tree_from_histsvc( TTree*&tree) ITHistSvc* tHistSvc=nullptr; m_validation_tree.clear_ntuple_variables(); ATH_CHECK(service("THistSvc", tHistSvc)); - std::string algoname = dynamic_cast<const INamedInterface*>(parent())->name(); + auto iname = dynamic_cast<const INamedInterface*>(parent()); + if (!iname) { + return StatusCode::FAILURE; + } + std::string algoname = iname->name(); std::string treename = PadTriggerValidationTree::treename_from_algoname(algoname); ATH_CHECK(tHistSvc->getTree(treename, tree)); return StatusCode::SUCCESS;