Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

source /project/ptgroup/spinquest/this-e1039.sh

The components in the directory follow the standard SpinQuest package hierarchy; namely "e1039-resource", "e1039-share" and "e1039-core".

User-Level Files: e1039-analysis

The GitHub repository, "E1039-Collaboration/e1039-analysis", contains a set of user-level programs for analysis.  It can be cloned and used at Rivanna as well as SpinQuest GPVM, although some setup scripts have to be modified for the Rivanna environment.

https://github.com/E1039-Collaboration/e1039-analysis

Development of e1039-core

You are recommended to use "spinquestgpvm01.fnal.gov" to develop "e1039-core" since the E1039 environment at Rivanna has been set up for normal use (=analysis) at present.  But you can make your own version of e1039-core at Rivanna, by executing the following commands.  Your modified source code of e1039-core is assumed be be placed at ~/e1039/e1039-core .

Code Block
languagebash
DIR_INSTcd ~/e1039
rm -rf core-build core-inst
E1039_CORE_DIR=~/e1039/core-inst
mkdir -p $DIR$E1039_CORE_INST
cd ~/e1039
git clone https://github.com/E1039-Collaboration/e1039-core.git
cdDIR
cp -p e1039-core
cp -p /script/this-core-org.sh $DIR$E1039_CORE_INSTDIR/this-core.sh
source /project/ptgroup/spinquest$E1039_ROOT/this-e1039.sh
export ROOT_INCLUDE_PATH=$ROOT_INCLUDE_PATH_E1039_SHARE
source $DIR_INST/this-core.sh
../e1039-core/build.sh

Once the commands go fine, you can modify the source code and build it again by "./build.sh -r simulation/g4detectors" for example, where "simulation/g4detectors" should be the first package that you modified.

...

  • Build the source code in new shell (=text terminal), or
  • Execute analysis macro (such as "e1039-analysis/SimChainDev"),

you have to execute the "source" and "export" following commands;

Code Block
languagebash
source /project/ptgroup/spinquest/this-e1039.sh
export ROOT_INCLUDE_PATH=$ROOT_INCLUDE_PATH_E1039_SHARE
source E1039_CORE_DIR=~/e1039/core-inst
source /project/ptgroup/spinquest/this-coree1039.sh

It is probably easier for you to make a setup script (like "setup.sh") to execute the commands.

User-Level Files

Customized MC Event Generation at Rivanna

Customized User-level files for the SpinQuest MC event generation are located under "/project/ptgroup/Akbar", such as "DY_Target_script". 

The standard set of SpinQuest analysis packages are available in "e1039-analysis.  The user-level files uses a mofidied modidied version of "e1039-analysis" complied under "/project/ptgroup/spinquest/e1039-analysis/module".

...