Skip to content
forked from ECCE-EIC/macros

ECCE macros for simulation and reconstruction

Notifications You must be signed in to change notification settings

mposik1983/macros

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome

This is the standard macros respository for ECCE. Following is the 10-min tutorial on using the default macros.

Build Status Tutorials Doxygen Singularity

Get started

Please follow software day-1 checklist to get started.

Check out macro repository

Download the newest macro repository from GitHub:

[test]$ git clone https://github.com/ECCE-EIC/macros.git
Cloning into 'macros'...
remote: Counting objects: 1125, done.
remote: Total 1125 (delta 0), reused 0 (delta 0), pack-reused 1125
Receiving objects: 100% (1125/1125), 181.75 KiB | 0 bytes/s, done.
Resolving deltas: 100% (471/471), done.
Checking connectivity... done.
[test]$ cd macros/detectors
[detectors]$ # here are all the subdirectories e.g. an example EIC detector simulations

The default EIC detector simulation + reconstruction macro is detectors/EICDetector/Fun4All_G4_EICDetector.C, which is a collection of steering flags that drives the common macros. They are not a black box!. You are welcome to open/edit it to work for your purpose of study.

Try an event display

Please edit Fun4All_G4_EICDetector.C to change flag Enable::DISPLAY = true; Then let's see what is implemented by firing up one event:

[EICDetector]$ source /cvmfs/eic.opensciencegrid.org/ecce/gcc-8.3/opt/fun4all/core/bin/ecce_setup.sh -n   # setup environment if not already done so
# Note, for csh users, please use /cvmfs/eic.opensciencegrid.org/ecce/gcc-8.3/opt/fun4all/core/bin/ecce_setup.csh instead
[EICDetector]$ root
root [] .x Fun4All_G4_EICDetector.C // here negative value in event number start an event display of one event
root [] se->run(1)
root [] g4->ApplyCommand("/vis/viewer/refresh");
root [] displaycmd() # this one show more Geant4 command we can run from the ROOT prompt

Run more events

This is simpler, just run with first parameter as the intended number of event:

[EICDetector]$ source /cvmfs/eic.opensciencegrid.org/ecce/gcc-8.3/opt/fun4all/core/bin/ecce_setup.sh -n   # setup sPHENIX environment if not already done so
Please recover Enable::DISPLAY = false; as in Fun4All_G4_EICDetector.C 
[EICDetector]$ root
root [] .x Fun4All_G4_EICDetector.C(10) // run 10 events

What next?

Now you are able to run the whole simulation + reconstruction chain. Many next-step topics are listed in the software page. And specifically, to use the simulation for your study, a few thing you might want to try:

About

ECCE macros for simulation and reconstruction

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.9%
  • Shell 0.1%