-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this 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.
No description provided.