From 121eb94e93f078934a10a12fa06ce6f836062876 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 13 May 2024 17:37:47 +0200
Subject: [PATCH] Typos: fix some randomly spotted typos

---
 DDG4/include/DDG4/Geant4Particle.h | 8 +++++---
 DDG4/python/DDSim/Helper/Meta.py   | 2 +-
 DDG4/src/Geant4Action.cpp          | 2 +-
 DDG4/src/Geant4InputAction.cpp     | 2 +-
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/DDG4/include/DDG4/Geant4Particle.h b/DDG4/include/DDG4/Geant4Particle.h
index 77bfc5586..bb4e2b12d 100644
--- a/DDG4/include/DDG4/Geant4Particle.h
+++ b/DDG4/include/DDG4/Geant4Particle.h
@@ -221,11 +221,13 @@ namespace dd4hep {
       std::string processName() const;
       /// Access to the creator process type name
       std::string processTypeName() const;
-      /// Access patricle momentum, energy as 4 vector
+      /// Access particle momentum, energy as 4 vector
       FourVector pxPyPzM() const;
-      /// Access patricle momentum, energy as 4 vector
+      /// Access particle momentum, energy as 4 vector
+      template <typename T> std::vector<T> pxPyPzM(T unit) const;
+      /// Access particle momentum, energy as 4 vector
       ThreeVector startVertex() const;
-      /// Access patricle momentum, energy as 4 vector
+      /// Access particle momentum, energy as 4 vector
       ThreeVector endVertex()  const;
       /// Access the Geant4 particle definition object (expensive!)
       const G4ParticleDefinition *definition() const;
diff --git a/DDG4/python/DDSim/Helper/Meta.py b/DDG4/python/DDSim/Helper/Meta.py
index c7db1cd59..6b86ce1b3 100644
--- a/DDG4/python/DDSim/Helper/Meta.py
+++ b/DDG4/python/DDSim/Helper/Meta.py
@@ -31,7 +31,7 @@ class Meta(ConfigHelper):
 
   def parseEventParameters(self):
     """
-    Parse the event parameters and return 3 event parameter dictionnaries, respectively
+    Parse the event parameters and return 3 event parameter dictionaries, respectively
     for string, int and float parameters
     """
     stringParameters, intParameters, floatParameters, allParameters = {}, {}, {}, []
diff --git a/DDG4/src/Geant4Action.cpp b/DDG4/src/Geant4Action.cpp
index f0f053ad2..9de0f0f17 100644
--- a/DDG4/src/Geant4Action.cpp
+++ b/DDG4/src/Geant4Action.cpp
@@ -45,7 +45,7 @@ void Geant4Action::ContextUpdate::operator()(Geant4Action* action) const  {
   action->m_context = context;
   if ( 0 == action->m_context )   {
 
-    cout << "EERIOR" << endl;
+    cout << "ERROR" << endl;
 
   }
 }
diff --git a/DDG4/src/Geant4InputAction.cpp b/DDG4/src/Geant4InputAction.cpp
index 785f4267b..31cd4daf3 100644
--- a/DDG4/src/Geant4InputAction.cpp
+++ b/DDG4/src/Geant4InputAction.cpp
@@ -183,7 +183,7 @@ int Geant4InputAction::readParticles(int evt_number,
                                      Vertices& vertices,
                                      std::vector<Particle*>& particles)
 {
-  //in case readParticles is called diractly outside of having a run, we make sure a reader exists
+  //in case readParticles is called directly outside of having a run, we make sure a reader exists
   createReader();
   int evid = evt_number + m_firstEvent;
   int status = m_reader->moveToEvent(evid);
-- 
GitLab