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

Geant4star integration #377

Closed
wants to merge 19 commits into from

Conversation

klendathu2k
Copy link
Contributor

Following suggestions made in PR#311... splitting the geant4star pull request. First committing the changes to BigFullChain.h that define the chain options needed to load in geant4 and geant4vmc support libraries. Also adding the environment setup script and build script under StGeant4Maker/etc. And a test macro to load the libraries.

To compile:
$ source StRoot/StGeant4Maker/etc/setup
$ source StRoot/StGeant4Maker/etc/build

To test:
$ root.exe StRoot/StGeant4Maker/macros/loadGeant4Vmc.C

Result should be a successful load of the libraries.

klendathu2k and others added 13 commits March 11, 2022 12:29
Before submitting PR#315 some code cleanup was performed (see note below).
The fast jet directory was moved from  StarGenerator/FastJetFilt   to
StarGenerator/FILT/FastJetFilt, to conform with the standard source tree
layout for filters.

4f27034
625bbdd

Conscript-standard directory rules allow one to specify include paths
based on the module (StarGenerator) and package.  The package is one
directory beneath the module...  before code cleanup this was the
FastJetFilter directory.  After cleanup, we have to apply the fast jet
include path to all filters in the StarGenerator/FILT directory.

----

Note on the pp 200 HF filtered jet production.  The production commenced with
fast jet filter code built before code cleanup, based on the original
location of the fast jet filter in the source tree.
@@ -1211,6 +1211,7 @@ Bfc_st BFC[] = { // standard chains
{"McEvOut" ,"" ,"","StMcEvent,Tree" ,"","","Write StMcEvent to StTree",kFALSE},
{"EvOut" ,"" ,"","Tree" ,"","","Write StEvent to StTree",kFALSE},
{"GeantOut" ,"" ,"","Tree" ,"","","Write g2t tables to StTree",kFALSE},
{"Geant4Out" ,"" ,"","Tree" ,"","","Write g2t tables to StTree from G4",kFALSE},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: this chain option requires an update to StBFChain.cxx to add the StGeant4Maker into the tree, which must
wait for the integration of StGeant4Maker.

{"stargen.util", "","", "gen_T,sim_T"/*+++*/, "", "libVMC.so,libStarGeneratorUtil.so,libMathMore.so","STAR Generator BASE",false},
{"stargen.event","","", "gen_T,sim_T"/*+++*/, "", "libVMC.so,libStarGeneratorEvent.so,libMathMore.so","STAR Generator BASE",false},
{"stargen.base", "","", "gen_T,sim_T"/*+++*/, "", "libVMC.so,libStarGeneratorBase.so,libMathMore.so","STAR Generator BASE",false},
{"stargen", "","", "stargen.util,stargen.event,stargen.base"/*+++*/, "", "","STAR Generator BASE",false},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: stargen loads have an unmet dependency in St_geant_Maker. Future commits will resolve this.

@starsdong
Copy link
Member

Jason and all, I see this one has been there for a while. As far as I see, all checks have passed, so the merge won't crash the running jobs? From your comments, Jason, there will still need other commits to resolve some of the dependencies. How should we proceed? Shall we just proceed to merge this PR (upon the sync with the latest main branch)? Thanks

klendathu2k and others added 6 commits September 26, 2022 17:04
that is about to happen...

Updated the setup and build scripts for the current pull request.
The clhep version changed out from under us since the PR was made.
Also, the build script now constructs root4star and starsim for
general testing.
Comment on lines +4 to +5
#module load root-6.24.00
source /star/simu/simu/jwebb/ROOT/local/bin/thisroot.csh
Copy link
Member

Choose a reason for hiding this comment

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

Can you use the the ROOT installed by Spack instead? This should suffice:

module load star-env-X.Y.Z-root-6.V.W

...and you don't need to set the environment variables by hand as you do later in this file.

@klendathu2k
Copy link
Contributor Author

klendathu2k commented Sep 29, 2022 via email

@plexoos plexoos requested a review from fisyak as a code owner March 29, 2023 20:45
@klendathu2k
Copy link
Contributor Author

Superseded by #617

@klendathu2k klendathu2k closed this Nov 1, 2023
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.

3 participants