Running Athena
Prerequisites
- Get a CERN login.
- Generate a Kerberos authentication ticket using the command and type your password when prompted:
kinit
Check if the ticket is generated using:
klist
klist -f
- Create a fork of the Athena repository. THE PROJECT NAME MUST BE AS THE ORIGINAL:
athena
.
Setup a working environment
- ssh to lxplus or other CERN machine.
- Setup the environment:
setupATLAS
lsetup git
- Setup the git-atlas (change
sjankovy
to your username):
git atlas init-config sjankovy --apply
Check if the configuration is correct with git atlas init-config
.
- Create your own working area:
mkdir WorkingArea
cd WorkingArea
- Get the parts of repository you need. For example, if you want to work with BoostedJetTaggers, JetMomentTools, JetRecConfig and DerivationFramework:
git atlas init-workdir https://:@gitlab.cern.ch:8443/atlas/athena.git -p BoostedJetTaggers JetMomentTools JetRecConfig DerivationFrameworkPhys DerivationFrameworkJetEtMiss
- Build the code:
mkdir build
cd build
asetup Athena,main,latest
cmake ../athena/Projects/WorkDir/
make
- If you wish to restore the working environment, use:
cd build/
setupATLAS
asetup --restore
source x86*/setup.sh
cd ../run/
If you change something in the athena code, you need to recompile it. You can do it by running:
cd build/
make
- Run the derivation code:
Derivation_tf.py --CA --inputAODFile ../data/mc20_13TeV.364704.Pythia8EvtGen_A14NNPDF23LO_jetjet_JZ4WithSW.recon.AOD.e7142_s3681_r13144.AOD.27464218._000535.pool.root.1 --outputDAODFile output.pool.root --formats JETM2 --maxEvents 10