Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: embed SEvt into G4App #37

Merged
merged 4 commits into from
Oct 3, 2024
Merged

refactor: embed SEvt into G4App #37

merged 4 commits into from
Oct 3, 2024

Conversation

plexoos
Copy link
Member

@plexoos plexoos commented Oct 2, 2024

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

No concerns from clang-tidy.

Click here for the full clang-format patch
diff --git a/src/simg4ox.cpp b/src/simg4ox.cpp
index c23c151..e857c9e 100644
--- a/src/simg4ox.cpp
+++ b/src/simg4ox.cpp
@@ -47 +46,0 @@ using namespace std;
-
@@ -75 +74,3 @@ struct PrimaryGenerator : G4VUserPrimaryGeneratorAction
-    PrimaryGenerator(SEvt *sev) : sev(sev) {}
+    PrimaryGenerator(SEvt *sev) : sev(sev)
+    {
+    }
@@ -117 +118,3 @@ struct EventAction : G4UserEventAction
-    EventAction(SEvt *sev) : sev(sev) {}
+    EventAction(SEvt *sev) : sev(sev)
+    {
+    }
@@ -152 +155,3 @@ struct SteppingAction : G4UserSteppingAction
-    SteppingAction(SEvt *sev) : sev(sev) {}
+    SteppingAction(SEvt *sev) : sev(sev)
+    {
+    }
@@ -208 +213,3 @@ struct TrackingAction : G4UserTrackingAction
-    TrackingAction(SEvt *sev) : sev(sev) {}
+    TrackingAction(SEvt *sev) : sev(sev)
+    {
+    }
@@ -284,5 +291,2 @@ struct G4App
-        : sev(SEvt::HighLevelCreate(SEvt::ECPU)),
-          det_cons_(new DetectorConstruction(gdml_file)),
-          prim_gen_(new PrimaryGenerator(sev)),
-          event_act_(new EventAction(sev)),
-          stepping_(new SteppingAction(sev)),
+        : sev(SEvt::HighLevelCreate(SEvt::ECPU)), det_cons_(new DetectorConstruction(gdml_file)),
+          prim_gen_(new PrimaryGenerator(sev)), event_act_(new EventAction(sev)), stepping_(new SteppingAction(sev)),

Have any feedback or feature suggestions? Share it here.

src/simg4ox.cpp Outdated Show resolved Hide resolved
src/simg4ox.cpp Outdated Show resolved Hide resolved
src/simg4ox.cpp Outdated Show resolved Hide resolved
src/simg4ox.cpp Outdated Show resolved Hide resolved
src/simg4ox.cpp Outdated Show resolved Hide resolved
src/simg4ox.cpp Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot dismissed their stale review October 2, 2024 21:57

outdated suggestion

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

No concerns from clang-tidy.

Click here for the full clang-format patch
diff --git a/src/simg4ox.cpp b/src/simg4ox.cpp
index c776796..e857c9e 100644
--- a/src/simg4ox.cpp
+++ b/src/simg4ox.cpp
@@ -47 +46,0 @@ using namespace std;
-

Have any feedback or feature suggestions? Share it here.

src/simg4ox.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot dismissed their stale review October 2, 2024 22:07

outdated suggestion

@plexoos plexoos merged commit 83daebc into main Oct 3, 2024
2 checks passed
@plexoos plexoos deleted the refactor-g4app branch October 3, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant