13.2. EIC installation and geometry#
13.2.1. eic-shell#
Please check out here for the tutorials from EIC ePIC collaboration.
mkdir -p $EIC_PROJECT_DIR/eic && cd $EIC_PROJECT_DIR/eicDownload the install file β
wget --output-document install.sh https://get.epic-eic.orginstall the file β
bash install.shCheck your installation β
eic-shelland should load the container.With HPC systems that have
cvfms(CernVM File System), the containers with variety of versons are shipped. if needed a different version to be loaded. If not one has to download versions seperately usingsingularity pull
13.2.2. dd4hep#
Please check out here for the tutorials from EIC ePIC collaboration.
source /opt/detector/epic-main/bin/thisepic.shβ sources all the necessary environment variables to identify the detector xml files.look into a few variables β
$DETECTOR_PATH,$DETECTOR,$DETECTOR_CONFIGLook into the xml file β
vim ${DETECTOR_PATH}/${DETECTOR}.xmlVisualize the geometry by β
dd_web_display /path/to/xmlrun overlap checks to see if any geometries are overlapping by β ``
13.2.2.1. Exercise#
Visualize the geometry files for
far forward,dRICHandinnerdetectors.
13.2.2.2. Having own version of the geometry#
cd $EIC_PROJECT_DIRIf not in eic-shell then
./eic/eic-shellgit clone https://github.com/eic/epic.gitmkdir $EIC_PROJECT_DIR/epic_install $EIC_PROJECT_DIR/epic_buildcmake -B $EIC_PROJECT_DIR/epic_build -S $EIC_PROJECT_DIR/epic -DCMAKE_INSTALL_PREFIX=$EIC_PROJECT_DIR/epic_installcmake --build $EIC_PROJECT_DIR/epic_build -j8cmake --install $EIC_PROJECT_DIR/epic_buildsource $EIC_PROJECT_DIR/epic_install/bin/thisepic.sh
13.2.2.3. Exercise#
Repeat the same steps as above
Try to change the dimensions of say the cylindrical inner tracker.
13.2.2.4. Caveats#
In nodes without a internet connections, the scripts fail due to the fact the calibration files cannot be downloaded. This is the case in JLabβs farm nodes as well as some nodes in W&M. To circumvent this, one can in download all necessary calibration files and place them in the ${DETECTOR_PATH}/calibrations folder
Within the
eic-shelland with all neccessaryepic_install, rundd_web_display ${DETECTOR_PATH}/${DETECTOR_CONFIG}.xmlThis should produce
calibrationsandfieldmaps.cp -r calibrations/* $DETECTOR_PATH/calibrations/cp -r fieldmaps $DETECTOR_PATH/calibrations/
Now, you have neccesary calibration files for the detector configuration you are using.