Setup ATLAS Environment:
1 | export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase |
Then, setup Root:
1 | lsetup root |
Setup GitLab
Get a ssh Key here : https://gitlab.cern.ch/help/ssh/README
Add the ssh Key here : https://gitlab.cern.ch/profile/keys
Start a new project here : https://gitlab.cern.ch/dashboard/projects
Basic commands here : https://gitlab.cern.ch/help/gitlab-basics/README.md
Some basic commands:
1 | git clone SSH_PATH |
Certificat, VO
“New Grid User Certificate” in https://ca.cern.ch/ca/
Setup certificate on hosts:
1 | openssl pkcs12 -in usercert.p12 -nokeys -clcerts -out ~/.globus/usercert.pem |
ATLAS VO page (request here): https://voms2.cern.ch:8443/voms/atlas/user/home.action
Rucio, AMI
Transfer request page: https://rucio-ui.cern.ch/r2d2/request
Rucio commands:
1 | voms-proxy-init -voms atlas |
AMI page: https://ami.in2p3.fr/
pyAMI commands: https://ami.in2p3.fr/pyAMI/
1 | voms-proxy-init -voms atlas |
How to read Ntuple from CERN eos disk
(see https://confluence.desy.de/display/IS/How+to+use+Grid+resources+in+batch+jobs)
1 | voms-proxy-init -voms atlas |
While submitting jobs in condor (validated on NAF), in the job-file, one should type
1 | export X509_USER_PROXY=${PATHTOPROXY} |
and in condor submit-file, type
1 | transfer_input_files = ${PATHTOPROXY} |
Where the $PATHTOPROXY is default to be $X509_USER_PROXY in host, but need to be copied to a readable path, e.g. cp /tmp/x509up_u2xxxx ${HOME}/nfs/proxyfile/
Muont /cvmfs/atlas.cern.ch on you computer (Mac)
Download and setup Fuse for macOS: OSXFuse
Download and setup CernVM-FS: CernVM-FS
1 | echo "CVMFS_HTTP_PROXY=DIRECT" | sudo tee -a /etc/cvmfs/default.local |
Then you can try to “setupATLAS” now. Currently athena is not supported by MacOS, only rcsetup, root etc.
But to use Docker, /cvmfs should be set up.
Use Docker to run Athena on your computer (Mac)
Docker: https://docs.docker.com/docker-for-mac/
Old twiki for Docker with Athena: https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/AthenaMacDockerSetup
Recommended: Webpage for Docker with Athena: https://atlassoftwaredocs.web.cern.ch/athena/mac-setup/
Try if Docker is set up correctly
1
docker run hello-world
Change the setting of XQuartz, and restart
Then add your IP as a new host
1
2ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}') # Adapt en0 to the active interface
xhost + ${ip}Add /cvmfs as a shared folder of Docker

Download and run external cvmfs package
1
2docker pull atlas/atlas_external_cvmfs
docker run -i -t -v /cvmfs:/cvmfs -v $HOME:$HOME -e DISPLAY=${ip}:0 atlas/atlas_external_cvmfsYou can finally “setupATLAS”, “asetup” now with the ATLAS softwares.
Save the image after making a change
Whileatlas/atlas_external_cvmfsis runing, open a new window and:1
2
3docker ps # to known the container ID
docker commit ${ContainerID} atlas:v1 # atlas:v1 can be replaced with any image:tag names
docker images # check what you just commitedThen for next time you can login the edited image by:
1
docker run -i -t -v /cvmfs:/cvmfs -v $HOME:$HOME -e DISPLAY=${ip}:0 atlas:v1
To control the docker images/system, one can use
docker ps,docker images,docker system df,docker system pruneetc.
Use Virtual machine to run Athena on your computer (Mac)
CERNVM: https://atlas-vp1.web.cern.ch/atlas-vp1/blog/tutorial/running-vp1-on-any-system-in-a-virtual-machine/
Follow this page until “SetupATLAS”, so you have a linux virtual machine in ATLAS environment
Administrator (in case you want to use sodo): account : atlas, password: boson
Comparing to Docker, it’s not easy to control files I/O using Virtual Machine
ATLAS Softwares
ATLAS toturial meetings
Find intested slides/records in tutorial meetings’ category
AnalysisBase toturial
Creating Event-Loop package: SoftwareTutorialxAODAnalysisInROOT
Analysis Base tutorial: ABtutorial
ATLAS software tutorial twiki: SoftwareTutorialSoftwareBasics
Make CmakeLists
CmakeLists.txt of Athena based package: HGamTools/CMakeLists.txt
CmakeLists.txt of local code: Purity_2D/CMakeLists.txt
ATLAS Event Display
Latest event: http://atlas-live.cern.ch/
Public plots: EventDisplayPublicResults
Event Pickup (JML and ESD): Atlantis
Atlantis: download latest version here (http://atlantis.web.cern.ch/atlantis/), run in a system where Java is available
VP1:
1 | asetup 20.7.9.2,AtlasProduction, here |
For VP1 it’s better to use the Virtual machine (or Docker)