Skip to content

latifkabir/eicSimUCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EIC Simulation Setup for UCR

1.Getting The Source Code

  • Login to any RCAS interactive node of BNL RCF computer and Get the source code:
git clone https://github.com/latifkabir/eicSimUCR.git

2.Setup / Sourcing

  • The main purpose of this common setup is to have a single installation of all dependencies (Pythia or other generators, FastJet, Geant4 etc ..) on BNL or JLab machine which anyone can use without going thorugh the pain of installing them individually. The following sourcing achieves this goal.
cd eicSimUCR/
source setup.csh

Note: You need to do source setup.csh for any new terminal session to comile or use it unless you add it to your .cshrc or .bashrc file.

Currently, the following packages are included:

  • ROOT 6
  • Pythia 8
  • FastJet3
  • EIC-Smear
  • HepMC2
  • Delphes

On RCF, these packages are installed at /gpfs/mnt/gpfs01/star/pwg/kabir/eSimUCR/.

The following packages are linked from other (e.g. RCF) installations:

  • Pythia 6.4
  • Fun4All
  • JLEIC Geant4 Simulation (Through Docker image)

3.Compilation and Execution

  • To compile use
make
  • To run the example, Start root and call the function ElecJetKin() from the root prompt:
root
root[0] EsimElecJetKin()

This should produce an output called pytree.root in the current directory. Make plots using the output root file.

For a complete list of implemeted functions and short descrition type:

root[1] help()

4.Making Changes

If you want to modify or write new functions to generate events that fit your requirements, you can follow the following recipe:

  • Modify ElecJetKin.cxx or write a new one with .cxx extension and a corresponding header file .h.
  • Add an entry to LinkDef.h if it's a new file. No chage to the makefile is necessary.
  • Compile with: make clean && make
  • Star root and call your function from the root prompt.

5.Updating The Package/Setup

  • It is expected that the setup or packages will evolve very rapidly as we work on it. You can update to the lastest version using the following commands from your eicSimUCR/ directory:
git pull
make clean
make

6.Using Delphes

  • Copy pre-installed Delphes to your working directory: cp -r packages/Delphes .
  • Source environment unless already done: source setup.csh
  • cd to your Delphes directory: cd Delphes/
  • Run the EIC example: ./DelphesPythia8 cards/delphes_card_EIC.tcl examples/Pythia8/DIS.cmnd out.root
  • Run Event Dsiplay (From Delphes32Bit with ROOT 5): root -l examples/EventDisplay.C'("cards/delphes_card_EIC.tcl","out.root")'

About

Common Setup for EIC Simulation Efforts at UCR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published