From 07fa96b7549a4107955c42312c371c14f9c5eeab Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 15 Sep 2022 12:54:08 +0200
Subject: [PATCH] Fix random typos
---
DDCore/include/DDSegmentation/MultiSegmentation.h | 2 +-
DDCore/src/plugins/Compact2Objects.cpp | 2 +-
DDG4/python/DDSim/DD4hepSimulation.py | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/DDCore/include/DDSegmentation/MultiSegmentation.h b/DDCore/include/DDSegmentation/MultiSegmentation.h
index 074743c58..cff283d19 100644
--- a/DDCore/include/DDSegmentation/MultiSegmentation.h
+++ b/DDCore/include/DDSegmentation/MultiSegmentation.h
@@ -29,7 +29,7 @@ namespace dd4hep {
*/
class MultiSegmentation : public Segmentation {
public:
- /// Heler structure to describe a sub-segmentation entry
+ /// Helper structure to describe a sub-segmentation entry
struct Entry {
long key_min, key_max;
Segmentation* segmentation;
diff --git a/DDCore/src/plugins/Compact2Objects.cpp b/DDCore/src/plugins/Compact2Objects.cpp
index d66d2da78..aae992573 100644
--- a/DDCore/src/plugins/Compact2Objects.cpp
+++ b/DDCore/src/plugins/Compact2Objects.cpp
@@ -1116,7 +1116,7 @@ template <> void Converter<Readout>::operator()(xml_h e) const {
else {
stringstream tree;
xml::dump_tree(e,tree);
- throw_print("Reaout: Invalid specificatrion for multiple hit collections."+tree.str());
+ throw_print("Readout: Invalid specification for multiple hit collections."+tree.str());
}
printout(s_debug.readout ? ALWAYS : DEBUG,"Compact",
"++ Readout[%s]: Add hit collection %s [%s] %d-%d",
diff --git a/DDG4/python/DDSim/DD4hepSimulation.py b/DDG4/python/DDSim/DD4hepSimulation.py
index 307b07a41..9b8708edf 100644
--- a/DDG4/python/DDSim/DD4hepSimulation.py
+++ b/DDG4/python/DDSim/DD4hepSimulation.py
@@ -588,7 +588,7 @@ class DD4hepSimulation(object):
self._errorMessages.append("ERROR: printLevel '%s' unknown" % level)
return -1
- def __setupSensitiveDetectors(self, detectors, setupFuction, defaultFilter=None,
+ def __setupSensitiveDetectors(self, detectors, setupFunction, defaultFilter=None,
abortForMissingAction=False,
):
"""Attach sensitive detector actions for all subdetectors.
@@ -611,7 +611,7 @@ class DD4hepSimulation(object):
if abortForMissingAction and action is None:
logger.error('Cannot find Action for detector %s. You have to extend "action.mapAction"', det)
raise RuntimeError("Cannot find Action")
- seq, act = setupFuction(det, type=action)
+ seq, act = setupFunction(det, action)
self.filter.applyFilters(seq, det, defaultFilter)
# set detailed hit creation mode for this
--
GitLab