- Login to any RCAS interactive node of BNL RCF computer and Get the source code:
git clone https://github.com/latifkabir/eicSimUCR.git
- 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 6Pythia 8FastJet3EIC-SmearHepMC2Delphes
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.4Fun4AllJLEIC Geant4 Simulation(Through Docker image)
- To compile use
make
- To run the example, Start
rootand call the functionElecJetKin()from therootprompt:
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()
If you want to modify or write new functions to generate events that fit your requirements, you can follow the following recipe:
- Modify
ElecJetKin.cxxor write a new one with.cxxextension and a corresponding header file.h. - Add an entry to
LinkDef.hif it's a new file. No chage to the makefile is necessary. - Compile with:
make clean && make - Star
rootand call your function from therootprompt.
- 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
- Copy pre-installed
Delphesto your working directory:cp -r packages/Delphes . - Source environment unless already done:
source setup.csh cdto yourDelphesdirectory: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")'