Skip to content

Repository files navigation

How to run the recentering

Download AO2D files from Hyperloop

  1. To download derived data use: copyGridDerData.sh
    • arguments are <ALIEN_DIR> and <RUNNUMBER>
    • output dir needs to be set in copyGridDerData.sh

Upload calibration files to CCDB

  1. Use makeTList_recentering.sh to make 1 TList of all recentering histos
  2. We upload on a run-by-run basis, so use getRunDuration.C to get timestamps for start and end of run
  3. Run uploadCCDB.sh and iterate over runlist and upload the TList to CCDB.

Start the recentering

  1. Use the generate_DAG.sh file to generate all the dag files

    • Usage: generate_DAG.sh <period> <WORKDIR> <AODDIR> [runlist]

      • Here the period is the LHC period you are working on
      • <WORKDIR> is the directory of the period you are working in
      • <AODDIR> is the directory where your AO2D.root files are stored (usually on /dcache/... )
    • Example for LHC24_ar

      1. <period>: ar
      2. <WORKDIR>: /data/alice/nkoster/alice/Analysis/ZDC/runCent/postProcess/Full_2024_PbPb_Pass2/LHC24ar
      3. <AODDIR>: /dcache/alice/nkoster/PhD/q-vectors/LHC24_PbPb_pass2
      4. [runlist]: 559681 559680 559679 559632 559631 559616 559615 559614 559596 559595 559575 559574 559561 559545
    • Create a <dagDir> in your <WORKDIR>: In this <dagDir> execute the generate_DAG.sh script. -> This should create a directory for each runnumber from the [runlist] and in there a runRecentering_<RUNNUMBER>.dag file.

  2. In the generated DAG-files you see the file will look for <FILEDIR>/<filename>.sub files

    • <FILEDIR>: /data/alice/nkoster/alice/Analysis/ZDC/runCent/postProcess/fileDirRecentering
    • The correct generate_DAG.sh is located in: /data/alice/nkoster/alice/Analysis/ZDC/runCent/postProcess/Full_2024_PbPb_Pass2/LHC24ar
  3. Now that you have generated the DAG-files go into your <WORKDIR>/dagDir

    • In this directory execute submit_dag [runlist]
    • submit_dag is located inside ~/.bashrc.

HAPPY ANALYSING!

If you don't want to use the DAG-files (For not submutting jobs on the HTCondor cluster)

  1. You do need the derived data from o2-analysis-cf-zdc-q-vectors
    • To run for recentering you first need to run to get the calibration files for energy gain equalisation and vmean per run.
    • What I have already can be found in: Users/c/ckoster/ZDC//
    • These paths are configurables in the task. (For running on hyperloop or locally.)
  2. Use runStbsJob1.sh for 4D recentering
  3. Use runStbsJob300.sh for 1D recentering + merge.sh to merge all the subfiles created
    • These files use the Recentering.C macro
  4. For the shift correction you can use doShiftCorrection.C (This is also implemented in the task for hyperloop)

About

Al macros and scripts used for recentering q-vectors

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages