Skip to content
Snippets Groups Projects
Select Git revision
  • fb80c8fe318fc573472d038ce4c1f1eb890d9af8
  • master default protected
  • npsim
  • pr/lowQ2_benchmark
  • pr/diffractive_vm_campaign
  • status-no-github-sha
  • this-epic.sh
  • pr/u_channel_sweger
  • pi0_and_photon
  • revert-49e6bc61
  • neutron_in_insert
  • sebouh137-patch-1
  • physics_benchmarks
  • pr/dis_snakemake
  • pr/kinematics_correlations_ak_num
  • pdf-report
  • master-patch-9d2b
  • TA-work-branch2
  • TA-work-branch
  • truth_reconstruction
  • tooba-master-patch-35679
21 results

gen.sh

Blame
  • Whitney Armstrong's avatar
    Whitney Armstrong authored
    	new file:   README.md
    	modified:   dis.sh
    	new file:   src/pythia_dis.cc
    
    	modified:   dis.sh
    	modified:   gen.sh
    
    WIP: Pythia DIS
    
    	new file:   README.md
    	modified:   dis.sh
    	new file:   src/pythia_dis.cc
    
    	modified:   dis.sh
    	modified:   gen.sh
    
    Added print statments
    
    	modified:   ../.clang-format
    	modified:   src/pythia_dis.cc
    
    	new file:   include/clipp.h
    
    	modified:   dis/gen.sh
    
    	modified:   gen.sh
    	modified:   src/pythia_dis.cc
    
    	modified:   src/pythia_dis.cc
    
    	modified:   src/pythia_dis.cc
    
    	modified:   src/pythia_dis.cc
    
    	modified:   dis/config.yml
    
    	modified:   dis/config.yml
    
    	modified:   dis/src/pythia_dis.cc
    
    	modified:   dis/gen.sh
    fb80c8fe
    History
    gen.sh 2.24 KiB
    #!/bin/bash
    
    ## =============================================================================
    ## Standin for a proper pythia generation process, similar to how we
    ## generate events for DVMP
    ## =============================================================================
    
    ## TODO: use JUGGLER_FILE_NAME_TAG instead of explicitly refering to dis
    
    echo "Running the DIS benchmarks"
    
    ## make sure we launch this script from the project root directory
    PROJECT_ROOT="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"/..
    pushd ${PROJECT_ROOT}
    
    ## =============================================================================
    ## Load the environment variables. To build the detector we need the following
    ## variables:
    ##
    ## - JUGGLER_INSTALL_PREFIX: Install prefix for Juggler (simu/recon)
    ## - JUGGLER_DETECTOR:       the detector package we want to use for this benchmark
    ## - DETECTOR_PATH:          full path to the detector definitions
    ##
    ## You can ready config/env.sh for more in-depth explanations of the variables
    ## and how they can be controlled.
    source config/env.sh
    
    ## Setup local environment
    export DATA_PATH=results/dis
    
    ## Extra environment variables for DVMP:
    ## file tag for these tests
    JUGGLER_FILE_NAME_TAG="dis"
    
    ## =============================================================================
    ## Step 1: Dummy event generator
    ## TODO better file name that encodes the actual configuration we're running
    echo "Compiling   dis/src/pythia_dis.cc ..."
    g++ dis/src/pythia_dis.cc -o pythia_dis  \
       -I/usr/local/include  -Iinclude \
       -O2 -std=c++11 -pedantic -W -Wall -Wshadow -fPIC  \
       -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpythia8 -ldl \
       -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lHepMC3
    if [[ "$?" -ne "0" ]] ; then
      echo "ERROR compiling pythia"
      exit 1
    fi
    echo "done"
    pwd
    ls -lrth
    
    ./pythia_dis dis.hepmc
    if [[ "$?" -ne "0" ]] ; then
      echo "ERROR running pythia"
      exit 1
    fi
    
    ## =============================================================================
    ## Step 2: finalize
    echo "Moving event generator output into ${DATA_PATH}"
    #mv .local/${JUGGLER_FILE_NAME_TAG}.hepmc ${DATA_PATH}/${JUGGLER_FILE_NAME_TAG}.hepmc
    
    ## =============================================================================
    ## All done!
    echo "dis event generation complete"