Prerequisites

  1. Get a CERN login.
  2. 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
  1. Create a fork of the Athena repository. THE PROJECT NAME MUST BE AS THE ORIGINAL: athena.

Setup a working environment

  1. ssh to lxplus or other CERN machine.
  2. Setup the environment:
setupATLAS 
lsetup git
  1. 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.

  1. Create your own working area:
mkdir WorkingArea
cd WorkingArea
  1. 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
  1. Build the code:
mkdir build
cd build
asetup Athena,main,latest
cmake ../athena/Projects/WorkDir/
make
  1. 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
  1. 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